I wonder why the following HTML 5 does not allow the video from YouTube to play. I copied and pasted the URL into the browser and it plays. How do videos play in the device’s YouTube app?
<!DOCTYPE HTML>
<html>
<head>
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport">
<link href="style.css" rel="stylesheet" type="text/css">
<title>title</title>
</head>
<body>
<video src="http://www.youtube.com/watch?v=NRJHKzU_t1M" controls="controls">Video goes here</video>
</body>
</html>
Regards,
Steve
Steve,
I’ve never messed with YouTube on iUI, but I noticed when writing documentation for iUI that it ignores youtube links so that the iPhone can handle them natively.
In other words, if you include <a href="http://www.youtube.com/watch?v=NRJHKzU_t1M">link</a>, the link should function properly (opening the phone’s youtube application).
If you want to embed the video inside your app, rather than link to it, I’m not sure if or how you can do that…
-- peter
--
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to iphone...@googlegroups.com.
To unsubscribe from this group, send email to
iphonewebdev...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en.