Displaying flash-based youtube videos on ios devices - ios

Is it possible to display flashed-based youtube videos on ios devices?
What solution do you use when you decide to embed youtube videos on your app?
Or do I have to give up on all flash-based contents?

In short: It is not possible. There is no way to run Flash on iOS yet, and as of last week, Adobe announced it will terminate further development for Flash on mobile devives, so there will never be. And yes, therefore you have to give up Flash-based video on iOS.
YouTube provides HTML5 versions of all videos, so you have an alternative. There a number of posts here on SO that will help you to get started, like this one.

Related

Showing advertisements in the middle of playing video ios swift

I want to show advertisement while playing video in app like youtube. My app contains videos, while seeing video, in the middle of the video i need to show the advertisement like youtube. I checked with Admob, but i didn't get solution. Anyone having idea of how to do this?
Interactive Media Ads SDKs allows iOS native application developers to request and track VAST ads (ProRol,MidRol,PostRol,Skipable etc) in the iOS (9.0+) environment.
It supports AVPlayer as well.
Here is is complete documentation of IMA SDK

Xamarin.forms youtube video

I know this question has been asked before but I can't seem to find a satisfactory answer. First off I'm very new to Xamarin.forms and mobile app development in general. I'm working on a small time sensitive project. One of the requirements is to have a youtube video play from within the app in both iOS and Android (the link to the youtube video comes from a DB). I used a WebView but it doesn't seem to work well in Android. I also came across the following in another thread:
"When it comes to streaming video on iOS and Android playing that content in a Webview control with or without Xamarin.Forms would be the incorrect choice. Webviews vary on each device and their codec support for HTML5 and H264 video also vary. Both iOS and Android have their own native video players that can play and stream video.
For iOS you have a few options such as AVPlayer or MPMoviePlayerController: http://developer.xamarin.com/recipes/ios/media/video_and_photos/
For Android you could simply use the default VideoView http://developer.xamarin.com/recipes/android/media/video/play_video/ or you could use the binding around the new ExoPlayer: https://github.com/martijn00/ExoPlayerXamarin
You would simply need a custom renderer to bring these into Xamarin.Forms, which would be very simple to do"
I've never done Xamarin.iOS nor Xamarin.Android development before. If someone can provide a simple prototype then that would be great.
Take a look at "Delivering Rich Media Experiences with the Xamarin.Forms Video Player" (https://blog.xamarin.com/delivering-rich-media-experiences-xamarin-forms-video-player/). Github: https://github.com/adamfisher/Xamarin.Forms.VideoPlayer

What is Apple's policy for iOS regarding inline video players?

There's a confusing situation in which all browsers for iPhone (but not all iOS, such as iPad) feature forced video playback which deviates from W3C standards, severely inhibiting the developer's ability to create any web apps which combine video with interface to support iPhone devices. All browsers on all iPhones force this same full-screen video player.
Since I'm sure Google would not choose to deviate from W3C standards (along with every other browser developer), forcing videos to be played in full screen if it wasnt being forced to do so by Apple, I'm curious to know: What is Apple's policy exactly which causes all iPhone browsers to use its native full-screen-only video player, when inline video is clearly possible on the iPhone as seen in the YouTube app?
What's stopping Google from introducing it's own W3C compliant HTML5 video player in the iPhone Chrome browser rather than Apple's native non W3C compliant video player?
I want to support mobile (obviously including iPhone) with my web app, but it requires inline video (where an interface overlays the video for the user to interact with while the video plays). Does Apple tell developers "any web browser must use our native fullscreen video player" but any app can use whatever video playing format they want, such as YouTube? What if I put my web app in a wrapper to supply it as a native app? Would the wrapper for the HTML5 app be considered a web browser by Apple and be forced to use their native player? What exactly is the policy on this?
Additional info: Apple has even made it impossible to use a video player as the source for HTML5 canvas rendering, so no workarounds are possible that wouldnt require performing complex matrix operations without the help of graphic processing hardware, effectively frying the iPhone for a workaround to play videos inline on a web browser. So don't bother with this suggestion.
What's stopping Google from introducing it's own W3C compliant HTML5 video player in the iPhone Chrome browser rather than Apple's native non W3C compliant video player?
Apple does not allow any iOS browsers to use their own rendering engines. They must use the Apple supplied WebKit frameworks, or their app will not be approved for the iOS store.
From App Store Review Guidelines:
Apps that browse the web must use the iOS WebKit framework and WebKit Javascript
Presumably if you were to try to ignore that rule, your app will be denied.
First, any answer about policy that doesn't come from Apple is speculation. That said, I can imagine a few possible reasons:
User eXperience. It prevents obnoxious advertisements in web pages from auto-playing.
Money. Apple takes, what, a 30% cut of app sale revenue? Allowing inline video would obviate some number of native iOS apps that could otherwise be 100% HTML5 web apps. Imagine that Apple ran a spreadsheet, factoring in developer frustration, potential revenue loss, and other things, but ultimately decided "we'll make more money if we don't allow inline video players".
Again, these ideas are pure speculation. If it weren't 2am EST, this question would probably already be flagged as "opinion based". I personally don't like that aspect of Stack Overflow, but that's how it has evolved.

Embedding Youtube Videos in iPad app that play in app (not launching youtube app)

I am trying to understand if this is absolutely not possible and do not feel that I have found a definitive answer.
I need the video content to play in app and not transfer my users over to the youtube app automatically to watch.
Any help will be very much appreciated :)

Does Windows Phone 7 have a YouTube player similar to iPhone?

I want to allow my phone app users to be able to click a YouTube video and be sent to the phone's YouTube player. Does Windows Phone 7 have that option?
Nothing has yet been announced but I know someone at Google who was talking with Microsoft about developing a YouTube app for Windows Phone 7.
Even if such an app did exist, based on the sandboxed nature of apps and their inability to launch other apps, your only options is likely to be to open the video in the browser.
First of all, I'm quite sure that there will be a Youtube App for Windows Phone. Beside that, since Youtube is going HTML5 anyway, I think it is trivial to include a playback of a Youtube video directly in your app:
http://msdn.microsoft.com/en-us/library/ff769551%28v=VS.92%29.aspx
The current version of IE mobile that runs on the Windows Phone 7 device emulator CANNOT play YouTube videos. So far from all the evidence that I've seen, you cannot use the Silverlight "MediaElement" control to play YouTube videos, nor can you use the iPhone "trick" of embedding a YouTube video in a bunch of HTML and have Safari handle it for you because IE mobile won't play YouTube videos.
This isn't to say that they won't be adding this feature in the future, but I'm pretty disappointed that as of Beta 1, it doesn't appear that WP7 has any YouTube support.

Resources