1. Home
  2. Developers
  3. Web Based Mobile SDK
  4. iOS WebView Guide (deprecated)

iOS WebView Guide (deprecated)


Native player SDK available

Our web based mobile SDK is marked as deprecated. We strongly recommend only using the documentation below for implementations already in place.

To implement the Blue Billywig player into your app (or if you are you planning to significantly change your current implementation): please visit our native player SDK documentation to get started or contact us at support@bluebillywig.com. We will gladly help you get started with our new native SDK.

1.0 | Embedding the player in a WKWebView

To embed the player in a WKWebView in iOS, visit: https://developer.apple.com/reference/webkit/wkwebview

2.0 | Embedding the player in a UIWebView

To embed the player in a UIWebView in iOS, visit: https://developer.apple.com/reference/uikit/uiwebview

To enable inline playback on an iPhone, be sure to set

webView.allowsInlineMediaPlayback = YES;

To use autoplay use the following:

webView.mediaPlaybackRequiresUserAction = NO;

Place a Javascript embed code on a web page. The following script tag is an example embed code. Use the Online Video Platform to generate an embed code for your video content.

Make sure the selected playout has the setting “Force inView actions” enabled (read more about In- & Out View playout settings).

 

Load the web page in the webview.

NSURL *url = [[NSURL alloc] initWithString:@"http://yourcompany.com/demoWebPage"];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
[self.webView loadRequest:request];

Was this article helpful?

Related Articles