RTMP Stream in sample app MSDK 5.8.0

已完成

评论

5 条评论

  • DJI Developer Support
    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.
    0
    评论操作 固定链接
  • Bob

    Thank you for the response, I will try to implement the interface myself.

    0
    评论操作 固定链接
  • DJI Developer Support
    I hope my response has been helpful to you.
    0
    评论操作 固定链接
  • Bob

    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

    0
    评论操作 固定链接
  • DJI Developer Support
    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.
    0
    评论操作 固定链接

请先登录再写评论。