本文整理汇总了Java中com.android.tedcoder.wkvideoplayer.view.SuperVideoPlayer类的典型用法代码示例。如果您正苦于以下问题:Java SuperVideoPlayer类的具体用法?Java SuperVideoPlayer怎么用?Java SuperVideoPlayer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SuperVideoPlayer类属于com.android.tedcoder.wkvideoplayer.view包,在下文中一共展示了SuperVideoPlayer类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setupVideoView
import com.android.tedcoder.wkvideoplayer.view.SuperVideoPlayer; //导入依赖的package包/类
private void setupVideoView() {
//开始手势
mGestureView = findViewById(R.id.gesture);
//播放结束,回放,转发
mTvUpdateTime = (TextView) findViewById(R.id.tv_update_time);
mFinishLayer = findViewById(R.id.finish_layer);
//播放器view
mSuperVideoPlayer = (SuperVideoPlayer) findViewById(R.id.video_player_item);
mSuperVideoPlayer.setVideoPlayCallback(mVideoPlayCallback);
//手势识别器
gestureDetector = new GestureDetector(this, new OnVideoGestureListener());
mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
// 是否是第一次播放
if (mSession.isFristPlay()) {
mGestureView.setVisibility(View.VISIBLE);
}
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:19,代码来源:VideoPlayVODNotHotelActivity.java
示例2: onCreate
import com.android.tedcoder.wkvideoplayer.view.SuperVideoPlayer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mSuperVideoPlayer = (SuperVideoPlayer) findViewById(R.id.video_player_item_1);
mPlayBtnView = findViewById(R.id.play_btn);
mPlayBtnView.setOnClickListener(this);
mSuperVideoPlayer.setVideoPlayCallback(mVideoPlayCallback);
startDLNAService();
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:11,代码来源:MainActivity.java
示例3: onCreateViewLazy
import com.android.tedcoder.wkvideoplayer.view.SuperVideoPlayer; //导入依赖的package包/类
@Override
protected void onCreateViewLazy(Bundle savedInstanceState) {
super.onCreateViewLazy(savedInstanceState);
setContentView(R.layout.fragment_video);
mSuperVideoPlayer = (SuperVideoPlayer) findViewById(R.id.video_player_item_1);
mPlayBtnView = findViewById(R.id.play_btn);
mPlayBtnView.setOnClickListener(this);
mSuperVideoPlayer.setVideoPlayCallback(mVideoPlayCallback);
}
开发者ID:freedomofme,项目名称:Netease,代码行数:12,代码来源:VideoFragment.java
示例4: onCreate
import com.android.tedcoder.wkvideoplayer.view.SuperVideoPlayer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mSuperVideoPlayer = (SuperVideoPlayer)findViewById(R.id.video_player_item_1);
mPlayBtnView = findViewById(R.id.play_btn);
mPlayBtnView.setOnClickListener(this);
mSuperVideoPlayer.setVideoPlayCallback(mVideoPlayCallback);
}
开发者ID:pczhu,项目名称:AndroidVideoPlayer-master,代码行数:10,代码来源:MainActivity.java
注:本文中的com.android.tedcoder.wkvideoplayer.view.SuperVideoPlayer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论