How to modify this code

da

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

Stai vedendo 4 articoli - dal 1 a 4 (di 4 totali)
  • Autore
    Articoli
  • #1732
    stevenminix
    Partecipante

    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
    Amministratore del forum
    #1736
    stevenminix
    Partecipante

    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
    Partecipante

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

Stai vedendo 4 articoli - dal 1 a 4 (di 4 totali)
  • Devi essere connesso per rispondere a questo topic.