Skip to content

Instantly share code, notes, and snippets.

@vidalon
Created July 21, 2011 20:15
Show Gist options
  • Save vidalon/1098097 to your computer and use it in GitHub Desktop.
Save vidalon/1098097 to your computer and use it in GitHub Desktop.
How to embed the Ooyala mobile player using UIWebView
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