Ticket #1299 (closed bug: worksforme)
Video provider throwing metadata when advancing
| Reported by: | jeroen | Owned by: | pablo |
|---|---|---|---|
| Priority: | Normal | Milestone: | Backlog |
| Component: | flash | Keywords: | |
| Cc: | Forum thread: |
Description
When loading a new video/playlist, or advancing to the next video in a playlist, the video media provider is broadcasting metadata events of the old video. This b/c the video provider does a seek to 0 before closing the old stream. At that point, NetStream events like onMetadata and onTextData are re-broadcasted.
Note this only happens when advancing / reloading while the video is playing/paused. When advancing/reloading while the video is completed, this does not happen. Perhaps there's already a check on the event broadcaster, and this check only needs fine tuning?
Change History
comment:2 Changed 21 months ago by jeroen
If this cannot get easily fixed, feel free to close the ticket. The current behaviour is not breaking anything, there's just a bit of additional metadata events.
comment:3 Changed 21 months ago by pablo
- Milestone changed from Player 5.8 to Player 5.9
Let's push this off until the next release for now; we may need to wait until a player re-architecture to fully clean this up however.

I'm don't think there's much that can be done here, short of dropping the NetConnection on stop() and creating a new one on load(). We could possibly set the NetStream's client to null on stop(), but that doesn't guarantee us not to get any more metadata once we set it again on load().
As for getting the metadata when the video is completed, I don't get the same behavior -- I do in fact get several metadata events after the video completed event.