Some fixes

This commit is contained in:
Thomas 2020-12-28 15:43:59 +01:00
parent 1cddf26c9a
commit 4fd8d42d85
1 changed files with 11 additions and 1 deletions

View File

@ -1317,7 +1317,17 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
}); });
} }
/**
* Manage video to play with different factors
*
* @param video VideoData.Video
* @param localTorrentUrl String if not null that will be used
* @param resolution String the current resolution asked
* @param autoPlay boolean
* @param position int current position
* @param subtitles Uri uri for subtitles
* @param lang String ("en","fr", etc.)
*/
private void stream(VideoData.Video video, String localTorrentUrl, String resolution, boolean autoPlay, long position, Uri subtitles, String lang) { private void stream(VideoData.Video video, String localTorrentUrl, String resolution, boolean autoPlay, long position, Uri subtitles, String lang) {
String videoURL = localTorrentUrl == null ? video.getFileUrl(resolution, PeertubeActivity.this) : localTorrentUrl; String videoURL = localTorrentUrl == null ? video.getFileUrl(resolution, PeertubeActivity.this) : localTorrentUrl;
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE); SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);