How to modify this code

by

Home Forums JW Player 7 for WordPress How to modify this code

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1732
    stevenminix
    Participant

    Hi I have given up waiting for you to implement quality switching or simple hd toggle on and off so I found out how to do it myself.

    I am using this code:

    <div id="myElement"></div>
    <script type="text/javascript">
    var playerInstance = jwplayer("myElement");
    playerInstance.setup({
          image: "my jpeg",
          width: "100%",
          aspectratio: "16:9",
          sources: [{
            file: "my HD file"
          },{
            file: "my 360p file"
          }]
        });
    </script>

    Here is what i want to do:

    I want to modify this code for two reasons. I would like to change the colors for the default skin “seven”
    I have tried this:

            skin : {
                  name:"seven",
                  active:"lightgray",
                  inactive:"purple",
                  background:"#BADA55"
                   }

    ^^^^^ that did not work at all I tried many variations. PLEASE TELL ME HOW TO INCORPORATE THIS INTO MY ORIGINAL WORKING CODE.

    i also would like to know what code I can insert to my original working code to make the mouse cursor disappear once you put the player into full screen. right now it does not disappear even though controls disappear.

    Thanks for your help

    _ Steven

    #1735
    ilGhera
    Keymaster
    #1736
    stevenminix
    Participant

    Thank you for your reply. I prefer the method I am using and just want to do it with the code I showed you.

    <div id=”myElement”></div>
    <script type=”text/javascript”>
    var playerInstance = jwplayer(“myElement”);
    playerInstance.setup({
    image: “my jpg”,
    width: “100%”,
    aspectratio: “16:9”,
    sources: [{
    file: “my 360p file”
    },{
    file: “my 1080p file”
    }]
    });
    </script>

    My only remaining need is I would like you to just tell me what and where to add to this code to change the “active” element color in “seven” theme.

    Thank you for your time,
    – Steven

    #1737
    stevenminix
    Participant

    oh yeah and also to hide the mouse cursor in fullscreen, make it disappear.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.