Search in sources :

Example 1 with CurrentItemMetaData

use of com.volokh.danylo.video_player_manager.meta.CurrentItemMetaData in project VideoPlayerManager by danylovolokh.

the class BaseVideoItem method setActive.

/**
     * When this item becomes active we start playback on the video in this item
     */
@Override
public void setActive(View newActiveView, int newActiveViewPosition) {
    VideoViewHolder viewHolder = (VideoViewHolder) newActiveView.getTag();
    playNewVideo(new CurrentItemMetaData(newActiveViewPosition, newActiveView), viewHolder.mPlayer, mVideoPlayerManager);
}
Also used : CurrentItemMetaData(com.volokh.danylo.video_player_manager.meta.CurrentItemMetaData) VideoViewHolder(com.volokh.danylo.videolist.video_list_demo.adapter.holders.VideoViewHolder)

Aggregations

CurrentItemMetaData (com.volokh.danylo.video_player_manager.meta.CurrentItemMetaData)1 VideoViewHolder (com.volokh.danylo.videolist.video_list_demo.adapter.holders.VideoViewHolder)1