dailymotion / dailymotion-swift-player-sdk-ios

Dailymotion Player SDK for iOS in Swift
MIT License
34 stars 15 forks source link

Allow iOS to set full screen icon manually #50

Open zhiyao92 opened 4 years ago

zhiyao92 commented 4 years ago

Looking at the documentation for both iOS and Android, there is some inconsistency. On Android, they are allowed to set the full screen either true or false with

setFullScreenButton(Boolean)

But not on iOS. On iOS, it's only toggleFullscreen() which doesn't let you play with the boolean value at all.

Wondering if there is any work around?

RemiGuyon commented 4 years ago

Hi @zhiyao92 , Currently no this is the only way to handle fullscreen with the iOS SDK. However you can handle this logic inside your app by keeping a boolean value for the fullscreen state and only call the SDK when it really changes. But we will think about adding this behaviour in the SDK.