Skip to content

Commit

Permalink
updated video url (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel authored Jun 11, 2020
1 parent 097b7d1 commit 1ec0e3a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import android.widget.Button;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;

import com.google.android.exoplayer2.ExoPlayerFactory;
import com.google.android.exoplayer2.SimpleExoPlayer;
import com.google.android.exoplayer2.source.ExtractorMediaSource;
Expand All @@ -24,9 +27,6 @@

import org.jetbrains.annotations.NotNull;

import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;


public class MainActivity extends AppCompatActivity {

Expand Down Expand Up @@ -135,8 +135,9 @@ public void onZoomSurfaceDestroyed(@NotNull ZoomSurfaceView view) { }
controls.show();
DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(this,
Util.getUserAgent(this, "ZoomLayoutLib"));
Uri videoUri = Uri.parse("https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4");
MediaSource videoSource = new ExtractorMediaSource.Factory(dataSourceFactory)
.createMediaSource(Uri.parse("https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"));
.createMediaSource(videoUri);
player.prepare(videoSource);
}

Expand Down

0 comments on commit 1ec0e3a

Please sign in to comment.