Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

JWPlatform on Android no playing - Error handling "COMPLETE" event listener [0]: Error: SECURITY_ERR: DOM Exception 18


I'm attempting to implement the JWPlayer, using the player from the JWPlatform, in an embedded webview on Android devices. I've got one test device here where the videos simply don't play at all.

The HTML for presenting the player is very simple:

<html>
<head>
<title>AFLAndroid</title>
<style>
#botr
{
padding: 0 12px;
background-color: #ffcccc;
}
</style>
</head>
<body style="padding: 0; margin: 0; background-color: #000000;">
<div id="botr"><script type="text/javascript" src="http://content.bitsontherun.com/players/QwW1dXLx-xnj3VuF5.js"></script></div>
</body>
</html>

I'm monitoring the console in the embedded webview. When this code loads, the following error occurs:

Error handling "COMPLETE" event listener [0]: Error: SECURITY_ERR: DOM Exception 18 -- From line 5 of http://content.bitsontherun.com/players/uyRtpe0D-xnj3VuF5.js

Device info:

Android 4.0.4
GT-S7562 (Samsung Galaxy S)

3 Community Answers

Remco van Bree

JW Player Support Agent  
0 rated :

I’m afraid the embedded webview in browsers is not a supported use case.

JW Player

User  
0 rated :

So what's the recommended approach for using JWPlatform in a native mobile app? My understanding is that using the embedding scripts from the http://content.jwplatform.com/players/... endpoints is the only way to ensure pre-roll advertisements and correct analytics.

In your 'Embedding best practices...' section, your support clearly states:

_Both our Javascript and iFrame embeds have support for mobile devices (phones and tablets). This is achieved by including three different mechanisms for rendering the video:_

I really need this confirmed so my client can make an informed decision. You are saying that JWPlatform simply doesn't support a scenario that requires:

- The videos to be able to be played in a native iOS or Android app
- AND analytics

Can you let me know if this is the case?

Remco van Bree

JW Player Support Agent  
0 rated :

We only support the player and JW Platform embed codes in regular browsers (native or Chrome) on Android devices. The webview can have sandboxing or other security features that might cause issues.

This question has received the maximum number of answers.