Skip to content

Commit

Permalink
Fixed an issue where the HTML streaming was broken with the latest ve…
Browse files Browse the repository at this point in the history
…rsion of Flash.
  • Loading branch information
Travis Tidwell committed Jun 24, 2010
1 parent e784cc9 commit 7a45348
Show file tree
Hide file tree
Showing 3 changed files with 461 additions and 19 deletions.
30 changes: 12 additions & 18 deletions com/tmtdigital/dash/display/media/MediaPlayer.as
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ package com.tmtdigital.dash.display.media
public function playFile( checkLoaded:Boolean = true )
{
if (media) {
autostart = true;
if (checkLoaded && ! media.loaded) {
loadMediaFile( loadedFile );
}
Expand Down Expand Up @@ -638,23 +637,18 @@ package com.tmtdigital.dash.display.media
* Triggered when the media is ready to play...
*/
protected function onMediaReady():void
{
if (! media.playing) {
if ( autostart && (Params.flashVars.delay == 0) ) {
playFile();
}
else {
if( autostart && (Params.flashVars.delay > 0) ) {
delayTimer.start();
setMediaState( MediaState.PLAYING, true );
}
else {
setMediaState( MediaState.STOPPED );
}
}
}

onMetaData();
{
if( !autostart ) {
autostart = true;
pauseFile();
setMediaState( MediaState.STOPPED );
}
else if( Params.flashVars.delay > 0 ){
pauseFile();
delayTimer.start();
}

onMetaData();
Gateway.setControlVolume( currentVolume, noControls );
setVolume( currentVolume );
}
Expand Down
Loading

0 comments on commit 7a45348

Please sign in to comment.