Question

I am using my own skin in JWPlayer and playing a youtube video. But the video doesnt show up.I am able to get the skin on the player.Here is the code

  <!DOCTYPE html>
<html>
    <head>
       <script type="text/javascript" src="http://player.longtailvideo.com/jwplayer.js"></script>
        <script type="text/javascript">jwplayer.key=mykey";</script>
    </head>
    <body>
        <div id="container">Loading the player ...</div>
        <script type="text/javascript">
            jwplayer("container").setup({
             flashplayer: "fwplayer.swf",
            file: "https://www.youtube.com/watch?v=1gniYetOxCo",
             skin: "myskin.xml",
            height: 270,
            width: 480
        });
        </script>
    </body>
</html>
Was it helpful?

Solution 2

I executed this code from my localhost and it worked

<!DOCTYPE html>
<html>
    <head>
       <script type="text/javascript" src="http://player.longtailvideo.com/jwplayer.js"></script>

    </head>
    <body>
        <div id="container">Loading the player ...</div>
        <script type="text/javascript">
            jwplayer("container").setup({
             flashplayer: "fwplayer.swf",
            file: "https://www.youtube.com/watch?v=yourVideo",
             skin: "mySkin.xml",
            height: 270,
            width: 480
        });
        </script>
    </body>
</html>

OTHER TIPS

JW Player uses the Flash player to delivery YouTube content on desktop browsers at the moment. You need to un-comment the flashplayer property as demonstrated in this Fiddle: http://jsfiddle.net/hZVHh/

If the player skin isn't found then this can prevent the player from loading too - ensure you're referencing it correctly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top