Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VlcSimplePlayer 不能播放本地资源 #55

Open
thisSillyCow opened this issue Aug 23, 2019 · 2 comments
Open

VlcSimplePlayer 不能播放本地资源 #55

thisSillyCow opened this issue Aug 23, 2019 · 2 comments

Comments

@thisSillyCow
Copy link

thisSillyCow commented Aug 23, 2019

VlcSimplePlayer 我在播放本地资源的携带 file:// 或者不携带 都是不能播放 ;尝试以为是本地资源的问题 然后直接用手机自带的播放器是可以播放资源的;
源码:
<VlcSimplePlayer
ref={(video) => { this.player = video }}
autoplay={true}
//url={'file://' + this.state.currentUrl}
url={this.state.currentUrl}
initType={2}
autoAspectRatio={true}
isLive={true}
autoplay={true}
autoReloadLive={true}
hwDecoderEnabled={1}
hwDecoderForced={1}
style={[styles.backgroundVideo,]}
/>
打印本地的资源路径:
/storage/emulated/0/HANJUTV/143/143-2/out.mp4
请帮我看一下哪里有问题
我看了之前几个关的 issue 都是可以播放本地资源的 我这边也没有修改源码

@ivan-kolesov
Copy link

Just remove file:// from url

@thisSillyCow
Copy link
Author

是的 我本地资源就是没有 file://的
/storage/emulated/0/HANJUTV/143/143-2/out.mp4
这个就是我使用的资源路径

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants