From 4fd8d42d8560d8b4c027ec824c6bec81eceeadb0 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 28 Dec 2020 15:43:59 +0100 Subject: [PATCH] Some fixes --- .../app/fedilab/fedilabtube/PeertubeActivity.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java index 1d5500e..6005620 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java @@ -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) { String videoURL = localTorrentUrl == null ? video.getFileUrl(resolution, PeertubeActivity.this) : localTorrentUrl; SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);