Is there a way to write a |RtmpSampleAccess command to a NetStream in data generation mode?

ساخت وبلاگ

Vote count: 0

I'm streaming data from a server and passing it into a net stream in data generation mode. I'm successfully wrapping H264 and PCMU to be played back through NetStream, however I need to be able to capture this output from the video display it's on and store it in an image. When using an RTMP server, I'd configure it to send an RtmpSampleAccess command, with true,true for audio and video access allowed. When using RTMFP I'd do the same, send() a RtmpSampleAccess true,true from the peer to allow access.

I believe I need to send in an FLV tag for a script data object to represent the RtmpSampleAccess command, however I can't find any information on what the format of that tag needs to be. I've tried using the OSMF FLVTagScriptDataObject with the objects set to the following combinations:

["|RtmpSampleAccess", true, true]; ["|RtmpSampleAccess", [true, true]];

And various attempts at guessing the naming for object parameters (though looking at the protocol docs, I'm not sure there is one).

Could someone out there help me here, would be much appreciated,

Cheers,

Kev

asked 1 min ago

- - , .

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 244 تاريخ : چهارشنبه 12 اسفند 1394 ساعت: 13:03