360 video embed Youtube player in iOS app - ios

I am very new to xcode but would like to have some guidance on embedding 360 videos into an iOS app.
Bascially, I want to play a 360 degree video in my mobile app. I do not want the video to be opened in Youtube app. I simply want the video to be played on the top half of a page in my own app with a Youtube plugin.
I found this on the Internet: https://developers.google.com/youtube/v3/guides/ios_youtube_helper but I am not sure if the embedded 360 video would work in my app.
Any help would be appreciated.

I think the iOS Youtube Helper that you linked will not help you with your problem. Also it is not stated there that it can support a 360 degree videos.
YouTube 360 embedded video functionality is still not fully there yet. It is assumed by many that this must have been rolled out along with the YouTube user interface update that hit recently.
It is stated in this documentation that as the gyro functionality still isn’t implemented, the YouTube app must still be opened to properly view these 360° videos on a VR headset. Hopefully this will be added soon to YouTube 360 embedded videos. Until then, viewers of 360 Video Directory or Daily Dose 360 column will be able to get an easy quick look at the YouTube 360° videos before deciding whether or not to pull out their VR headset.
I also found out that as of now, 360 videos do not work in a web browser on iOS due to an issue with iOS forcing full screen playback of videos in the browser using Google VR. So maybe they still working on this to work the 360 videos without using the YouTube apps itself.
You can also check the known defects and enhancements to 360 degree video playback on mobile, and full functionality and support for these types of videos on mobile.

Related

Embed youtube videos with all the data like youtube website

I'm trying to build website (for my own, and for practice) that coantian youtube videos, I know there is a possibility to embed YouTube videos, but I want to know if there is another way to embed the videos, I want all the information of the video to appear, just like on the YouTube site itself.
I want sonthing like this
Example of a video embedded in a normal way
And that includes the title of the video, its length, upload date (or how long ago), preview of the video (when hovering with the cursor over the video), and I also do not want the YouTube icon to appear in the middle of the video image in any embedded video (before playing it).
I know some things can be done using the YouTube API (like video title / video length information), or using functions (e.g. preview gif) but it's a bit cumbersome, and in any case it does not solve the problem of having the YouTube icon In the center of the image of the video.
So I want to know if there option to enbed youtube video with all the details, or at least if there option the get of the sign of youtube that show in the center of the video.
Sorry for my English if there are any mistakes. Thanks in advance from everyone.

Unable to play youtube video on iOS

I am using YTPlayerView to play a YouTube video on iOS.
However, I get the error message seen below for some videos and am unable to play them on an iPhone.
This video contains content from Panorama. It is restricted from playback on certain sites
What can be the possible issue ?
I got the answer. All i had to do is to enable Allow embedding in Distribution Option in Advance settings of video.

autoplay html5 video with external link on mobiles

I have created a web page that auto plays a full screen background video.
On top of the video is a div that contains text & a link to an external site - this works fine in all desktop browsers.
How do i recreate the same setup to play on mobile devices - would I need to use javascript in order to achieve this?
I have spent many hours trawling google for a definitive answer and am now very confused.
Thanks in advance.
Autoplay for HTML5 video is not allowed on mobile devices such as iOS or Android. You can read this for the whys and hows on iOS.
On iPhone the video plays in the default (fullscreen) Quicktime player. So there is no real background notion (this could be accomplished in a native app where inline playback of video is allowed but not in the Safari/web browser). You would need to stick to an image I guess.
On the iPad or on Android in order to accomplish what you want you will need to bind your video tag to a touch event/button (like when a user 'touch' to enter your site), and on this event initiate the play sequence for the video (in your case the video being set to occupy the full width and height of the viewport).
Thanks

How to play YouTube video without leaving app on iOS 7

Is it possible to play YouTube video without leaving app on iOS 7?
I tried LBYouTubeView but it does not work on iOS 7.
To play YouTube video you have to extract the youtube URL from the youtube videoID. there are lots of API available that extract this
XCDYouTubeKit
HCYoutubeParser
Another way to play youtube videos is WebView.
But you should not go for this because using this your application will be rejected.
The best way to play youtube videos is the Webview

How to play youtube video without UIWebView or detect video player when youtube video start playing using webview?

I need to play youtube video in my iOS application and while video is playing I need to add an overlay on video.
1.Now how can i run youtube video in native player?
2.if I play video in UIWebview then how can i detect that video is
playing and how to add overlay on the video?
MPMoviePlayerViewController cannot directly play youtube video urls.You need to extract the url before loading MPMoviePlayerViewController with the url.
you can see a working demo in my github repo:
Try this::
https://github.com/DpzAtMicRO/IOSYoutubePlayer
LBYoutubeExtractor extracts the youtube Url with JSON.
Please do read the README.md before you use this in your application.
Regards
MPMoviePlayerViewController is a good one but last commit is years ago. I found another solution called 'XCDYouTubeKit' which supports iPhone/iPad and iOS7 onwards with full screen YouTube video.
You can access github page at here and fully documented tutorial at here
This is what official developer says in his page:
The only official way of playing a YouTube video inside an app is with a web view and the iframe player API. Unfortunately, this is very slow and quite ugly, so I wrote this player to give users a better viewing experience.

Resources