Skin in ZIP for JW-Player does not load in Apache

0

I have a code, which is used to insert videos using the JWplayer player. (Flash + HTML5) It works for both Flash and HTML5.

If the browser has the adobe flash player installed and also supports HTML5; The order is for the video to be played using flash, leaving HTML5 as the second option.

If the browser does NOT support HTML5, and if it has installed the adobe flash player plugin, the video will be played with flash.

If the browser supports HTML5, but does not have the plugin installed adobe flash player, the video will be played in HTML5.

It is an integral code that groups the tags (Flash) and (HTML5) on one only. And in this way allow the videos to play from any browser.

The problem I have is that I could not get the glow.zip skin to load properly in the player.

The only way for the skin glow.zip to load into the player, is having enabled, or installed the adobe flash player plugin. And it should not be like that.

From so much searching I found a page where exactly what I want is done, and it works well: link

the code is similar to the one I use; I decided to use the same code on that page, and also use the same files on that page ( glow.zip , jwplayer.swf , player.swf ). But I still have the same problem.

I think it should possibly be a problem with my local apache server. Maybe you have to adjust, or add something, so that the problem is solved.

Will any line be added to .htaccess ?

or file httpd.conf ?

Or what else could it be?

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>VIDEO FLASH+HTML5</title>
<script type="text/javascript" src="jwplayer.js" charset="utf-8"></script>
</head>
<body>
<div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "player.swf",
file: "video.mp4",
autostart: true,
controlbar: "over",
volume: 100,
height: 338,
width: 600,
skin: "glow.zip"
});
</script>
</body>
</html>
    
asked by samuel 22.11.2016 в 19:39
source

1 answer

0

Short version: Uncompress glow.zip in the skins folder, without any additional folders, so you must have skins/glow.xml .

Long version:

Reviewing the cited link, and taking as [base] the URL link is appreciated (in the tools of the Developer, "Network" tab) the following requests:

  • [base] /glow.xml
  • [base] /controlbar/background.png
  • [base] /controlbar/divider.png
  • ...

After viewing the code of the .js of JW-Player, it will replace the .zip with .xml , like this:

j.skin=j.skin.replace(/\.zip/i,".xml")

With which, the player waits for a file .xml that parsea, and begins to load all the resources specified in such file.

    
answered by 23.11.2016 / 00:27
source