Created
July 21, 2011 20:15
-
-
Save vidalon/1098097 to your computer and use it in GitHub Desktop.
How to embed the Ooyala mobile player using UIWebView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.webView = [[UIWebView alloc] initWithFrame:frame]; | |
[self.view addSubview:self.webView]; | |
NSString* html = @"<html><head></head><body><script src=\"http://www.ooyala.com/player.js?width=600&height=300&embedCode=c4NDJuM | |
jq6euFAKmzFGlqB4nZ3PYKAND&autoplay=1&transition=selector&playerId=p1&callbac | |
k=receiveOoyalaEvent\"></script></body></html>"; | |
[self.webView loadHTMLString:html baseURL:[NSURL | |
URLWithString:@"http://www.ooyala.com/"]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment