We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1441
    • 61 Posts
    This is an auto-generated support/comment thread for JWPlayer.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Streamlines use of JW FLV Media Player 4.0 in MODx

      • 7231
      • 4,205 Posts
      That is a great contribution, thanks. Pretty good 1st post grin
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 1441
        • 61 Posts
        Quote from: dev_cw at Aug 04, 2008, 06:04 PM

        That is a great contribution, thanks. Pretty good 1st post grin
        Thanks dude.
          • 31227
          • 198 Posts
          Doesn’t work for me embarrassed
          Did everything as in instructions (2nd video):
          http://www.viriko.ru/cyprus-property-video-ru.html
          Path to video is correct, as is the path to the js files...
          huh huh huh
            Pure MODx sites
            Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
            • 5430
            • 247 Posts
            Can’t get it to run multiple videos. Using a very simple call on an uncached page:

            <div class="picBox">[[JWPlayer? &src=`assets/flash/01.flv`]]</div>
            <div class="picBox">[[JWPlayer? &src=`assets/flash/02.flv`]]</div>

            It plays the second video inside the first call. Sure I’m doing something wrong, need someone smarter than me to tell me what that is.

            Page is here: http://adventistwomensministries.org/index.php?id=137

              • 4310
              • 2,310 Posts
              Just a quick look begs the question where is your player.swf?
              If it’s not in the site root, your path is wrong huh
              swfobject.embedSWF("player.swf", thePlaceholder, "480", "272", "9.0.115", false, flashvars, params, attributes);
              

                • 15705
                • 9 Posts
                Quote from: claytonk at Nov 19, 2008, 03:27 PM

                Can’t get it to run multiple videos. Using a very simple call on an uncached page:

                <div class="picBox">[[JWPlayer? &src=`assets/flash/01.flv`]]</div>
                <div class="picBox">[[JWPlayer? &src=`assets/flash/02.flv`]]</div>

                It plays the second video inside the first call. Sure I’m doing something wrong, need someone smarter than me to tell me what that is.

                Page is here: http://adventistwomensministries.org/index.php?id=137




                I’ve had the same problem. To fix this you need to edit two lines in a snippet:
                Line 95. Instead of :
                echo "<div id=\"player\"></div>\n<script type=\"text/javascript\"> \n";

                will work:
                echo "<div id=\"$file\"></div>\n<script type=\"text/javascript\"> \n";



                Line 100. Instead of:
                echo "so.write('player'); \n";

                should be:
                echo "so.write(\"$file\"); \n";


                This won’t work if you call the same file in the same location twice or more on the same page (which is quite strange idea rolleyes). For example:
                [[JWPlayer? &src=`01.flv`]]
                [[JWPlayer? &src=`01.flv`]] ....will result single video output
                But:
                [[JWPlayer? &src=`01.flv`]]
                [[JWPlayer? &src=`/blah/01.flv`]] ... will create two outputs
                  ^^
                  • 1441
                  • 61 Posts
                  Well played sir. I’ll update the snippet.
                    • 29525
                    • 388 Posts

                    Is there a way to have a just a start/pause/stop button that would play an audio file without displaying the player>
                      www.terrybarthdesign.com
                      • 15705
                      • 9 Posts
                      Quote from: Terry at Dec 20, 2008, 09:33 AM


                      Is there a way to have a just a start/pause/stop button that would play an audio file without displaying the player>

                      I’m not sure this is the best solution but you can do this:
                      On line 86 change $height instead of 320 to 20:
                      $height = (isset($height)) ? strtolower($height) : "20" ;   //default video height in px
                      

                      Disable fullscreen feature on line 88:
                      $fullscreen = (isset($fullscreen)) ? strtolower($fullscreen) : "false" ;   //Enable fullscreen function
                      

                      And finaly change player controlbar location from"over" to "bottom" on line 90:
                      $controlbar = (isset($controlbar)) ? strtolower($controlbar) : "bottom" ;   //Controlbar location options available: bottom | over | none
                      
                        ^^