本文整理汇总了Java中com.android.tedcoder.wkvideoplayer.view.MediaController类的典型用法代码示例。如果您正苦于以下问题:Java MediaController类的具体用法?Java MediaController怎么用?Java MediaController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MediaController类属于com.android.tedcoder.wkvideoplayer.view包,在下文中一共展示了MediaController类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onPlayFinish
import com.android.tedcoder.wkvideoplayer.view.MediaController; //导入依赖的package包/类
@Override
public void onPlayFinish() { //播放结束
Log.d("video","onPlayFinish");
toleft_iv_right.setVisibility(View.GONE);
iv_right.setVisibility(View.GONE);
if (mSuperVideoPlayer.mCurrPageType == MediaController.PageType.EXPAND ) {
mSuperVideoPlayer.mMediaControl.onPageTurn();
}
mFinishLayer.setVisibility(View.VISIBLE);
headLayout.setVisibility(View.VISIBLE);
mSuperVideoPlayer.dismissProgress();
mSuperVideoPlayer.hideController();
mSuperVideoPlayer.setCovorVisible();
mSuperVideoPlayer.setBottomProgressBarGone();
mTvUpdateTime.setVisibility(View.GONE);
writeAppLog("end",true);
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:18,代码来源:VideoPlayVODNotHotelActivity.java
示例2: onSwitchPageType
import com.android.tedcoder.wkvideoplayer.view.MediaController; //导入依赖的package包/类
@Override
public void onSwitchPageType() { //切换屏幕
if (getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE||getRequestedOrientation()==ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
mSuperVideoPlayer.setPageType(MediaController.PageType.SHRINK);
// mRightLandscape.setVisibility(View.GONE);
// mCutScreenBtn.setVisibility(View.GONE);
} else { //切换为横屏
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
mSuperVideoPlayer.setPageType(MediaController.PageType.EXPAND);
// mRightLandscape.setVisibility(View.VISIBLE);
// mCutScreenBtn.setVisibility(View.VISIBLE);
}
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:16,代码来源:VideoPlayVODNotHotelActivity.java
示例3: onBackPressed
import com.android.tedcoder.wkvideoplayer.view.MediaController; //导入依赖的package包/类
@Override
public void onBackPressed() {
RecordUtils.onEvent(this,getString(R.string.details_page_back));
if (mSuperVideoPlayer.mCurrPageType == MediaController.PageType.EXPAND ) {
mSuperVideoPlayer.mMediaControl.onPageTurn();
}else{
finish();
}
}
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:10,代码来源:VideoPlayVODNotHotelActivity.java
示例4: onSwitchPageType
import com.android.tedcoder.wkvideoplayer.view.MediaController; //导入依赖的package包/类
@Override
public void onSwitchPageType() {
if (getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
mSuperVideoPlayer.setPageType(MediaController.PageType.SHRINK);
} else {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
mSuperVideoPlayer.setPageType(MediaController.PageType.EXPAND);
}
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:11,代码来源:MainActivity.java
示例5: resetPageToPortrait
import com.android.tedcoder.wkvideoplayer.view.MediaController; //导入依赖的package包/类
/***
* 恢复屏幕至竖屏
*/
private void resetPageToPortrait() {
if (getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
mSuperVideoPlayer.setPageType(MediaController.PageType.SHRINK);
}
}
开发者ID:dingdingyr,项目名称:AndroidVideoPlayer-,代码行数:10,代码来源:MainActivity.java
示例6: onSwitchPageType
import com.android.tedcoder.wkvideoplayer.view.MediaController; //导入依赖的package包/类
@Override
public void onSwitchPageType() {
if (getActivity().getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
mSuperVideoPlayer.setPageType(MediaController.PageType.SHRINK);
} else {
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
mSuperVideoPlayer.setPageType(MediaController.PageType.EXPAND);
}
}
开发者ID:freedomofme,项目名称:Netease,代码行数:11,代码来源:VideoFragment.java
示例7: onSwitchPageType
import com.android.tedcoder.wkvideoplayer.view.MediaController; //导入依赖的package包/类
@Override
public void onSwitchPageType() {
if (getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
mSuperVideoPlayer.setPageType(MediaController.PageType.SHRINK);
}else {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
mSuperVideoPlayer.setPageType(MediaController.PageType.EXPAND);
}
}
开发者ID:pczhu,项目名称:AndroidVideoPlayer-master,代码行数:11,代码来源:MainActivity.java
示例8: resetPageToPortrait
import com.android.tedcoder.wkvideoplayer.view.MediaController; //导入依赖的package包/类
/***
* 恢复屏幕至竖屏
*/
private void resetPageToPortrait(){
if (getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
mSuperVideoPlayer.setPageType(MediaController.PageType.SHRINK);
}
}
开发者ID:pczhu,项目名称:AndroidVideoPlayer-master,代码行数:10,代码来源:MainActivity.java
示例9: resetPageToPortrait
import com.android.tedcoder.wkvideoplayer.view.MediaController; //导入依赖的package包/类
private void resetPageToPortrait() {
if (getActivity().getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
mSuperVideoPlayer.setPageType(MediaController.PageType.SHRINK);
}
}
开发者ID:freedomofme,项目名称:Netease,代码行数:7,代码来源:VideoFragment.java
注:本文中的com.android.tedcoder.wkvideoplayer.view.MediaController类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论