Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#189 Fix view multiple attachments (click on preview)
- Loading branch information
Showing
8 changed files
with
207 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
app/src/androidTest/res/raw/mastodon_video_original.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
[ | ||
{ | ||
"//comment": "Downloaded from https://mastodont.cat/api/v1/statuses/101629249723336744", | ||
"id": "101629249723336744", | ||
"created_at": "2019-02-21T08:54:44.114Z", | ||
"in_reply_to_id": null, | ||
"in_reply_to_account_id": null, | ||
"sensitive": false, | ||
"spoiler_text": "", | ||
"visibility": "public", | ||
"language": "ca", | ||
"uri": "https://mastodont.cat/users/kim/statuses/101629249723336744", | ||
"url": "https://mastodont.cat/@kim/101629249723336744", | ||
"replies_count": 2, | ||
"reblogs_count": 2, | ||
"favourites_count": 1, | ||
"content": "\u003cp\u003eJa estan aquí \u003ca href=\"https://mastodont.cat/tags/vaga21f\" class=\"mention hashtag\" rel=\"tag\"\u003e#\u003cspan\u003evaga21f\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e", | ||
"reblog": null, | ||
"application": { | ||
"name": "Mastalab", | ||
"website": "https://mastalab.app" | ||
}, | ||
"account": { | ||
"id": "10496", | ||
"username": "kim", | ||
"acct": "kim", | ||
"display_name": "Kim", | ||
"locked": false, | ||
"bot": false, | ||
"created_at": "2017-12-19T08:37:45.939Z", | ||
"note": "\u003cp\u003eGnu/Linux · ♥ dels gats · Privacitat, programari i cultura lliure\u003cbr /\u003e\u003ca href=\"https://mastodont.cat/tags/nobot\" class=\"mention hashtag\" rel=\"tag\"\u003e#\u003cspan\u003enobot\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e", | ||
"url": "https://mastodont.cat/@kim", | ||
"avatar": "https://mastodont.cat/system/accounts/avatars/000/010/496/original/fb53a9c30eb13f2f.jpg?1535281972", | ||
"avatar_static": "https://mastodont.cat/system/accounts/avatars/000/010/496/original/fb53a9c30eb13f2f.jpg?1535281972", | ||
"header": "https://mastodont.cat/system/accounts/headers/000/010/496/original/5ff0b94c82511576.jpg?1538642464", | ||
"header_static": "https://mastodont.cat/system/accounts/headers/000/010/496/original/5ff0b94c82511576.jpg?1538642464", | ||
"followers_count": 557, | ||
"following_count": 456, | ||
"statuses_count": 9198, | ||
"emojis": [], | ||
"fields": [ | ||
{ | ||
"name": "blog", | ||
"value": "\u003ca href=\"http://jr5kf3grd2rei4tv.onion.ws\" rel=\"me nofollow noopener\" target=\"_blank\"\u003e\u003cspan class=\"invisible\"\u003ehttp://\u003c/span\u003e\u003cspan class=\"\"\u003ejr5kf3grd2rei4tv.onion.ws\u003c/span\u003e\u003cspan class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e", | ||
"verified_at": null | ||
}, | ||
{ | ||
"name": "cats", | ||
"value": "dat://837050f69d945cd483540dbb388b1b8de950e3ca469291e36c4a21a52d3cdc86/", | ||
"verified_at": null | ||
} | ||
] | ||
}, | ||
"media_attachments": [ | ||
{ | ||
"id": "684914", | ||
"type": "video", | ||
"url": "https://mastodont.cat/system/media_attachments/files/000/684/914/original/7424effb937d991c.mp4?1550739268", | ||
"preview_url": "https://mastodont.cat/system/media_attachments/files/000/684/914/small/7424effb937d991c.png?1550739268", | ||
"remote_url": null, | ||
"text_url": "https://mastodont.cat/media/QXH0qU6_yYaEtEqhUpc", | ||
"meta": { | ||
"length": "0:00:08.43", | ||
"duration": 8.43, | ||
"fps": 29, | ||
"size": "1920x1080", | ||
"width": 1920, | ||
"height": 1080, | ||
"aspect": 1.7777777777777777, | ||
"audio_encode": "aac (LC) (mp4a / 0x6134706D)", | ||
"audio_bitrate": "48000 Hz", | ||
"audio_channels": "stereo", | ||
"original": { | ||
"width": 1920, | ||
"height": 1080, | ||
"frame_rate": "7500000/251551", | ||
"duration": 8.427, | ||
"bitrate": 20603587 | ||
}, | ||
"small": { | ||
"width": 400, | ||
"height": 225, | ||
"size": "400x225", | ||
"aspect": 1.7777777777777777 | ||
} | ||
}, | ||
"description": null, | ||
"blurhash": null | ||
} | ||
], | ||
"mentions": [], | ||
"tags": [ | ||
{ | ||
"name": "vaga21f", | ||
"url": "https://mastodont.cat/tags/vaga21f" | ||
} | ||
], | ||
"emojis": [], | ||
"card": null, | ||
"poll": null | ||
} | ||
] |
Oops, something went wrong.