How long do you need to let the stream play before it is safe to perform a seek? And is there a way to know when it is safe other than just giving it some time? For example, if you: ns.play(source); ns.seek(5); ns.pause(); Then the video will no longer be playable.
But if you: ns.play(source); ---wait one second with a timer-- ns.seek(5); ns.pause(); then playback will work correctly.
But a second is a long time. So I want to reduce it to the actual needed amount or wait for a certain flag. Waiting for full buffer is not enough, nor is waiting for metadata.