YTPlayer View not working properly in iPhone - ios

I am using YTPlayerView in the application to play YouTube videos. It is working proper in iPad but not in iPhone. In iPhone the player directly plays in full screen due to which any gesture on the player is not working. Have to exit full screen using the full screen button on the controls for any gesture to be recognised.
Can the controls of the player be hidden. Tried using #"controls" : #"0" works fine in iPad but not in iPhone.

Did you try https://github.com/0xced/XCDYouTubeKit. Hope this will solve your problem.

Related

AVPlayer iOS swiftui

I am facing a problem with my App I have a video inside a NavigationView (3rd level view) when user put the video in full screen and drag up the video the screen becomes black and the video continues playing on background.
SwiftUI and Swift 5
Also i am looking for any method with SwiftUI to get into full screen video once the user Tap the button instead loading inside a new view.
Edit
I figured out the drag up problem, if some one is facing the same issue check if you disabled any orientations mode in your app in my case it fixed the issue app must be enabled in all orientations mode.

Cordova - wrong document size on orientation change during video

I have some videoplayer plugin thats play video on iOS IPhone.
I am in portrait mode and I run video
video goes into landscape mode
I rotate into landscape to watch the video
I press exit video - plugin is closed
Screen is in landscape but I get wrong document size and wrong window.innerHeight. Html tag has these wrong dimensions, so I am not able to do it in javascript/dom
Please can I solve this somehow? Am I able to refresh display? Because when I switch into portrait mode and back, then everything is ok.
window.screen.orientation is correct and window.screen.width/height are correct too.
edit:
I have tried to use this plugin https://github.com/apache/cordova-plugin-screen-orientation and when I lock portrait it is cropped also. There is some problem with viewport, width=device-width, but I do not know how to solve it

Webview Landscape

I'm trying to figure out a way to make it so that my ios webview is in landscape mode while the rest of my app is in portrait. Does anyone know if this is possible?
I have a video section that I link out to vimeo. The vimeo video player is brought up in webview which is the portion I would like in landscape.
you must do it programatically in the shouldAutorotateToInterfaceOrientation
webview.transform=CGAffineTransformMakeRotation(M_PI/2);

HTML5 video tag unreliable on iOS

I'm using PhoneGap to make an iPhone app that contains video. Usually, it works great: the video sits in an HTML5 video tag and it shows the iOS play button and then plays full screen.
But, sometimes the play button has a line through it and the user can't play the video.
I can't seen to figure out exactly what causes this, as it is sporadic and doesn't seem to be connected to any other issues.
Any help on making this more reliable would be appreciated. The code is a very simple video tag with src, poster, width and height attributes.
Thanks in advance.
I was able to fix this by exporting video from Quicktime as "iPod touch & iPhone 3GS" instead of "iPad, iPhone 4 & Apple TV." Looks like the HTML5 video tag on iPhone's require a lower resolution to play.

play video landscape Iphone sdk 3.2 4.0 with standard api

how to play video landscape with standard api?
video play only portrait !!!
change the app orientation landscape is not useful, because video start portrait forever.
i have a portrait app with a button, when pressed video must play landscape.
yourmoviecontrollername setOrientation:UIDeviceOrientationPortrait animated:NO];
is not allowed by Apple
Maybe the regular videoplayercontroller doesnt do landscape by itself...i would suggest using MPMoviePlayerViewController available in 3.2, you set it up and use view controllers presentMoviePlayerController method in order to display, should work fine for you. here is a ref MPViewcontroller

Resources