GeezerVison is showing github.com — 不支持本地视频播放?? · Issue #47 · Doikki/DKVideoPlayer
ActivityDoikki commented on Jun 3, 2018 1.确定你有访问sd卡的权限,2 使用file协议 toeii commented on Jun 3, 2018 Doikki commented on Jun 3, 2018 toeii commented on Jun 3, 2018 String path = "/storage/emulated/0/DCIM/Camera/VID_20180512_202414.mp4";
File file = new File(path);
if(file.exists()){
path = Uri.parse("file://"+file.getAbsolutePath()).toString();
}
dkVideo.setUrl(path);
Logger.d("path====>"+path);
path====>file:///storage/emulated/0/DCIM/Camera/VID_20180512_202414.mp4 toeii commented on Jun 3, 2018 Doikki commented on Jun 3, 2018 toeii commented on Jun 3, 2018 👌 PlayerConfig.Builder去掉enableCache已经可以播放了 sunshinecf commented on Nov 6, 2018 xiaoshizuzhang commented on Apr 18, 2019 xiaoshizuzhang commented on Apr 18, 2019 jiancheng2018 commented on Oct 20, 2019 yuxingfafu commented on Mar 2, 2020 a1042392710 commented on Jul 16, 2020 大佬,无法播放本地视频。PlayerConfig类已经移除了,我现在该如何才能播放本地视频 ZakAnun commented on Jun 15, 2021
大佬,无法播放本地视频。PlayerConfig类已经移除了,我现在该如何才能播放本地视频
通过对应的播放器去配置,比如 ExoPlayer,就通过 DataSource.Factory 去获取是否支持缓存的 DataSource OnrushingDrumstick commented on Jun 29, 2021 SuperZhouyong commented on Jul 10, 2021 
@Doikki 播放本地视频,重复点进去,回调有问题。 M3U8本地,Exo 播放
liupeng176 commented on Apr 9, 2024 坑爹,刚选视频播放库的建议别选这个库,缓存都没有。每次播都从新下载。推荐的缓存方案更是坑爹,在安卓手机本地开了端口,启动服务。 所有的url都被重定向为明文流量 http://127.0.0.1:xxx/原视频url beginningjx commented on Feb 8, 2025 播放本地加密的m3u8如果密匙为.key结尾的使用ijk内核会导致播放不了,会报
Filename extension of 'xxx.key' is not a common multimedia extension, blocked for security reasons.
这个错误,我的解决办法就是把密匙为.key结尾换成.m3u8结尾就可以播放了
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|