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

Error Streaming m3u8


Hello,

I am running the following code using IE and it shows the error: "Error Loading Player: Could not load player configuration". The same error is displayed in Chrome also. Please suggest what went wrong. Thanks.

Code:
<html>
<head>

<script src="http://jwpsrv.com/library/MY_JW_PLAYER_ACCOUNT_TOKEN.js"></script>

<title>test page</title>
</head>
<body>

<div id="myElement">Loading the player...</div>
<script type="text/javascript">
var playerInstance = jwplayer("myElement");
playerInstance.setup({
file: "http://wealthtv.apple-live-geo.adaptive.level3.net/apple/wealthtv/wealthtv/abc/abc.m3u8",
image: "http://example.com/uploads/myPoster.jpg",
width: 640,
height: 360
});
</script>

</body>
</html>

3 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

Thank you for contacting the JW Player support team. I would esnure you have all of your security settings in place on your webserver (crossdomain.xml) http://support.jwplayer.com/customer/portal/articles/1403679-crossdomain-file-loading. You can also check if the stream is working outside of the player via a tester: http://demo.jwplayer.com/stream-tester/

Kindly,

Randy Le’Moine, Web Support Engineer, JW Player
www.jwplayer.com

aniyan.rajan6

User  
0 rated :

Hello,

I have a Premium account with jwplayer.

I have tried the stream-tester url. It shows "cannot load m3u8: cross domain access denied".

I am running the code (shown in the first message) from my PC. And I don't have access to the wealthtv server. I have no idea where to put the crossdomain.xml. So please suggest. Thanks.

The correct stream url is:
http://wealthtv.apple-live-geo.adaptive.level3.net/apple/wealthtv/wealthtv/oan/supercloud.m3u8.

Randy

JW Player Support Agent  
1 rated :

Hello,

You need to implement the crossdomain.xml file into the root of your web server folder. This should allow access to the content. You would potentially want to set up your file as follows:

<?xml version=“1.0”?>
<!DOCTYPE cross-domain-policy SYSTEM “http://www.adobe.com/xml/dtds/cross-domain-policy.dtd”>
<cross-domain-policy>
<allow-access-from domain="*" />

</cross-domain-policy>

Kindly,

Randy Le’Moine, Web Support Engineer, JW Player
www.jwplayer.com

This question has received the maximum number of answers.