Closed sgallo0692 closed 3 years ago
@dji-dev do you have any engineers particularly skilled in this area? Thanks!
Agent comment from Luce Luo in Zendesk ticket #41888:
Dear Customer,
Thank you for contacting DJI. This is the DJI SDK support team. We are checking your issue on GitHub #403. https://github.com/dji-sdk/Mobile-SDK-iOS/issues/403
If the problem still, please contact us again.
Thanks,
Luce Luo DJI Developer Support
@dji-dev i still haven't figured this out and still need help
Hi,
I still need help on this github issue. I believe i’m following fpv examples correctly but is crashing still and the feed looks distorted as my screenshot shows
-Steve
On Dec 8, 2020, at 9:26 PM, DJI notifications@github.com wrote:
Agent comment from Luce Luo in Zendesk ticket #41888:
Dear Customer,
Thank you for contacting DJI. This is the DJI SDK support team. We are checking your issue on GitHub #403.
403
If the problem still, please contact us again.
Thanks,
Luce Luo DJI Developer Support
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
@sgallo0692 hey, I can live stream with my Matrice 300 RTK using DJIMuxer. You need to import VideoPreviewerAdapater & DecodeLogic in DJI Sample to your project.
@Matheus193dn really appreciate the reply with a code sample - any crashing or quality issues with the stream?
@sgallo0692 It works fine. I only have issue with delaying time(still better than Haishinkit & LFLiveKit)
awesome, I'll try that. I'm looking around for DecodeLogic and having trouble finding it - do you have a GitHub link to where that exists in the sample project? is it this: SwiftSampleCode/DJISDKSwiftDemo/Camera/DecodeImageCalibrateLogic.swift
@sgallo0692 exactly
confirming this resolved the issue and worked perfectly. thanks again
@Matheus193dn sorry to bother but not sure who else to ask at this point
Using your code above, do you have any stability issues? Any tips for retries/stabilizing the rtmp stream? Trying to make it robust and restart when the connection is spotty or stops working
@sgallo0692 Muxer does have delegate protocol, you can observe the livestream status if it has errors. You can call rtmpMuxer.start() again. Also, it does provide retryCount, pass the number of times you want to retry(my sample code is 3).
I'll start there, i think i was calling all of your code again instead of just rtmpmuxer.start()
Appreciate the suggestions
@sgallo0692 you can take a look at DJI sample here. They used DJIRtmpMuxerStateUpdateDelegate to observe rmtpMuxerstate.
Tried implementing this with no luck printing the status changes yet, i may have messed up translating to swift but going to keep working on getting this too.
Seems critical to relaunching the stream if it's broken
After reading many issues/stackoverflow articles/DJI forums, I've finally got streaming working somewhat reliably. However, actually getting the video feed to stabilize is becoming challenging. I'm facing two major issues testing with a DJI Spark:
The
DJIVideoPreviewer
seems to crash often. Specifically when I begin streaming. It seems when I have streaming running, when the video feed gets intensive (i.e. not inside, staring at a wall) it crashes after a few seconds. Is there a way to be throttling or managing memory to prevent this? Something is getting overloaded and I'm not sure if it's CPU or memory or what but it seems I need to be doing something more efficient here.The video feed often appears heavily distorted which seems linked to the videoFeed function but I'm not entirely sure what the cause is. This occasionally just doesn't happen, but most often when I open the app my feed looks like this:
This is most of my code wrapped in a UIViewController class that I call to setup the fpv view
Video processing:
Video previewer + stream setup