|
|
|
@ -1,7 +1,5 @@ |
|
|
|
package com.fongmi.android.tv.event; |
|
|
|
package com.fongmi.android.tv.event; |
|
|
|
|
|
|
|
|
|
|
|
import androidx.media3.common.Player; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.greenrobot.eventbus.EventBus; |
|
|
|
import org.greenrobot.eventbus.EventBus; |
|
|
|
|
|
|
|
|
|
|
|
public class PlayerEvent { |
|
|
|
public class PlayerEvent { |
|
|
|
@ -12,10 +10,6 @@ public class PlayerEvent { |
|
|
|
EventBus.getDefault().post(new PlayerEvent(0)); |
|
|
|
EventBus.getDefault().post(new PlayerEvent(0)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void ready() { |
|
|
|
|
|
|
|
EventBus.getDefault().post(new PlayerEvent(Player.STATE_READY)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void state(int state) { |
|
|
|
public static void state(int state) { |
|
|
|
EventBus.getDefault().post(new PlayerEvent(state)); |
|
|
|
EventBus.getDefault().post(new PlayerEvent(state)); |
|
|
|
} |
|
|
|
} |
|
|
|
|