保利威视Polyv点播集成

demo和文档下载地址http://dev.polyv.net/2014/08/sdk/

1.demo是eclipse的,所以导入android studio有几个要注意的地方

导入方式

 在app的build.gradle中android{}添加代码,例:

packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    }

重中之重:sdk23.0.3一定要下载,如果下载失败,利用FQ工具Lantern或XX-net下载

(android就是这么坑,因为网站被国内封锁)

保利威视Polyv点播集成_第1张图片

【保利威视流程】 

1.打开app:
VideoListActivity--onCreate
VideoAdapter--getView
AnimateFirstDisplayListener--onLoadingComplete

2.点击播放(竖屏)
MediaController--initControllerView
PolyvPlayerSRTPopupView--initViews
MediaController--setOnBoardChangeListener
MediaController--setOnVideoChangeListener
MediaController--setOnResetViewListener
MediaController--setOnUpdateStartNow
IjkVideoActicity--changeToPortrait
PolyvPlayerFirstStartView--initViews
MediaController--initControllerView
PolyvPlayerSRTPopupView--initViews
AnimateFirstDisplayListener--onLoadingComplete

3.竖屏切换全屏
IjkVideoActicity--changeToLandscape
IjkVideoActicity--onConfigurationChanged
VideoAdapter--getView
AnimateFirstDisplayListener--onLoadingComplete

4.下载
PolyvDBservice--isAdd
PolyvDBOpenHepler--onCreate
PolyvDBservice--addDownloadFile
PolyvDBservice--updatePercent

5.删除
PolyvDownloadListAdapter--clearPolyvDownload
PolyvDownloadListAdapter--deleteVideo
PolyvDBservice--deleteDownloadFile

6.下载全部
PolyvDownloadListActivity--暂停全部
PolyvDownloadListAdapter--downloadAllFile

7.暂停全部
PolyvDownloadListActivity--下载全部
PolyvDownloadListAdapter--stopAll

8.直接全屏播放
MediaController--initControllerView
PolyvPlayerSRTPopupView--initViews
MediaController--setOnBoardChangeListener
MediaController--setOnVideoChangeListener
MediaController--setOnResetViewListener
MediaController--setOnUpdateStartNow
IjkVideoActicity--changeToLandscape
PolyvPlayerFirstStartView--initViews
IjkVideoActicity--onConfigurationChanged
MediaController--initControllerView
PolyvPlayerSRTPopupView--initViews
AnimateFirstDisplayListener--onLoadingComplete

9.横屏切换竖屏
IjkVideoActicity--changeToPortrait
IjkVideoActicity--onConfigurationChanged

10.上传视频
PolyvUDBService--getUploadFiles
PolyvUDBOpenHelper--onCreate

 

你可能感兴趣的:(移动开发,java,swift)