Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug with audio progress / time
- Loading branch information
1 parent
56819ae
commit 18a5bff
Showing
7 changed files
with
76 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.kurbmedia.mediaplayers{ | ||
|
||
import flash.display.MovieClip; | ||
import flash.events.Event; | ||
import flash.events.ProgressEvent; | ||
import flash.events.IOErrorEvent; | ||
import flash.events.TimerEvent; | ||
import flash.utils.Timer; | ||
import flash.text.TextFormat; | ||
import flash.text.TextField; | ||
|
||
import com.kurbmedia.mediaplayers.events.PlayerEvent; | ||
|
||
public class VideoPlayer extends PlayerBase{ | ||
|
||
public var flv_player:FLVPlayBack; | ||
|
||
public function VideoPlayer(){ | ||
addEventListener(PlayerEvent.CONSTRUCT_COMPLETE, init_player); | ||
super(); | ||
} | ||
|
||
private function init_player(e:PlayerEvent){ | ||
|
||
addEventListener(PlayerEvent.PLAY_DATA, play_video); | ||
addEventListener(PlayerEvent.PAUSE_DATA, pause_video); | ||
addEventListener(PlayerEvent.MUTE_DATA, mute_video); | ||
addEventListener(PlayerEvent.UNMUTE_DATA, mute_video); | ||
|
||
dispatchEvent(new PlayerEvent(PlayerEvent.RENDER_COMPLETE)); | ||
|
||
|
||
} | ||
|
||
private function enable_play_buttons(dir:Boolean){ | ||
|
||
var a = (dir == true) ? 1 : .5; | ||
|
||
if(has_control('play_pause_button')){ | ||
play_pause_button.alpha = a; | ||
play_pause_button.mouseEnabled = dir; | ||
} | ||
|
||
if(has_control('play_button')){ | ||
play_button.alpha = a; | ||
play_button.mouseEnabled = dir; | ||
} | ||
} | ||
|
||
|
||
private function mute_video(e:PlayerEvent){ | ||
} | ||
|
||
private function play_video(e:PlayerEvent){ | ||
} | ||
|
||
private function pause_video(e:PlayerEvent){ | ||
} | ||
|
||
} | ||
|
||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.