dailymotion / dailymotion-swift-player-sdk-ios

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

How to Hide Playback Controls for a Shorts/Reels-like Experience in Dailymotion SDK #84

Open oguzzyildirim opened 2 months ago

oguzzyildirim commented 2 months ago

Hello,

I am developing a feature in my project similar to YouTube Shorts and Instagram Reels using the Dailymotion Player SDK for iOS. I aim to enhance the user experience by providing a cleaner, more immersive view during video playback. To achieve this, I need to hide the playback controls that appear over the videos.

let parameters: [String: String] = [
            "fullscreen-action": "trigger_event",
            "sharing-action": "trigger_event",
            "autoplay": "false",
            "mute": "true",
            "show-controls": "false",
            "enablePlaybackControls": "false",
            "allowFullScreen": "true",
 ]

 dmPlayerParameters.customConfig = parameters

I have attempted to use the above customConfig parameters to achieve my desired effect, but I have not been successful in fully hiding the playback controls as I intended.

Could you provide guidance on how to do this programmatically? Are there specific properties or methods within the SDK that allow for the customization or complete hiding of these controls during playback? Additionally, any tips on creating a seamless short video experience, similar to that of Shorts or Reels, would be greatly appreciated.

I am aware that there is no issue section available in the SDK's GitHub repository, hence I am reaching out here for support.

I have attached an image to the issue to show the playback-visual controls sections that I am trying to remove.

Screenshot 2024-09-20 at 13 19 07

Thank you for your assistance.