Play pause problem
<LinearLayout android:id="@+id/controlRack" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_centerInParent="true" android:gravity="center" android:orientation="horizontal">
<ImageButton
android:id="@id/exo_rew"
style="@style/PlayerControlButtonBaseStyle.RewButton" />
<ImageButton
android:id="@id/exo_play"
style="@style/PlayerControlButtonBaseStyle.PlayButton"
android:layout_width="100dp"
android:layout_marginLeft="@dimen/player_control_play_pause_margin"
android:layout_marginRight="@dimen/player_control_play_pause_margin" />
<ImageButton
android:id="@id/exo_pause"
style="@style/PlayerControlButtonBaseStyle.PauseButton"
android:layout_width="100dp"
android:layout_marginLeft="@dimen/player_control_play_pause_margin"
android:layout_marginRight="@dimen/player_control_play_pause_margin" />
<ImageButton
android:id="@id/exo_ffwd"
style="@style/PlayerControlButtonBaseStyle.FfwdButton" />
style="@style/PlayerControlButtonBaseStyle.PlayButton style="@style/PlayerControlButtonBaseStyle.PauseButton above code is working on exoplayer2 what new code on play pause exoplayer media3
The renaming was as follows:
| exo2 | media3 |
|---|---|
| PlayerControlView | LegacyPlayerControlView |
| StyledPlayerControlView | PlayerControlView |
| StyledPlayerView | PlayerView |
Which means PlayerControlView are not equivalent between exoplayer2 and media3. Can you confirm which class you are using?
Hey @ps8303383. We need more information to resolve this issue but there hasn't been an update in 14 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@ps8303383 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.