dji-sdk / Mobile-SDK-Android

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

LiveStreamView里开始直播一直返回-3的原因有哪些 #409

Open JDLLXY opened 5 years ago

JDLLXY commented 5 years ago

Is this issue about bugs or crash issues of DJI Android SDK and Sample Code?

Yep, then please delete this template and provide the following infos for us to help investigate the issue:

Is this issue about DJI iOS SDK and Sample Code?

Then this is the wrong place, please refer to the Mobile-SDK-iOS Github: https://github.com/dji-sdk/Mobile-SDK-iOS/issues

dji-sdk[bot] commented 5 years ago

Hi, there are two options for you to ask for help:

  1. Post your issues on StackOverflow: https://stackoverflow.com/questions/tagged/dji-sdk, the community can help you.

  2. Report your issues to dev@dji.com, as it's our official channel for developers to request DJI Developer Support now.

For DJI Developer Support, we have the following three tiers:

Michael-DJI commented 5 years ago

@cabbageJDL pls provide more details:

DJI Android SDK version you are using (Like Android SDK 3.4, etc) DJI Product you are using (Like Phantom 4, Mavic Pro, etc) Android system version you are using (Like Android 6.0.1, Android 5.1.1, etc) Android device you are using (Like Samsung Galaxy Note 5, Nexus 5, etc)

JDLLXY commented 5 years ago

我用的sdk是4.9,A3飞控,我是用VideoFeeder.getInstance().getSecondaryVideoFeed(),获取的视频源,想使用DJISDKManager.getInstance().getLiveStreamManager().startStream()这个方法进行直播,但是一直返回-3,请问我需要怎么设置可以对辅助视频源进行直播

JDLLXY commented 5 years ago

如果是VideoFeeder.getInstance().getPrimaryVideoFeed()获取的视频源数据则可以直播成功,Fpv camera source直播则返回-3

Michael-DJI commented 5 years ago

@cabbageJDL check this out: https://github.com/dji-sdk/Mobile-SDK-Android/blob/master/Sample%20Code/app/src/main/java/com/dji/sdk/sample/demo/camera/LiveStreamView.java the sample could change video source

JDLLXY commented 5 years ago

我下载使用了DJI SDK Sample的代码并运行,进入Live Stream选项里,start live show返回了-3,当我点击Change Video Source之后视频物理源改成了Secondary,然后我又重新start,还是返回-3

Hoker- commented 5 years ago

@cabbageJDL sample里的LiveStreamView能看到图传不?

JDLLXY commented 5 years ago

可以看到图传,图传是来自Secondary物理源,同一个飞机,我下载试用了DJI GO可以直播成功

oscarmore2 commented 5 years ago

Hello, May I know how can I cache the video data from videofeeder? Our product has the requirements for both rtmp streaming and caching mp4 video data simultaneously. I read the documentation there are some interface like provideTranscodedVideoFeed is available for receiving video data, but I not sure if it could run simultaneously with LiveStreamManager.