~ubuntu-branches/ubuntu/oneiric/haxe/oneiric

« back to all changes in this revision

Viewing changes to haxe/std/flash9/net/NetStream.hx

  • Committer: Bazaar Package Importer
  • Author(s): Jens Peter Secher
  • Date: 2009-03-18 23:09:50 UTC
  • mfrom: (3.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090318230950-pgfuxg2ucolps74t
Tags: 1:2.2-2
* Use ocamlfind to locate and use the libraries xml-light and extlib
  which already exist in Debian as separate packages.
  (Closes: #519630)
* Fixed compile error with camlp4 3.11, thanks to Stéphane Glondu.
  (Closes: #519627)
* Use quilt instead of dpatch for patches, and describe how to use
  quilt in Debian.source (thanks to Russ Allbery).
* Added a Vcs-Hg control filed to indicate the location of the public
  repository.
* Bumped Standards-Version to 3.8.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package flash.net;
2
2
 
3
3
extern class NetStream extends flash.events.EventDispatcher {
4
 
        function new(connection : flash.net.NetConnection) : Void;
5
 
        function attachAudio(microphone : flash.media.Microphone) : Void;
6
 
        function attachCamera(theCamera : flash.media.Camera, ?snapshotMilliseconds : Int) : Void;
7
4
        var audioCodec(default,null) : UInt;
8
5
        var bufferLength(default,null) : Float;
9
6
        var bufferTime : Float;
11
8
        var bytesTotal(default,null) : UInt;
12
9
        var checkPolicyFile : Bool;
13
10
        var client : Dynamic;
14
 
        function close() : Void;
15
11
        var currentFPS(default,null) : Float;
16
12
        var decodedFrames(default,null) : UInt;
17
13
        var liveDelay(default,null) : Float;
18
14
        var objectEncoding(default,null) : UInt;
 
15
        var soundTransform : flash.media.SoundTransform;
 
16
        var time(default,null) : Float;
 
17
        var videoCodec(default,null) : UInt;
 
18
 
 
19
        #if flash10
 
20
        function new(connection : flash.net.NetConnection, ?peerID : String ) : Void;
 
21
        #else
 
22
        function new(connection : flash.net.NetConnection) : Void;
 
23
        #end
 
24
 
 
25
        function attachAudio(microphone : flash.media.Microphone) : Void;
 
26
        function attachCamera(theCamera : flash.media.Camera, ?snapshotMilliseconds : Int) : Void;
 
27
        function close() : Void;
19
28
        function pause() : Void;
20
29
        function play( ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
21
30
        function publish(?name : String, ?type : String) : Void;
22
31
        function receiveAudio(flag : Bool) : Void;
23
32
        function receiveVideo(flag : Bool) : Void;
 
33
        function receiveVideoFPS(FPS : Float) : Void;
24
34
        function resume() : Void;
25
35
        function seek(offset : Float) : Void;
26
36
        function send(handlerName : String, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
27
 
        var soundTransform : flash.media.SoundTransform;
28
 
        var time(default,null) : Float;
29
37
        function togglePause() : Void;
30
 
        var videoCodec(default,null) : UInt;
31
 
        private function call(stream : flash.net.NetStream, command : String, responder : flash.net.Responder, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
32
 
        private function construct(connection : flash.net.NetConnection) : Void;
33
 
        private function invoke(index : UInt, ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void;
34
 
        private function invokeWithArgsArray(index : UInt, p_arguments : Array<Dynamic>) : Void;
35
 
        private function onResult(streamId : Int) : Void;
36
 
        private function onStatus(info : Dynamic) : Void;
37
 
        private static var kAttachAudio : UInt;
38
 
        private static var kAttachVideo : UInt;
39
 
        private static var kCall : UInt;
40
 
        private static var kClose : UInt;
41
 
        private static var kGetAudioCodecID : UInt;
42
 
        private static var kGetBufferLength : UInt;
43
 
        private static var kGetBufferTime : UInt;
44
 
        private static var kGetBytesLoaded : UInt;
45
 
        private static var kGetBytesTotal : UInt;
46
 
        private static var kGetCurrentFps : UInt;
47
 
        private static var kGetLiveDelay : UInt;
48
 
        private static var kGetTime : UInt;
49
 
        private static var kGetTotalFrames : UInt;
50
 
        private static var kGetVideoCodecID : UInt;
51
 
        private static var kSend : UInt;
52
 
        private static var kSetAudioCodecID : UInt;
53
 
        private static var kSetBufferTime : UInt;
54
 
        private static var kSetTotalFrames : UInt;
55
 
        private static var kSetVideoCodecID : UInt;
 
38
 
 
39
        #if flash10
 
40
        var maxPauseBufferTime : Float;
 
41
        var farID(default,null) : String;
 
42
        var farNonce(default,null) : String;
 
43
        var info(default,null) : NetStreamInfo;
 
44
        var nearNonce(default,null) : String;
 
45
        var peerStreams(default,null) : Array<Dynamic>;
 
46
 
 
47
        function onPeerConnect( subscriber : NetStream ) : Bool;
 
48
        function play2( param : NetStreamPlayOptions ) : Void;
 
49
 
 
50
        static var DIRECT_CONNECTIONS : String;
 
51
        #end
 
52
 
56
53
}