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

HLS - Play successfully but frozen when press forward button in demo #4184

Closed
dannyZhou opened this issue Apr 26, 2018 · 1 comment
Closed
Assignees

Comments

@dannyZhou
Copy link

Issue description

Play successfully when start from 00:00,
but when I press forward button, frozen occurred.

Reproduction steps

  1. Clone project.
  2. Change branch to dev-v2.
  3. Import project to Android Studio.
  4. add these codes to media.exolist.json.
      {
        "name": "HLS Test",
        "uri": "http://192.168.2.109/video.m3u8"
      }
  1. Connect phone and run demo project.
  2. Play demo, waiting play successfully and press forward button.
  3. Frozen will occurred.

Link to test content

https://drive.google.com/file/d/1X8mlM_uccEHJJPAF235xQSYIsgb3KYSA/view?usp=sharing

Version of ExoPlayer being used

d4eb2e5

Device(s) and version(s) of Android being used

Test Device:

  • Mobile Version: Mi-4c
  • MIUI Version: MIUI 9 8.4.12 development version
  • Android Version: 7.0
@AquilesCanta
Copy link
Contributor

The issue here is that only the first segment contains an IDR frame. You should fix the content by including an IDR frame at the start of each segment, as requested by the spec:

any Media Segment containing H.264 video SHOULD contain an IDR

You can also work around this by creating your own HLS Extractor factory and passing in FLAG_ALLOW_NON_IDR_KEYFRAMES.

@google google locked and limited conversation to collaborators Sep 11, 2018
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

2 participants