Can I play a vimeo video in a UIWebView inline (not fullscreen)? - iphone

I have looked many more forums and blogs to do this but still now not found any answer to do this.Is it possible to play a Vimeo video in a UIWebView on an iPhone inline.In their forum they mention it is not possible , but in the official Vimeo iOS app they allowed to play the video inline in iPhone
I have set allowsInlineMediaPlayback to YES, but still it plays fullscreen.It works fine for youtube and mp4 video but not for Vimeo videos

This link might help you.
your video needs to have a webkit-playsinline attribute. Below text is from Apple docs: "In order for video to play inline, not only does this property need to be set on the view, but the video element in the HTML document must also include the webkit-playsinline attribute."

Related

How to play vimeo videos inline in moblie application and grab seek, play events

We are developing a mobile application (using ionic framework, jquery) and thinking to let our users to share videos from vimeo, youtube etc. in this case we are integrating vimeo video link in iframe. Below are challenges:
Not able to play vimeo videos inline in our application:
on iPhone device when we play vimeo video from our ionic application it opens in a native video player, on the contrary we want to play it inline in our application itself
in case of Youtube video its supported and works well. They have provide Playsinline property to support it.
As per vimeo developers documentation, we have not found any similar video player property to allow inline video rendering
Is there any workaround that you suggest to play vimeo video inline inside application?
Play, seek & load progress events are not supported in mobile application
As per your developers page, play, seek, load progress etc events are not supported in mobile application
Is there any workaround to enable these events on our mobile application
Yes, I know there are limitations that vimeo has declared but can someone provide me if there are any workarounds? Your response to our queries is very much important for us.
Reference:
https://developers.google.com/youtube/player_parameters
https://developer.vimeo.com/player/js-api#event-compatibility
try adding background=1 to your embed code
<iframe id="player1" src="https://player.vimeo.com/video/[video id]?api=1&player_id=player1&background=1" width="630" height="354" frameborder="0"></iframe>
This wil not work in browsers which revert to the flashplayer.
I don't know if you'll have javascript API functionallity.
This will remove all controls aswell. What I've read, it's still in an experimental fase, but hope it works for you.

Playing video from youtube link without UIWebView

I want to play a video in my app from youtube link e.g: http://www.youtube.com/watch?v=Uner-3tTY1I.
But i don't want to redirect the user to any web view in the app. Just want to play that video in the video player in the current view of my application.
Is it possible to play the video without redirecting to UIWebView? If possible, how can i do this? Thanks for the help in advance.
The only allowed way seems to be using UIWebview. Doing it other way will violate youtube copyrights.
However there are few open source libraries out there. You can use it at your own risk.
Just use XCDYouTubeVideoPlayerViewController. It uses progressive download + MoviePlayer and AVFoundation frameworks.
To play this video you need to have the link to the video stream that is associated with video you want to play. Unfortunately this isn't so simple to get this link for some movies on YouTube since this link can be encoded for some movies (channel VEVO for example). Read this for more information about encoded links http://www.jwz.org/blog/2013/06/youtube-download-counter-countermeasures-applied/.
Unfortunattely as for now there is no simple way to decode these links. Despite this, you can get the source link for the not encoded films without bigger problems using some calls to the YouTube Api.

How can I embed a video on my website in order to work on an iPhone and what video format is required?

I have seen several sites where they are able to create links to videos and they actually open on the video player of the iPhone, iPad or iPod.
This is obviously not a flash player video, and they don't seem to be embedded from youtube.
So I was wondering how can I add a video on my site that can be opened on an iPhone, and also what type of format is required for this?
Thanks
HTML5 Video works on iOS devices, see http://html5video.org
and here is a decent player plugin
http://videojs.org

How to embed a Youtube video and Podcasts into an iphone app

I have an app which requires the Youtube videos and Audio Podcasts to be played inside my app and not giving out control to youtube player or safari.
What is the method that can be used to embed Youtube videos and Audio Podcasts into my iphone app?
Any tutorials about the above issue are most desirable as I am new into this.
Please give ur suggestions.
Your suggestions are welcome.
Thanks in Advance!!
If you want to embed and play videos inside your app then copy videos to your app's resource folder(.mp4 or .m4v format is desired) and use MPMoviePlayerViewController class instance to play the video. :)

How does the youtube iphone app work

I want to make a youtube app like application for the iphone, where some videos are streamed/downloaded from a video site. But just by looking at the youtube app, I have a doubt.
I searched around on google, and it seems iphone does not have builtin support to play flv files. So how is the youtube app able to play the videos? Where does the encoding etc happen?
From Wikipedia: "Since June 2007, YouTube's videos have been available for viewing on a range of Apple products. This required YouTube's content to be transcoded into Apple's preferred video standard, H.264, a process that took several months"
The iPhone YouTube app doesn't play FLV, it plays H.264 versions of YouTube's videos. Apple arranged this with YouTube privately. You will need to convert your videos to a format that the iPhone can play.