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.
RtmpSampleAccess
comes into play withappendBytes
method. – VC.OneappendBytes
video without error. Infact, it cancels all security errors!! Let me know if it works since this is shorter & less limited (than possible second option). – VC.One