实例介绍
类似头条,网易App列表当中播放视频以及实现全屏,列表当中嵌套视频播放,滑出可视区域停止播放,点击全屏播放,主要利用textureview+mediaplay实现关键功能。修改了相关bug,可直接使用(之前的资源删除不了)。 ------资源很老了(怎么删除?),别再浪费分了,给大家推荐一个https://github.com/lipangit/JiaoZiVideoPlayer
【实例截图】
【核心代码】
ListVideoDemo
└── ListVideoDemo
├── AndroidManifest.xml
├── bin
│ ├── AndroidManifest.xml
│ ├── classes
│ │ └── com
│ │ └── android
│ │ ├── tedcoder
│ │ │ └── wkvideoplayer
│ │ │ ├── BuildConfig.class
│ │ │ ├── R$anim.class
│ │ │ ├── R$attr.class
│ │ │ ├── R$color.class
│ │ │ ├── R$dimen.class
│ │ │ ├── R$drawable.class
│ │ │ ├── R$id.class
│ │ │ ├── R$layout.class
│ │ │ ├── R$string.class
│ │ │ └── R.class
│ │ └── video
│ │ ├── FullVideoActivity$1.class
│ │ ├── FullVideoActivity.class
│ │ ├── VideoBean.class
│ │ ├── VideoListActivity$1.class
│ │ ├── VideoListActivity$MAdapter$GameVideoViewHolder.class
│ │ ├── VideoListActivity$MAdapter$MyOnclick.class
│ │ ├── VideoListActivity$MAdapter$MyVideoPlayCallback.class
│ │ ├── VideoListActivity$MAdapter.class
│ │ ├── VideoListActivity.class
│ │ └── widget
│ │ ├── MediaHelp.class
│ │ ├── VideoMediaController$MediaControlImpl.class
│ │ ├── VideoMediaController$PageType.class
│ │ ├── VideoMediaController$PlayState.class
│ │ ├── VideoMediaController$ProgressState.class
│ │ ├── VideoMediaController.class
│ │ ├── VideoSuperPlayer$10.class
│ │ ├── VideoSuperPlayer$11.class
│ │ ├── VideoSuperPlayer$12.class
│ │ ├── VideoSuperPlayer$1.class
│ │ ├── VideoSuperPlayer$2.class
│ │ ├── VideoSuperPlayer$3.class
│ │ ├── VideoSuperPlayer$4.class
│ │ ├── VideoSuperPlayer$5.class
│ │ ├── VideoSuperPlayer$6.class
│ │ ├── VideoSuperPlayer$7.class
│ │ ├── VideoSuperPlayer$8.class
│ │ ├── VideoSuperPlayer$9.class
│ │ ├── VideoSuperPlayer$AnimationImp.class
│ │ ├── VideoSuperPlayer$VideoPlayCallbackImpl.class
│ │ └── VideoSuperPlayer.class
│ ├── classes.dex
│ ├── ListVideoDemo.apk
│ ├── res
│ │ └── crunch
│ │ ├── drawable
│ │ │ ├── biz_video_bar_bg.9.png
│ │ │ └── ic_launcher.png
│ │ ├── drawable-hdpi
│ │ │ ├── biz_video_progress_thumb.png
│ │ │ ├── newplay.png
│ │ │ ├── praise.png
│ │ │ ├── share_cion.png
│ │ │ └── time.png
│ │ ├── drawable-xhdpi
│ │ │ ├── biz_video_expand.png
│ │ │ ├── biz_video_pause.png
│ │ │ ├── biz_video_play.png
│ │ │ ├── biz_video_progress_thumb.png
│ │ │ └── biz_video_shrink.png
│ │ └── drawable-xxhdpi
│ │ └── biz_news_list_ad_video_close_btn.png
│ └── resources.ap_
├── gen
│ └── com
│ └── android
│ └── tedcoder
│ └── wkvideoplayer
│ ├── BuildConfig.java
│ └── R.java
├── java
│ └── com
│ └── android
│ └── tedcoder
│ └── wkvideoplayer
│ ├── model
│ │ ├── Video.java
│ │ └── VideoUrl.java
│ ├── util
│ │ └── DensityUtil.java
│ └── view
│ ├── EasySwitcher.java
│ ├── MediaController.java
│ ├── SuperVideoPlayer.java
│ └── SuperVideoView.java
├── project.properties
├── res
│ ├── anim
│ │ ├── anim_enter_from_bottom.xml
│ │ └── anim_exit_from_bottom.xml
│ ├── color
│ │ └── switcher_item_text_selector.xml
│ ├── drawable
│ │ ├── bg_black_a10_selector.xml
│ │ ├── biz_video_bar_bg.9.png
│ │ ├── biz_video_progressbar.xml
│ │ └── ic_launcher.png
│ ├── drawable-hdpi
│ │ ├── bg.jpg
│ │ ├── biz_video_progress_thumb.png
│ │ ├── newplay.png
│ │ ├── praise.png
│ │ ├── share_cion.png
│ │ └── time.png
│ ├── drawable-xhdpi
│ │ ├── biz_video_expand.png
│ │ ├── biz_video_pause.png
│ │ ├── biz_video_play.png
│ │ ├── biz_video_progress_thumb.png
│ │ └── biz_video_shrink.png
│ ├── drawable-xxhdpi
│ │ └── biz_news_list_ad_video_close_btn.png
│ ├── layout
│ │ ├── activity_full.xml
│ │ ├── activity_main.xml
│ │ ├── list_video_item.xml
│ │ ├── super_video_media_controller.xml
│ │ └── super_video_view.xml
│ ├── values
│ │ ├── colos.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── values-w820dp
│ └── dimens.xml
└── src
└── com
└── android
└── video
├── FullVideoActivity.java
├── VideoBean.java
├── VideoListActivity.java
└── widget
├── MediaHelp.java
├── VideoMediaController.java
└── VideoSuperPlayer.java
43 directories, 103 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论