
Azure Media Streaming With JWPlayer Not Working
Hi, I was seting up JWPlayer in my site, and I can't get it to work.
Here is my code:
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="http://p.jwpcdn.com/player/v/7.1.4/jwplayer.js"></script>
<title>Test</title>
</head>
<body>
<div id="test-player"></div>
<script type="text/javascript">
$(document).ready(function() {
jwplayer.key = "myKey";
var player = jwplayer("test-player").setup({
"playlist": [{
"sources": [{
"default": false,
"file": "http://xxxxxx.streaming.mediaservices.windows.net/b78adeb3-ffff-458f-9877-5cc15d4c4949/test.ism/manifest(format=m3u8-aapl-v3)",
"label": "0",
"type": "hls",
"preload": "none",
"autostart": true
}]
}],
"hls": true,
"autostart": true,
"primary": "html5",
"hlshtml": true
});
});
</script>
</body>
</html>
I got an: Error loading player: No playable sources found. When I try it on the demo-tester it works, but I don't know why it doesn't work in my code.