Ticket #1299 (closed bug: worksforme)

Opened 2 years ago

Last modified 13 months ago

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:1 Changed 2 years ago by pablo

  • Milestone changed from Player 5.7 to Player 5.8

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.

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.

comment:4 Changed 19 months ago by pablo

  • Priority set to Normal
  • Milestone changed from Player 5.9 to Backlog

comment:5 Changed 13 months ago by jeroen

  • Status changed from new to closed
  • Resolution set to worksforme

We can keep this as-is. The additional metadata is not causing any issues. It'd just be nicer if the data wasn't resent.

Note: See TracTickets for help on using tickets.