wotwot / haxevideo

Automatically exported from code.google.com/p/haxevideo
0 stars 0 forks source link

NetStream.pause and NetStream.seek #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I create a little application in Flash8 to test the haxe_video server
2. I configurate the server with the port 2000 in the server.bat
3. I use this code :

var nc:NetConnection = new NetConnection() ;

nc.onStatus = function( oInfo )
{
    for (var prop:String in oInfo)
    {
        trace("* " + prop + " : " + oInfo[prop] ) ;
    }
}

nc.connect( "rtmp://127.0.0.1:2000" ) ;

var ns:NetStream = new NetStream( nc ) ;
ns.onStatus = function( oInfo )
{
    for (var prop:String in oInfo)
    {
        trace("* " + prop + " : " + oInfo[prop] ) ;
    }
}
ns.play("test.flv") ;
video_mc.video.attachVideo(ns) ;

Key.addListener(this) ;
onKeyDown = function()
{
    trace("-------- pause") ;
    ns.pause() ; // The problem !
}

4. The pause don't work and close the connection with the server.

5. idem with the seek() method. 

What is the expected output? What do you see instead?

# In the cmd.exe console of the server i can read : 

Client.hx:170: CONNECT
Client.hx:196: CREATESTREAM
Client.hx:260: COMMAND CClientBuffer<0>:1
Client.hx:213: PLAY 'videos/test.flv'
Client.hx:260: COMMAND CClientBuffer<100>:1
Unknow command pause<ANull, AUndefined,ANumber<1071>>
Called from hxvid/Server.hx line 81
Called from hxvid/Client.hx line 253

# In the Flash output

* description : Connection succeeded.
* code : NetConnection.Connect.Success
* level : status
* description : Resetting videos/test.flv.
* code : NetStream.Play.Reset
* level : status
* clientId : 1
* details : videos/test.flv
* description : Start playing videos/test.flv.
* code : NetStream.Play.Start
* level : status
* clientId : 1
* level : status
* code : NetStream.Buffer.Full
-------- pause
* level : status
* code : NetConnection.Connect.Closed

What version of the product are you using? On what operating system?

HaxeVideo beta 2 with Windows XP SP2 and FP8 version of the flash player.

Please provide any additional information below.

Good work Nicolas ;) Thanks for this application server !

EKA+ :)

Original issue reported on code.google.com by ekamel...@gmail.com on 31 Mar 2007 at 7:17

GoogleCodeExporter commented 9 years ago
Will work on it

Original comment by ncanna...@gmail.com on 31 Mar 2007 at 9:38

GoogleCodeExporter commented 9 years ago

Original comment by ncanna...@gmail.com on 31 Mar 2007 at 11:57

GoogleCodeExporter commented 9 years ago
implemented in beta 3

Original comment by ncanna...@gmail.com on 14 May 2007 at 7:31