dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
576 stars 254 forks source link

MediaManager and playVideo function #543

Closed lbujnak closed 1 year ago

lbujnak commented 1 year ago

Hi !

I'm working on a video preview but I'm stuck with one problem. When I play video and after completion I pause it, cause it would play for its own, I won't get update of view... I have same view just like in sample, but I would like to add like, some preview of video before the play starts.

Another problem is, that after switching between videos, the video feed on new video is for first time I press play button same, as on previous one. Anyone has some solution please?

DJI-William commented 1 year ago

First of all, iOS MSDK will not update anymore unless there is a serious bugs there. So I strongly suggest you switch to Android MSDK. There is a preview proerty in the mediaFile. You have to make sure you are playing the correct mediaFile.

lbujnak commented 1 year ago

And how can I use android sdk in Xcode ?

DJI-William commented 1 year ago

Xcode is an IDE for iOS, you need to use Android Studio.

lbujnak commented 1 year ago

Yea I understand, but how can I make iOS app through android studio ? If I would like to build an android app, I would already use android studio.

DJI-William commented 1 year ago

The Android SDK will make an Android app. We will only update Android SDK in the future. iOS SDK will not be updated. So even you find some bugs, maybe we won't fix it. That is why I suggest you switch SDK/app.

lbujnak commented 1 year ago

But I need to build an iOS app .. :/

DJI-William commented 1 year ago

It is just a suggestion, you can ignore it if you just want to use an iOS app. But will face with this issue.

lbujnak commented 1 year ago

So i figured out how to use Android sdk for iOS. Use cross platform dev - CodenameOne