Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile SDK LiveStream Sample Code - Only audio is streamed #1330

Open
George2397 opened this issue Nov 4, 2024 · 1 comment
Open

Mobile SDK LiveStream Sample Code - Only audio is streamed #1330

George2397 opened this issue Nov 4, 2024 · 1 comment

Comments

@George2397
Copy link

George2397 commented Nov 4, 2024

I'm having a hard time streaming the live drone camera feed into the RTMP server.
I am using the sample code from DJI. Here is the Live Stream View class that I use: 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 code in my project is exactly the same (I cloned the sample code), except that I changed the switch statement into an if-else.

The problem I'm facing is that I can successfully send audio from the mobile app to my RTMP server, but the frames are not streamed. The root cause of this is because the video feed itself only shows the first frame of the drone's camera video feed and then it becomes stuck. If I move the drone, nothing is shown on the video feed in the android app, other than the initial frame

Is there something I'm missing on the sample code?

Information:
Drone Model: DJI Mini 2
Device: Samsung Galaxy S24 Plus
Android Version: 14
DJI SDK Version: 4.18
Gradle Configuration:
implementation 'com.dji:dji-sdk:4.18'
compileOnly 'com.dji:dji-sdk-provided:4.18'
Kotlin Version: 1.6.20
Gradle Version: 8.4.0
Min SDK Version: 23
Target SDK Version: 34
Compile SDK Version: 33

Update: Seems like the code works as expected with my Xioami device. Therefore the issue has to do with Samsung Galaxy S24+.

@George2397 George2397 changed the title DJI SDK LiveStream Sample Code - Only audio is streamed Mobile SDK LiveStream Sample Code - Only audio is streamed Nov 4, 2024
@dji-dev
Copy link
Contributor

dji-dev commented Nov 5, 2024

Agent comment from yating.liao in Zendesk ticket #121027:

Have you attempted to use the sample code without any modifications to achieve streaming? Can the mainstream live streaming platforms receive the video feed?

°°°

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants