We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8454
    • 55 Posts
    So, I have searched extensively throughout the forums, downloaded and installed two different videoplayers w/o success.


    Has anyone got a solution working to play video in MODx? If you got Flowplayer to work, all the better. I would be so grateful if someone could share some code. I suspected some kind of JavaScript conflict, and stripped the page from as much as I could, (i e with my limited script debugging knowledge.) All file (js, swf, flv) permissions set to 755. Are there file type settings in Manager Configuration to consider?

    Thanks!





      • 25663 MODX Staff
      • 12,272 Posts
      MODx outputs what you put in it, and doesn’t restrict in any way front end functionality. There’s more than a few sites with video in MODx. That said, you would need to probably have a TV that holds the video source, and a snippet or chunk that formats the call to the player.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 24449
        • 81 Posts
        Hi,

        We use OSFLV player (http://www.osflv.com/ - although their site seems to be broken at the minute) and XSPF (http://www.xspf.org/) player for audio.

        Both are free and open source (unless I really missed something...)


        Ramsay
          • 24449
          • 81 Posts
          As a follow-up:

          My FLVPlayer snippet looks like this:
          <?php
          if($vid == '') {
            $vid = urldecode($_REQUEST['vid']);
          }   
          include ('assets/flash/osflv_player/flash/flash.php');
          flvheader();
          flv($vid, -1, -1, '', '', true, true);
          ?>


          This places a player on the page and autoloads and autostarts the video given in the page request (I think, I can’t remember the FLV Player args). We have it on a plain-templated page and call it in iFrames or GreyBox popups.

          Ramsay
            • 22840
            • 1,572 Posts
            The Flowplayer seemed to be a promising alternative, and a test setup at my web host, accessed outside MODx, played reasonably. I have been unable to make it work in MODx, though. The only thread in these forums on Flowplayer seems to have died with no real conclusion http://flowplayer.org/documentation/installation/index.html

            What version of Modx are you using ?? you may need to use compatibility mode for the Flowplayer jquery if the version of modx your using is using mootools.

            I’ve used a few things off that site with success with the latest release so always worth checking.
            Have you tried turning off the quick edit and see if it then works ??
              • 15175
              • 116 Posts
              I’m using Flowplayer and it works fine, but I do have Quickmanager disabled - I tried it with it Quickmanager enabled and it didn’t work.

                • 8454
                • 55 Posts
                Wow, thanks a bunch for your quick responses. I guess my subject came out a bit provocative; wink no offense.

                I’ll have a go at your suggestions and report back. Thanks again!
                  • 8454
                  • 55 Posts
                  @paulp: I’m using 0.9.6.3 and latest Flowplayer download. QuickManager already disabled.
                  Tried in FF 3.5.3 and Safari 4.0.2 on MacOS 10.5.8 and IE 8.0.6001 on Windows XP sp3.

                  What is compatibility mode? Can’t find anything on flowplayer site mentioning it.

                  I tried with a simple OBJECT tag (covered in Flowplayer demos), and that works in all three above browsers. I could definitely settle with that for now. Sorry for the whining, still curious though...

                  The javascript method code that didn’t work:
                  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                  <html xmlns="http://www.w3.org/1999/xhtml">
                  <head>
                      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                      <title>[(site_name)] | [*pagetitle*]</title>
                  <script src="mysite.com/assets/media/players/flowplayer/flowplayer-3.1.4.min.js"></script>
                  </head> 
                  <body> 
                  <a  
                      href="http://mysite.com/assets/media/flowplayer.flv"
                     style="display:block;width:425px;height:300px;border:dotted;" 
                      id="player"> 
                  </a> 
                  <script language="JavaScript"> 
                      flowplayer("player", "http://mysite.com/assets/media/players/flowplayer/flowplayer-3.1.4.swf"); 
                  </script> 
                  
                  </body>
                  </html>
                  


                    • 22840
                    • 1,572 Posts
                      • 8454
                      • 55 Posts
                      OK...I’m aware of the potential conflict with other libraries and the workarounds. I use it with jquery tools (also of Flowplayer.org) where I have scrollables that would otherwise conflict with e.g. AjaxSearch.

                      I don’t really see where that comes in in this case, though. Flowplayer js isn’t jquery, right? Where would I need to use jQuery.noConflict(); ?