peertube-android icon indicating copy to clipboard operation
peertube-android copied to clipboard

Some video cannot be played

Open freeboub opened this issue 3 years ago • 4 comments

Some video cannot be played (even make the application crash)

You can find a sample on thinker instance, on thinkerview video: https://thinkerview.video/videos/watch/00eb921c-0a8f-4bf2-8f94-a5a93bc4ae8b

I already avoid the crash in : https://github.com/sschueller/peertube-android/pull/231

The explanation of this crash is explained here: https://framacolibri.org/t/video-json-missing-files-field/8908

ie sometimes files is empty and should be retrieved from streamingPlaylists.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

freeboub avatar Sep 25 '20 20:09 freeboub

I have already implemented a local patch: parse streamingPlaylists and use it is files is empty. I can read the video, but exoplayer doesn't display playback time correctly ... (It stays always 5 seconds, where position is increasing) I also try to upgrade exoplayer to 2.12.0, now position and duration are increasing ... Notice that I have no idea on how to handle this when R.string.pref_torrent_player_key is enabled ...

freeboub avatar Sep 25 '20 20:09 freeboub

Related https://github.com/sschueller/peertube-android/issues/181 ?

sschueller avatar Sep 26 '20 16:09 sschueller

I don't think so, in that case there is no video url at all. The url cannot be parsed from server!

freeboub avatar Sep 26 '20 18:09 freeboub

yeah, this seems to be a symptom of the problem I was running into with sites that no longer support legacy webtorrents, thus there is no way to make it work with the torrent player because it indicates that the site doesn't have torrent compatible files

dhk2 avatar Jan 17 '21 22:01 dhk2