Skip to content

Instantly share code, notes, and snippets.

@ojw28
Created October 31, 2016 23:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ojw28/a57807d75852e088e2c5b00f41f1e578 to your computer and use it in GitHub Desktop.
Save ojw28/a57807d75852e088e2c5b00f41f1e578 to your computer and use it in GitHub Desktop.
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageButton android:id="@id/exo_play"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center"
android:background="#CC000000"
style="@style/ExoMediaButton.Play"/>
<ImageButton android:id="@id/exo_pause"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center"
android:background="#CC000000"
style="@style/ExoMediaButton.Pause"/>
</FrameLayout>
@pawanchauhan05
Copy link

can you give its full working example. in which we control all media controls and video view. like PlaybackControlView

@clintonrocksmith
Copy link

I found these in the code, so if you have view's matching these, you'll be all good to go.

durationView = (TextView) findViewById(R.id.exo_duration);
positionView = (TextView) findViewById(R.id.exo_position);
timeBar = (TimeBar) findViewById(R.id.exo_progress);

playButton = findViewById(R.id.exo_play);
pauseButton = findViewById(R.id.exo_pause);
previousButton = findViewById(R.id.exo_prev);
nextButton = findViewById(R.id.exo_next);
rewindButton = findViewById(R.id.exo_rew);
fastForwardButton = findViewById(R.id.exo_ffwd);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment