perhaps using the WebKit? Is it possible? Thanks [import]uid: 11904 topic_id: 4527 reply_id: 304527[/import]
perhaps it is documented on our site how to do such
http://developer.anscamobile.com/reference/index/mediaplayvideo

c [import]uid: 24 topic_id: 4527 reply_id: 14257[/import]
Hi Carlos, thanks for your post.
I did see that API entry and also saw the sample on video playback. It is clear what to when we want to play back a single a/v file stored locally or hosted on a URL. I just wasn’t sure whether the same API call would work if I were to pass it a URL pointing to a YouTube video.
Hence my question. Guess only way to findout is to build for device and try. Let me do that then. [import]uid: 11904 topic_id: 4527 reply_id: 14323[/import]
Actually, for YouTube, you should read this thread:
http://developer.anscamobile.com/issues/1699
[import]uid: 7563 topic_id: 4527 reply_id: 14801[/import]
Please Help on Youtube Streaming in my Application I need Badly and cant able to Do it…
Please Post Some Information for non Subscribers also… 
I able to play Videos from other sites but how to play Youtube Videos???
Please Help or any sample app for this??
Thanx in advance [import]uid: 42171 topic_id: 4527 reply_id: 33562[/import]
personally i’m stucked just like kapilloves8 i’m trying to play youtube videos but i can’t and how am i supposed to convince my boss to subscribe if i can’t show him corona’s potential? CoronaUI seems to be another great tool to convince him, but i can’t access that either.
i think trial build should have everything, there’s nothing wrong with that since we still have to subscribe when we’re ready to publish. [import]uid: 53744 topic_id: 4527 reply_id: 33767[/import]
How about
system.GotURL(http://youtu.be/up5fdLARei4)
Like Eric said in his post, it is difficult to do using media.playVideo
Read this comment:
http://developer.anscamobile.com/issues/1699#comment-6030
c [import]uid: 24 topic_id: 4527 reply_id: 33783[/import]
its not done we haven’t done any information about system.GotURL on our CORONA site.
i am still unable to play Youtube Videos in CORONA…
Please Help for Non Subscribers We need to Check Feasibility and Capability of Corona…
Please Please Help…
You Find Something Related??? [import]uid: 42171 topic_id: 4527 reply_id: 33890[/import]
Here is a repost of what I had in the other link.
Unfortunately, YouTube is a real pain, particularly on iOS. The thing you must understand is that YouTube is not just a video storage site where you can link directly to the underlying movie files and play them through a normal video player. YouTube/Google has incentives to force you through channels they control so they have the flexibility to do things like show ads.
Anyway, the short answer is that because Google doesn’t provide straight forward access to the underlying video files, video playback through the standard Corona media player API is not currently possible. However, there are about 3 or 4 different techniques that can be used to force YouTube videos to be played on iOS and mobile devices, each with their own drawbacks and tradeoffs.
The first two methods probably require us to do some work behind the scenes. Google documents 2 ways to play YouTube videos on iOS using a hack Apple implemented on iOS. The third method is something you might be able to do. The 4th method still doesn’t work on mobile devices.
Method 1:
Method 1 involves relying on Apple to open their native YouTube app for you by launching the URL through Apple’s openURL: API, e.g.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“http://www.youtube.com/watch?v=vzP89ZcZBOc”]];
Since Apple knows YouTube won’t just work with their normal movie backend, they implemented a special YouTube backend and this launches the native YouTube player that comes on the device.
Major drawback of this is that it quits your app and doesn’t come back. It also won’t work in the Xcode simulator.
Method 2:
Method 2 is more involved and relies on hacks implemented in UIWebView by Apple to recognize YouTube videos and work around the Flash issues. They magically present a preview thumbnail and when the user touches the playbutton on the thumbnail, it launches the native Apple YouTube player engine.
Behind the scenes, the UIWebView must have a specially crafted HTML page to trigger the YouTube stuff:
// webView is a UIWebView, either initialized programmatically or loaded as part of a xib.
NSString \*htmlString = @"[html]
<meta name='\"viewport\"' content='\"initial-scale' user-scalable="no," width='212\"/'>
<object width='\"212\"' height='\"172\"'><br><param name='\"movie\"' value='\"http://www.youtube.com/v/vzP89ZcZBOc&f=gdata_videos&c=ytapi-my-clientID&d=nGF83uyVrg8eD4rfEkk22mDOl3qUImVMV6ramM\"'>
<br><param name='\"wmode\"' value='\"transparent\"'>
<br><embed src="%5C%22http://www.youtube.com/v/vzP89ZcZBOc&f=gdata_videos&c=ytapi-my-clientID&d=nGF83uyVrg8eD4rfEkk22mDOl3qUImVMV6ramM%5C%22<br">type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"212\" height=\"172\"></embed><br></object>
[/html]";
The one advantage of this is that when the user quits the movie, it will return to your app.
If we wanted to be slick, I imagine one thing we could try to do is parse the media.playMovie string for a YouTube URL. If it is, we switch the backend to load a webview and do all this tricky stuff instead of loading the normal movie player.
But there are drawbacks. First, the behavior isn’t identical to the movie view. Most noticeable is the fact that the user will have to touch the play button to start it. Also, there is no way to programmatically control the movie playback so you can’t call play/stop/seek through any API.
Third, there are serious bugs with running iPhone apps on iPad. You must build natively for iPad if you want this to work.
Forth, there seem to be evil issues if you try to do anything fancy with the UIWebView when loading YouTube. One example was that I had an invisible view as an overlay to detect touch events (by the way, you can’t know if the user actually played the movie). This got horribly broken in 3.2 and 4.0 due to evil UIWebView bugs.
Also, none of this works in the Xcode simulator.
So if we were to try to implement this and unify it with the media player API, users might still be upset with us that just about everything behaves differently.
Method 3:
Method 3 is something that appeared about a month or two ago. The new YouTube mobile site provides an alternative. YouTube adds even more twisted magic to the way they serve videos. The end result though is that the user can use the existing showWebPopup API to access the YouTube page to watch the video.
The downside is that you know you are looking at the YouTube mobile web site and may be able to start browsing the entire web from there. I always get the annoying Google/YouTube popup nag to add this Web link to my iPhone’s desktop too.
Also, when I tried it, the load time was really slow for me to just load the initial page. I’m not sure if it is just my connection.
But the good news is that it is easy to do in your Corona app. All you really need are these two lines:
local options = { hasBackground=true, baseUrl=nil, urlRequest=listener }
native.showWebPopup( "http://m.youtube.com/watch?gl=US&client=mv-google&hl=en&v=vzP89ZcZBOc", options )
Method 4:
Method 4 doesn’t actually work yet.
Google is promoting a brand new way of doing things (coming soon) doing more stuff related to HTML5 and suggests method 1 and 2 might become obsolete. But it doesn’t work on “mobile devices” yet. They don’t explain why. They don’t really answer questions either. Nor do they usually give progress reports or estimated completion dates. Since this is Google, I expect them to take a very long time on this before they get something that is usable.
Anyway, Method 3 is probably your best bet. If you are really crafty, and your needs are limited, you might be able to utilize method 2 by feeding Corona a web page with the correctly crafted HTML though if there are problems, we don’t necessarily support this path.
[import]uid: 7563 topic_id: 4527 reply_id: 34230[/import]
@ewing Thanx For Reply…
but can you post any sample example like other CORONA samples for Streaming You Tube videos of one of the convenient Method from Above.
Thanx in Advance for Help…
[import]uid: 42171 topic_id: 4527 reply_id: 35041[/import]
Is this still not possible by using media.playVideo? [import]uid: 24111 topic_id: 4527 reply_id: 103855[/import]