Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Ensure event.type for ALL events

2 replies [Last post]
Reply

I'm using version 5.7 and I noticed that when subscribing to events in jwPlayer, not all events set the 'type' attribute on the event object. I have not tested all events, but specifically the onPlay and onPause events do not set this attribute.

It seems like this should be standard across the board for events so you can use a common function for event handling. Just a thought, and this may already be fixed in newer versions, but I was just throwing it out there.

Thanks.

Reply

Thanks for the suggestion. None of our events set the "type" attribute, but we will look into possibly adding it.

Reply

Actually in v5.7 several of the events had the type attribute set. Could be they were set by the Flash Player.

onFullscreen had a type of "jwplayerFullscreen"
onMute had a type of "jwplayerMediaMute"
onVolume type == "jwplayerMediaVolume"
onSeek type == "jwplayerMediaSeek"

Just FYI.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options