youtube / youtube-ios-player-helper

Lightweight helper library that allows iOS developers to add inline playback of YouTube videos through a WebView
Other
1.64k stars 680 forks source link

native video control bar not available in iOS 14.5 #431

Closed jeongrok-kim closed 2 years ago

jeongrok-kim commented 3 years ago

This problem only occurs in iOS 14.5 using native control bar (seek bar).

When tap the video player area, the video control bar appears for a moment and then disappears immediately. This can be reproduced by modifying the playerVar of youtube-player-ios-example as follows:

in https://github.com/youtube/youtube-ios-player-helper/blob/master/Project/youtube-player-ios-example/youtube-player-ios-example/SingleVideoViewController.m#L26

   // For a full list of player parameters, see the documentation for the HTML5 player
   // at: https://developers.google.com/youtube/player_parameters?playerVersion=HTML5
   NSDictionary *playerVars = @{
-      @"controls" : @0,
+      @"controls" : @1,
       @"playsinline" : @1,
       @"autohide" : @1,
       @"showinfo" : @0,

Environment

It may be an issue on the iFrame api side, but can anyone check it out?

https://user-images.githubusercontent.com/7258627/116855662-b6cb8480-ac34-11eb-9bc8-95de1042b0cc.mov

Thanks in advance.

farismhmd1 commented 3 years ago

I am also experiencing a similar issue.

Heligo-R commented 3 years ago

I have the same issue on iPhone 12 iOS 14.6. Also: if you hold tap on the video space for some time controls will appear normally.

nassifbasheer commented 3 years ago

hi,

I am experiencing a similar issue, controls are working fine in emulators but when running on actual device. it is not showing the controls. Has anyone found a fix for this

harri35 commented 3 years ago

I have the same issue in out app.

nassifbasheer commented 3 years ago

has anyone able to fix this issue

pedronveloso commented 3 years ago

Same issue here.

takuoka commented 3 years ago

+1

famio commented 3 years ago

+1

Tibimac commented 2 years ago

+1 This issue duplicates this one : https://github.com/youtube/youtube-ios-player-helper/issues/391

ykws commented 2 years ago

@jeongrok-kim Hi, have you resolved this issue yet? Now I worked it on Xcode13(not 12), please check it again.

https://user-images.githubusercontent.com/5770480/135305530-12f5fbb3-7552-4753-b0b4-0b5165c9888e.mp4

jeongrok-kim commented 2 years ago

@ykws Thank you. I also checked. It appears that the YouTube iFrame Player has been updated to use its own control UI instead of the iOS Native Control. So somehow the problem was solved. 😅