dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
992 stars 580 forks source link

Starting Livestream failed. Check and try again. #1120

Open jtosar opened 2 years ago

jtosar commented 2 years ago

Hi, we have tried with different IOS and Android devices and the DJI Fly app. And also custom SDK apps to livestream and it’s always a a failure.

DJI Fly says Starting Livestream failed. And custom apps get a -254 (failed) error code.

is this feature suppose to be working? We have a standard setup right out the box and cannot get this to work. Thanks.

Mavic air 2 DJI FLY APP IOS and Android devices. Latest firmware and app versions. We verify internet access working. we have verified the RTMP ingestion url is working.

dji-dev commented 2 years ago

Agent comment from DJI SDK in Zendesk ticket #61406:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

dji-dev commented 2 years ago

Agent comment from William Wong in Zendesk ticket #61406:

You cannot even run on DJI Fly app, please check your network conditions and the RTMP server, maybe change to Youtube and try again.

°°°

asegs commented 2 years ago

This might be a server issue, trying streaming to the RTMP server with OBS and viewing the stream URL in VLC. If that works, then it is a DJI issue. I personally have just got an Android 12 device streaming. And MAKE SURE that the server is accepting publishes from the phones IP, for example in NGINX:

rtmp {
        server {
                listen 1935;
                chunk_size 4096;
                allow publish all;

                application live {
                        live on;
                        record off;
                }
        }
}

254 supposedly means initialization error, I don't know what that means but even when my RTMP server wasn't working, I didn't get that, so it might be a code issue.

-3 means you failed to register video as per: primaryVideoFeedView.registerLiveVideo(VideoFeeder.getInstance().getPrimaryVideoFeed(), true); -1 means the server name is invalid, and 0 means you're good. Never was able to get a 254. I think I have seen mentions of it from Googling, don't see it now. Good luck