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

SMIL JWPlayer


Smil = test.smil
<smil>
<head></head>
<body>
<switch>
<video src="The Way I Love You_240p.flv" system-bitrate="200000" />
<video src="The Way I Love You_360p.flv" system-bitrate="350000" />
<video src="The Way I Love You_480p.flv" system-bitrate="480000" />
</switch>
</body>

player.html
<html>
<head>
<script type="text/javascript" src="jwplayer-7.11.2/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="mg9zHGtZmszFHqc4f1fTCmb6RPIbw2WnFpbJdw==";</script>
</head>
<body>
<div id="video">Loading the player...</div>
<script type="text/javascript">
var playerInstance = jwplayer("video");
playerInstance.setup({
file: "test.smil",
title: "Test"
});
</script>
</body>
</html>

I want to test but only Error Loading Player : No playable sources found message show.

Videos store on root path.

Thank you.

5 Community Answers

Donni

JW Player Support Agent  
0 rated :

The player code looks fine, so I’m wondering if its an issue with the SMIL itself. I’m also wondering if the browser you are using has flash enabled. Below is an example of a property formatted SMIL – does it resemble yours? Also, is there a reason why you are sticking with flash-based media instead of moving to adaptive streaming with HLS?

<smil>
  <head>
    <meta base="rtmp://example.com/vod/" />
  </head>
  <body>
    <switch>
      <video src="myVideo-high.mp4" height="720" system-bitrate="2000000" width="1280" />
      <video src="myVideo-medium.mp4" height="360" system-bitrate="800000" width="640" />
      <video src="myVideo-low.mp4" height="180" system-bitrate="300000" width="320" />
    </switch>
  </body>
</smil>

a...

User  
0 rated :

Hi Donni,

Thanks for the reply,

i don't understand about <meta base>, how should i set up <meta base> ?

Because everytime i play the jw player seem fine but keep loading, no videos come out.





Donni

JW Player Support Agent  
0 rated :

That’s where you point to the location of the RTMP application.

a...

User  
0 rated :

RTMP application ??

Should i install RTMP application to run SMIL file ??

Because i only install JWPlayer & Nginx.

Donni

JW Player Support Agent  
0 rated :

I assumed you were running one. If not, it should be the base URL of where the stream is located. See https://support.jwplayer.com/customer/en/portal/articles/1430358-using-rtmp-streaming for more details.

This question has received the maximum number of answers.