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);