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

FLV - Playback fails if SCRIPTDATA segment has invalid name type #7675

Closed
yanshanshu opened this issue Jul 27, 2020 · 4 comments
Closed

FLV - Playback fails if SCRIPTDATA segment has invalid name type #7675

yanshanshu opened this issue Jul 27, 2020 · 4 comments
Assignees

Comments

@yanshanshu
Copy link

播放一个没有没有音频输出的视频流,报com.google.android.exoplayer2.ExoPlaybackException: com.google.android.exoplayer2.ParserException 异常

@ojw28
Copy link
Contributor

ojw28 commented Jul 27, 2020

ExoPlayer supports video streams that do not also contain audio, so this should work fine. For us to help, you'll need to provide us with a piece of sample media that reproduces the problem.

@ojw28 ojw28 self-assigned this Jul 27, 2020
@ojw28 ojw28 changed the title flv视频流没有音频导致播放失败 FLV - The video stream has no audio causing playback to fail Jul 27, 2020
@ojw28
Copy link
Contributor

ojw28 commented Jul 27, 2020

It looks like the media contains an invalid SCRIPTDATA segment, which violates the FLV specification.

We can make ExoPlayer ignore the segment rather than fail playback in this case, however please note that the media is malformed, and that's the root cause of this issue.

@ojw28 ojw28 changed the title FLV - The video stream has no audio causing playback to fail FLV - Playback fails if SCRIPTDATA segment has invalid name type Jul 27, 2020
@yanshanshu
Copy link
Author

请问怎么设置ExoPlayer ignore the segment继续播放?我需要帮助

ojw28 added a commit that referenced this issue Jul 28, 2020
@ojw28
Copy link
Contributor

ojw28 commented Jul 28, 2020

The media should play successfully when using the dev-v2 branch, as of the change above. This change will be included in the 2.12 release.

@ojw28 ojw28 closed this as completed Jul 28, 2020
ojw28 added a commit that referenced this issue Aug 19, 2020
zxzx74147 pushed a commit to zxzx74147/ExoPlayer that referenced this issue Sep 7, 2020
@google google locked and limited conversation to collaborators Sep 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants