Video Streaming From Game Problem

Hi,

I would like to stream video from within a game. I found a solution here : http://hub.jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/video-streaming-with-videorecorderappstate/ but haven’t been able to get this to work. Is this currently accepted best practice in JME3 for video streaming or is there another way? I may have just messed up the patch but I cant spot the error at the moment. The



The HelloCollision.simpleInitApp app is modified with :

VideoRecorderAppState videoRecorderAppState = new VideoRecorderAppState();

HttpStreamingServer server = new HttpStreamingServer(videoRecorderAppState);

server.serve();

stateManager.attach(videoRecorderAppState);



Shortened error messages are :

From VLC :


[0227acd8] main access debug: net: connecting to localhost port 8081
[0227acd8] main access debug: connection succeeded (socket = 1368)
[0227acd8] access_http access debug: protocol 'HTTP' answer code 200
???????¤¶???????? $.' ",#??(7),01444?'9=82<.342??ader line: ?¶
[0227acd8] access_http access debug: switching to HTTP version 1.0
..
[0227acd8] access_http access error: malformed header line: (??
[0227acd8] main access debug: net: connecting to localhost port 8081
[0227acd8] main access debug: connection succeeded (socket = 1368)
[0227acd8] access_mms access debug: HTTP reply 'HTTP/1.1 200 OKrnContent-Type: v
ideo/mpegrnrnRIFF???¦AVI LIST?'
[0227acd8] access_mms access error: malformed header line: (??
[0227acd8] main access debug: no access module matching "http" could be loaded


I also have the http exchange records obtained from TCP mon. Briefly :
The request :
GET / HTTP/1.0
Host: localhost:8081
Accept: */*
User-Agent: NSPlayer/7.10.0.3059
Pragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=1,max-duration=0
Pragma: xClientGUID={0xbabac001-0x33eb-0x17b6-0xcd91ba91f898db84}
Connection: Close

And response greatly shortened :
HTTP/1.1 200 OKrnContent-Type: video/mpegrnrnRIFFÿÿÿAVI LISTÈ......

Thanks for any pointers.
1 Like