Skip to content

V2.97a.20131201

…FMS/RTMP server-based streaming. HTML5 unload, multiShot and autoPlay tweaks.

*Bug fixes*

Adobe FMS (RTMP Server) fix: Invoke server-side getStreamLength() call to determine duration. (Red5 and other free RTMP servers use NetStream onMetaData() to pass duration.)

Fix html5Unload() by loading a tiny base64-encoded data: URI WAVe file where supported. Elsewhere, use about:blank. This fixes errors in Chrome where the browser attempts to load the url "null" (a string.)

D'oh! Fix HTML5 sprite regression where _oncanplay() was not being picked up & fired, sound would not play on first click.

HTML5: Fix double-play bug with autoPlay: true. Correct edge case where onposition() items would sometimes be cleared if called/assigned before play().

ontimeout: function(status) {} callback parameter corrections. Fix missing error { type: 'INIT_TIMEOUT' } for missing/404 SWF case, and INIT_FLASHBLOCK for flashblock-specific case.

HTML5: Apply volume to cloned sounds in HTML5 multiShot case.

Fixed issue in _processOnPosition where the item in onPositionItems[i] can be undefined mid-loop if the callback that is triggered changes the length of the onPositionItems array, where onPositionItems.length becomes zero and there's an uncaught TypeError when trying to access item.fired the next time around.

Fixed mute in HTML5.

Fix onload in Firefox 3.6 with no flash (and yes, Firefox 25 is the current release. :D)

Correct event removal (cloned HTML5 nodes) - onended → ended

*API Updates*

Use 100% HTML5 mode by default, where available. preferFlash: false is now the default setting. Firefox does MP3 on Vista (and newer) via HTML5, and recently (via Firefox Aurora builds) on OS X - the last major hold-out. The vast majority of browsers now support MP3 via HTML5, thus reducing the reliance on Flash.

Reboot into 100% HTML5 mode where supported if flash fails after loading, i.e., local/offline/file:// or other edge case.

*Miscellaneous*

Fixed canPlayMIME() documentation example.
Assets 2