I want to display youtube video in my iOS application.I m using YTPlayer to display video but when user click the full screen button view should be move to landscape.How to do it.
Asked
Active
Viewed 1,037 times
2
-
how does it behave right now ? – Shubhank Sep 03 '16 at 07:46
-
now its playing in portrait at full screen – Kavitha gunasekaran Sep 03 '16 at 07:48
-
can you link to the library so that we can check out ? – Shubhank Sep 03 '16 at 07:51
-
`https://github.com/sahuamit13/YouTubePlayer` this example only i m trying . – Kavitha gunasekaran Sep 03 '16 at 07:55
-
Play in landscape is default.. just make sure your device orientation is not locked. – rptwsthi Sep 03 '16 at 07:59
-
use this to change orientation http://stackoverflow.com/a/26358192 – Shubhank Sep 03 '16 at 08:12
-
my requirement is play video default by portrait and full screen on landscape.how to bring this functionality in YTPlayer... – Kavitha gunasekaran Sep 03 '16 at 08:26
-
already given you the code to do this part ? what is the specific problem ? – Shubhank Sep 03 '16 at 08:38
-
I have tried that code ..but nothing suits my requirement..initially my video has to play in portrait.when click full screen button it has to go for landscape.it has to work like youtube player. – Kavitha gunasekaran Sep 05 '16 at 05:12
-
@Kavithagunasekaran Did u find a solution for this ? if so can u share that, it might help others – GuruCharan Jul 08 '19 at 06:42