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

作者你好,Exoplayer无缝切换效果的例子能不能换成SystemPlayerManager系统播放器 #3566

Closed
excellenttank opened this issue May 3, 2022 · 7 comments

Comments

@excellenttank
Copy link

excellenttank commented May 3, 2022

你好,机器RK3229

用了Demo中的ExoPlayer无缝切换效果的例子播放本地4K视频时卡顿 ,

之前测试的系统的PlayerFactory.setPlayManager(SystemPlayerManager.class);播4K视频不卡顿,但是没有无缝切换效果,

想问下ExoPlayer中的无缝切换能不能换播放器换成SystemPlayerManager这个系统播放器,或者说是哪个设置没有设置好,

已经设置硬解

@excellenttank
Copy link
Author

excellenttank commented May 5, 2022

还有就是AVI格式的支持,还需要按照#1206 中的方式编译吗 替换其中的zip没有效果 branch-avi怎么没看到这个分支

@CarGuo
Copy link
Owner

CarGuo commented May 5, 2022

哦,branch-avi 之类的分支因为之前项目占用体积等原因,清理掉了,那个也是软解码的 so 库实现而已····· 无缝切换换成SystemPlayerManager 有为什么问题吗?

@excellenttank
Copy link
Author

excellenttank commented May 5, 2022

哦,branch-avi 之类的分支因为之前项目占用体积等原因,清理掉了,那个也是软解码的 so 库实现而已····· 无缝切换换成SystemPlayerManager 有为什么问题吗?

Demo中的自定义Exo是不是不支持Avi怎么才能支持呢,我在gitee上找到了branch-avi分支,但是好像自定义Exo中也不能播放Avi

@excellenttank
Copy link
Author

excellenttank commented May 5, 2022

然后Exo设置这个无效 .setOverrideExtension("avi")我用的是8.1.9版本
image
2022-05-05 16:36:24.386 7835-7835/? E/EventLogger: playerFailed [11.02] com.google.android.exoplayer2.ExoPlaybackException: Source error at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:628) at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:598) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:154) at android.os.HandlerThread.run(HandlerThread.java:61) Caused by: com.google.android.exoplayer2.source.UnrecognizedInputFormatException: None of the available extractors (FlvExtractor, FlacExtractor, WavExtractor, FragmentedMp4Extractor, Mp4Extractor, AmrExtractor, PsExtractor, OggExtractor, TsExtractor, MatroskaExtractor, AdtsExtractor, Ac3Extractor, Ac4Extractor, Mp3Extractor, JpegExtractor) could read the stream. at com.google.android.exoplayer2.source.BundledExtractorsAdapter.init(BundledExtractorsAdapter.java:92) at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1024) at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:409) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761)

@CarGuo
Copy link
Owner

CarGuo commented May 5, 2022

74fd85e avi 的是这个提交,走 ijk 的

@excellenttank
Copy link
Author

74fd85e avi 的是这个提交,走 ijk 的

现有的Exo模式怎么才能支持avi播放,或者有没有AviExtractor

@CarGuo
Copy link
Owner

CarGuo commented May 5, 2022

google/ExoPlayer#9915

@CarGuo CarGuo closed this as completed May 16, 2022
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