From 9378dba5a2b4bad6549998256963c074c4f5901d Mon Sep 17 00:00:00 2001 From: Stefan Schueller Date: Sun, 11 Mar 2018 02:24:06 +0100 Subject: [PATCH] Basic playback of torrents --- app/build.gradle | 5 +- app/src/main/AndroidManifest.xml | 2 + .../activity/TorrentVideoPlayActivity.java | 181 +++++++++++++++--- .../peertube/activity/VideoListActivity.java | 12 ++ .../layout/activity_torrent_video_play.xml | 65 +++++-- .../res/layout/content_torrent_video_play.xml | 11 -- app/src/main/res/values/colors.xml | 1 + 7 files changed, 222 insertions(+), 55 deletions(-) delete mode 100644 app/src/main/res/layout/content_torrent_video_play.xml diff --git a/app/build.gradle b/app/build.gradle index 62fbd80..1162fec 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -38,12 +38,15 @@ dependencies { implementation 'com.google.code.gson:gson:2.8.2' - implementation 'org.webrtc:google-webrtc:1.0.+' +// implementation 'org.webrtc:google-webrtc:1.0.+' implementation 'com.android.support:design:27.1.0' implementation 'com.blackboardtheory:android-iconify-fontawesome:3.0.1-SNAPSHOT' implementation 'com.github.TorrentStream:TorrentStream-Android:2.5.0' + implementation 'com.google.android.exoplayer:exoplayer:2.7.0' +// implementation "com.github.TorrentStream:TorrentStreamServer-Android:1.0.1" +// implementation 'com.devbrackets.android:exomedia:4.1.0' implementation 'com.android.support:support-v4:27.1.0' testImplementation 'junit:junit:4.12' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4b061f6..bc79cb4 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -8,6 +8,8 @@ + + call, @NonNull Response