課程
/移動開發
/Android
/Android視頻播放器
那個播放時間和總時間是怎么獲取到的????為什么我的不行- -,明明是照著老是代碼打的
2017-05-10
源自:Android視頻播放器 2-4
正在回答
?//當前播放時間int currentTime = mVideoView.getCurrentPosition();//視頻總時間int totalTime = mVideoView.getDuration();
舉報
Android系統自帶的以及自定義播放器
1 回答視頻路徑獲取
3 回答怎么獲取一個網頁上的視頻資源
1 回答視頻播放問題
1 回答視頻權限問題
1 回答全屏時視頻的大小怎樣覆蓋全屏
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-07-13
?//當前播放時間
int currentTime = mVideoView.getCurrentPosition();
//視頻總時間
int totalTime = mVideoView.getDuration();