PlayViewInterface.kt 615 Bytes
Newer Older
严久程 committed
1 2
package com.yidianling.course.coursePlay

严久程 committed
3 4
import com.yidianling.course.bean.CourseExtraBean
import com.yidianling.course.bean.CourseMediaBean
严久程 committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import java.util.*


/**
 * 音视频播放器view基类接口
 * Created by hgw on 2018/4/3.
 */
interface PlayViewInterface {

    fun onPause()

    fun onResume()

    fun onDestroy()

    //from 1表示通知栏进来,2表示悬浮按钮进来  index:播放下标
21 22 23 24 25 26 27
    fun setData(
        index: Int,
        list: ArrayList<CourseMediaBean>,
        courseExtra: CourseExtraBean,
        from: Int,
        isAutoPlay: Boolean = true
    )
严久程 committed
28 29 30 31

    fun onNewIntent()

}