RTMP Stream in sample app MSDK 5.8.0
CompletedHi,
I'm trying to start a live stream (RTMP) from the default layout in the sample app but I don't know how. The setup works when using the live streaming testing tools, but I want to live stream while flying.
Is there a widget to control the RTMP stream settings and start transmission? (Like there is on the RC2 remote there is a live stream button in the menu, but I cannot find it in the sample app)
Or can I keep the stream in the background after switching to default layout?
I'm using RC N1 controller + OnePlus 9 with DJI mini 3 pro
Thank you in advance
-
MSDK currently does not provide a live streaming widget, you can implement one yourself. If you need to enable live streaming on the default page, you will need to modify the code of the default page because the default page does not have the code to enable live streaming. You can refer to the tutorial for using the live streaming interface:https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/live-stream.html The app cannot stream live when it is in the background because the app will stop receiving video stream data from the camera. -
Yes it was thank you, I've managed to get it working. I have another question if I may in this thread:
Can I encode frame timestamps in the stream or is there a good way to measure latency? I have an RTMP stream and in parallel I send data to an endpoint (attitudes, focalLength, position, etc.) with a timestamp, but I cannot figure out if there is an option to get a videoframe timestamp.
Hope my question is clear, thank you in advance.
Bob
-
Would you like to obtain timestamp information on RTMP video frames? If you are using MSDK's RTMP live streaming feature, unfortunately, the SDK does not write timestamp into frames during live streaming. If you are considering implementing the live streaming feature yourself, you can write time information into the SEI part and then parse it when receiving video data.
Please sign in to leave a comment.
Comments
5 comments