tom
tom
fragment加载的布局需要include `giraffe_player.xml`,在`onViewCreated`初始化传入`getActivity ()`就行
注意,是在onViewCreated,不是onCreatView
can u give me a demo code project?
可以尝试一个视频播放完毕后马上加载另一个视频,视频播放完毕会回调`OnCompletionListener` 可以搜索`GiraffePlayer`中的setOnCompletionListener
下个版本增加回调,目前你可以clone后修改
please using [GiraffePlayer2](https://github.com/tcking/GiraffePlayer) ``` player.getCurrentPosition(); //current duration player.getDuration();//total duration ```
some errors occur,such as network not available,the console will print the stack
alfter 23.1.2+,when oratation is landspace ,the code `activity.getResources().getDisplayMetrics().heightPixels` return value when oratation is portrait,now I fix the issue
此功能确实在很多场景中存在,不过也需要看具体的业务,目前player的功能还是聚焦在提供一个开箱即用的播放器,欢迎PR将次作为一个分支feature
用真机测试下看看,buffer的配置参考[ijkplayer](https://github.com/Bilibili/ijkplayer)