Skip to content

Commit

Permalink
Merge pull request #65 from eventials/master
Browse files Browse the repository at this point in the history
Fix autoSwitch property
  • Loading branch information
Germano Fronza authored Aug 30, 2016
2 parents 006ec27 + 3fc5450 commit 1327d6e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified dist/assets/RTMP.swf
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Binary file modified public/RTMP.swf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/RTMP.as
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1327d6e

Please sign in to comment.