diff --git a/dist/assets/RTMP.swf b/dist/assets/RTMP.swf index 46b2e04..0b97031 100644 Binary files a/dist/assets/RTMP.swf and b/dist/assets/RTMP.swf differ diff --git a/package.json b/package.json index 2328304..b14c81c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clappr-rtmp", - "version": "0.0.17", + "version": "0.0.18", "description": "RTMP Support for Clappr Player", "main": "dist/rtmp.js", "author": "Flávio Ribeiro", diff --git a/public/RTMP.swf b/public/RTMP.swf index 46b2e04..0b97031 100644 Binary files a/public/RTMP.swf and b/public/RTMP.swf differ diff --git a/src/RTMP.as b/src/RTMP.as index 5659700..fec5a36 100644 --- a/src/RTMP.as +++ b/src/RTMP.as @@ -218,7 +218,7 @@ package { mediaPlayer.bufferTime = this.root.loaderInfo.parameters.bufferTime; mediaPlayer.autoPlay = false; - mediaPlayer.autoDynamicStreamSwitch = this.root.loaderInfo.parameters.autoSwitch; + mediaPlayer.autoDynamicStreamSwitch = this.root.loaderInfo.parameters.autoSwitch == 'true'; mediaPlayer.addEventListener(TimeEvent.CURRENT_TIME_CHANGE, onTimeUpdated); mediaPlayer.addEventListener(TimeEvent.DURATION_CHANGE, onTimeUpdated); mediaPlayer.addEventListener(TimeEvent.COMPLETE, onFinish);