You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I been working in a project where we have to use Daily Motion player in a iOS and Android app. I'll focus only in iOS here.
The app is targeted to iOS 14.5 and it use SwiftUI to compose user interface.
I'm getting several problems to handle Daily Motion player using SwiftUI, specially to manage when and how to stop or continue playing a video.
I did a sample project here. That project can be used to explore some of these issues.
First one is related to initializer.
There are some params like autoplay that never work. The video always start playing, even if I try to force it to stop after load callback.
Second is related to lifecycle.
There's no way to stop playing after a view disappear or another view been presented over another. Even using dismantleUIViewController from UIViewControllerRepresentable, the player doesn't respond to playback commands and sometimes, its reference is lost.
I kept this sample simple as possible to ask you help to figure out what I have to do to make it more functional for SwiftUI apps.
Thanks
The text was updated successfully, but these errors were encountered:
Hi all,
I been working in a project where we have to use Daily Motion player in a iOS and Android app. I'll focus only in iOS here.
The app is targeted to iOS 14.5 and it use SwiftUI to compose user interface.
I'm getting several problems to handle Daily Motion player using SwiftUI, specially to manage when and how to stop or continue playing a video.
I did a sample project here. That project can be used to explore some of these issues.
First one is related to initializer.
There are some params like
autoplay
that never work. The video always start playing, even if I try to force it to stop afterload
callback.Second is related to lifecycle.
There's no way to stop playing after a view disappear or another view been presented over another. Even using
dismantleUIViewController
fromUIViewControllerRepresentable
, the player doesn't respond to playback commands and sometimes, its reference is lost.I kept this sample simple as possible to ask you help to figure out what I have to do to make it more functional for SwiftUI apps.
Thanks
The text was updated successfully, but these errors were encountered: