I am reading the source code of shaka and try to understand how to make Chrome decode/play the downloaded segments when unbeffered seek happens.
I clip the playhead faraway for an unbuffered seek and Chrome can fetch the needed segments and start from the new playback position.
So the steps I summarized :
1. remove the source buffer .
2. feed the previous reference ( SegmentReference ) in case of drift, and the following segments .
But when I repeat the above steps in my own javascript without shaka and the first step is replaced with feeding the init. segment ( mp4 file instead of webm . The reason is : my chrome start with a new webpage and no seek at all --- I would like to make Chrome start with the n-th segment directly . Of course , these segments are the same as the ones played with shaka's unbuffered seek.) The chrome does not play them at all .
Is there some important step I missed ?
Regards !
Xiaoming Ding