GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 不支持本地视频播放?? · Issue #47 · Doikki/DKVideoPlayer

不支持本地视频播放?? #47

New issue
Copy link
New issue
Copy link
Closed
Closed
不支持本地视频播放??#47
Copy link

Description

@toeii
toeii
opened on Jun 3, 2018
Issue body actions

试了下,SD卡下的视频文件播放不了,提示请重试

Activity

  1. Doikki commented on Jun 3, 2018

    @Doikki
    Doikki
    on Jun 3, 2018
    Owner
    More actions

    1.确定你有访问sd卡的权限,2 使用file协议

  2. toeii commented on Jun 3, 2018

    @toeii
    toeii
    on Jun 3, 2018
    Author
    More actions

    是的,同样的路径七牛上可以播放

  3. Doikki commented on Jun 3, 2018

    @Doikki
    Doikki
    on Jun 3, 2018
    Owner
    More actions

    什么格式和编码,还有日志提供一下

  4. toeii commented on Jun 3, 2018

    @toeii
    toeii
    on Jun 3, 2018
    Author
    More actions

    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

  5. toeii commented on Jun 3, 2018

    @toeii
    toeii
    on Jun 3, 2018
    Author
    More actions

    E/IJKMEDIA: http://127.0.0.1:57023/file%3A%2F%2F%2Fstorage%2Femulated%2F0%2FDCIM%2FCamera%2FVID_20180512_202414.mp4: End of file
    E/tv.danmaku.ijk.media.player.IjkMediaPlayer: Error (-10000,0)

  6. Doikki commented on Jun 3, 2018

    @Doikki
    Doikki
    on Jun 3, 2018
    Owner
    More actions

    不要打开缓存功能

  7. toeii commented on Jun 3, 2018

    @toeii
    toeii
    on Jun 3, 2018
    Author
    More actions

    👌 PlayerConfig.Builder去掉enableCache已经可以播放了

  8. Doikki
    closed this as completedon Jun 4, 2018
  9. sunshinecf commented on Nov 6, 2018

    @sunshinecf
    sunshinecf
    on Nov 6, 2018
    More actions

    看你们解说我居然成功了,感谢大神们默默奉献

  10. Doikki
    pinned this issue on Jan 22, 2019
  11. xiaoshizuzhang commented on Apr 18, 2019

    @xiaoshizuzhang
    xiaoshizuzhang
    on Apr 18, 2019
    More actions

    本地的m3u8文件可以播放吗?

  12. xiaoshizuzhang commented on Apr 18, 2019

    @xiaoshizuzhang
    xiaoshizuzhang
    on Apr 18, 2019
    More actions

    视频地址已拼接成完整地址,不是相对地址

  13. jiancheng2018 commented on Oct 20, 2019

    @jiancheng2018
    jiancheng2018
    on Oct 20, 2019
    More actions

    怎么播放本地的视频呢?m3u8我试了可以

  14. yuxingfafu commented on Mar 2, 2020

    @yuxingfafu
    yuxingfafu
    on Mar 2, 2020
    More actions

    assets 目录下的应该要如何播放呀?

  15. a1042392710 commented on Jul 16, 2020

    @a1042392710
    a1042392710
    on Jul 16, 2020
    More actions

    大佬,无法播放本地视频。PlayerConfig类已经移除了,我现在该如何才能播放本地视频

  16. ZakAnun commented on Jun 15, 2021

    @ZakAnun
    ZakAnun
    on Jun 15, 2021
    More actions

    大佬,无法播放本地视频。PlayerConfig类已经移除了,我现在该如何才能播放本地视频

    通过对应的播放器去配置,比如 ExoPlayer,就通过 DataSource.Factory 去获取是否支持缓存的 DataSource

  17. OnrushingDrumstick commented on Jun 29, 2021

    @OnrushingDrumstick
    OnrushingDrumstick
    on Jun 29, 2021
    More actions

    为啥硬解码的api没有了

  18. SuperZhouyong commented on Jul 10, 2021

    @SuperZhouyong
    SuperZhouyong
    on Jul 10, 2021
    More actions

    image
    @Doikki 播放本地视频,重复点进去,回调有问题。 M3U8本地,Exo 播放

  19. liupeng176 commented on Apr 9, 2024

    @liupeng176
    liupeng176
    on Apr 9, 2024
    More actions

    坑爹,刚选视频播放库的建议别选这个库,缓存都没有。每次播都从新下载。推荐的缓存方案更是坑爹,在安卓手机本地开了端口,启动服务。 所有的url都被重定向为明文流量 http://127.0.0.1:xxx/原视频url

  20. beginningjx commented on Feb 8, 2025

    @beginningjx
    beginningjx
    on Feb 8, 2025
    More actions

    播放本地加密的m3u8如果密匙为.key结尾的使用ijk内核会导致播放不了,会报
    Filename extension of 'xxx.key' is not a common multimedia extension, blocked for security reasons.
    这个错误,我的解决办法就是把密匙为.key结尾换成.m3u8结尾就可以播放了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.