-
Notifications
You must be signed in to change notification settings - Fork 26
/
PlayerEvent.hx
28 lines (27 loc) · 1.2 KB
/
PlayerEvent.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// WAV/AU Flash player with resampler
//
// Copyright (c) 2009, Anton Fedorov <[email protected]>
//
/* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*/
// Events, fired by Player to notify about it state
class PlayerEvent extends flash.events.Event {
static public inline var BUFFERING : String = "PLAYER_BUFFERING";
static public inline var PLAYING : String = "PLAYER_PLAYING";
static public inline var PAUSED : String = "PLAYER_PAUSED";
static public inline var STOPPED : String = "PLAYER_STOPPED";
public var position : Null<Float>;
public function new(type : String, ?position : Float, ?bubbles : Bool, ?cancelable : Bool) {
super(type, bubbles, cancelable);
this.position = position;
}
}