Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Seek is not supported #4

Open
AxelDelmas opened this issue Feb 23, 2016 · 0 comments
Open

Seek is not supported #4

AxelDelmas opened this issue Feb 23, 2016 · 0 comments
Labels

Comments

@AxelDelmas
Copy link

During the decoupling of this polyfill from our player, we removed a feedback loop that would get the key frame time from the JS dash player, and then:

  1. do the actual seeking on a key frame
  2. while making sure everything went well if audio and video segments were not aligned (basically making sure we didn't append an audio segment that started before the chosen key frame).
    Failing to ensure those 2 points would cause NetStream to crash in the weirdest ways.

A better way to work around these limitations is to give every frame located before the seek target the timestamp of the seek target itself.

This can be done in the transmuxer: this loop goes over every frame to write them in a ByteArray

I don't think we broke anything else during the decoupling phase, but a good way to start might be to seek programmatically exactly to the beginning of a DASH segment (expecting that it starts with a key frame), using a video only stream.

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

No branches or pull requests

1 participant