StageWebView Vimeo ??
Ok ,
Using this code to call youtube videos on iOS :
var htmlString:String = "<!DOCTYPE HTML>" +
"<html>" +
"<body>" +
"<iframe class=\"youtube-player\" style=\"border: 0; width: 100%; height: 100%; padding:0px; margin:0px\" id=\"ytplayer\" type=\"text/html\" src=\"http://www.youtube.com/embed/" +
"YOUTUBE-ID" + "?fs=0\" frameborder=\"0\">\n" + "</iframe>\n";
"</body>" +
"</html>";
webView.loadString( htmlString, "text/html" );
I started to modify it to call a vimeo video, and i got this:
var stageWebView:StageWebView = new StageWebView();
stageWebView.stage = stage;
stageWebView.viewPort = new Rectangle( 0, 0, 700, 500);
var htmlString:String = "<!DOCTYPE HTML>" +
"<html>" +
"<body>" +
"<iframe src=\"http://vimeo.com/VideoID\" width=\"640\" height=\"480\" frameborder=\"0\" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>\n";
"</body>" +
"</html>";
stageWebView.loadString( htmlString, "text/html" );
And the video call perfectly, except for one little thing. THERE ARE NO CONTROLS!!! xD.
So a modified the code to the source call the video like this : http://player.vimeo.com/video/VideoID, that is supose to be the default embed player for iframe on html, and nothing happens.
Now i am trying to get it with moogaloops (swf player for actionscript) but cant still cant get it run.
Any IDEAS!???
thnxs!!
