Getting video stream from DJI

已完成

评论

3 条评论

  • DJI Developer Support
    If the sample code can stream normally, it means the SDK can work properly at least. There doesn't seem to be any issue with your code, but successful live streaming requires some other prerequisites. I would like to confirm the status of the primary video channel when you start the live stream. Does the current page for live streaming display the video channel feed that needs to be pushed out?
    0
    评论操作 固定链接
  • Saviero Garcia

    > Does the current page for live streaming display the video channel feed that needs to be pushed out?

    I do not understand what page you are referring to.

    > I would like to confirm the status of the primary video channel when you start the live stream.

     

    using this code:

    Log.i("Monsoon: RTMP Video stream : primary channel", vch.toString());

    if (vch != null) {
    vch.startChannel(ssrc!!,channelCallback)
    } else {
    return
    }

    Log.i("Monsoon: RTMP Video stream : primary channel", vch.toString());
    Log.i("Monsoon: RTMP Video stream : primary channel", vch.streamSource.toString());

    we get:


    2024-04-07 18:50:23.516 16660-16660 Monsoon: R...ry channel org.opensky.monsoon.flightopsrdi     I  PRIMARY_STREAM_CHANNEL
    2024-04-07 18:50:23.519 16660-16660 Monsoon: R...ry channel org.opensky.monsoon.flightopsrdi     I  PRIMARY_STREAM_CHANNEL
    2024-04-07 18:50:23.519 16660-16660 Monsoon: R...ry channel org.opensky.monsoon.flightopsrdi     I  StreamSource{physicalDeviceCategory = CAMERA, physicalDeviceType = M30T, physicalDevicePosition = PORTSIDE, streamId = 3473408}

     

    This is just before the startstream call.

    Please keep in mind: I do not not need to see the video stream on my app. There is NO PROVISION for that. I want the stream to be fully transmitted to the RTMP Server without showing up on the app.

    0
    评论操作 固定链接
  • DJI Developer Support
    Could you please inform us of the Mobile SDK version you are using? Prior to version 5.8, the live streaming feature of the Mobile SDK required displaying the camera feed being pushed on the app. If you are not using version 5.8, I recommend updating to version 5.8 before attempting again. Are you referring to the format of the live video stream? The format of the live video stream cannot be adjusted to H265 and defaults to using H264.
    0
    评论操作 固定链接

请先登录再写评论。