We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30585
    • 833 Posts
    Hi guys, here’s an excellent flv player that we were running in one of our robust projects that was powered by a commercial CMS. We now have to switch to MODx because of it’s simplicity and straightforwardness and I thought this could be an excellent addon for MODx.

    Can anyone help with a snippet code of this little beauty?

    Some interesting features:
    Ability to add advertisiment before a movie,
    ability to add Google adsense,
    ability to add own logo
    and above all, slick design and more...

    Check it out http://www.gdd.ro/gddflvplayer.html

    Gracias!

    Treigh
      A MODx Fanatic
      • 3749
      • 24,544 Posts
      I don’t have the time (or any need for it), but it doesn’t look too bad. I think you’d just copy the files, inject the js file with $modx->regClientStartupScript(), and make the html code generator into a snippet that returns the html code. As long as it doesn’t conflict with any other js, it should work.

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 30585
        • 833 Posts
        Quote from: BobRay at Jan 23, 2009, 11:56 PM

        I don’t have the time (or any need for it), but it doesn’t look too bad. I think you’d just copy the files, inject the js file with $modx->regClientStartupScript(), and make the html code generator into a snippet that returns the html code. As long as it doesn’t conflict with any other js, it should work.



        Thanks for the tip. I’ve been trying to tweak the JW player snippet to use this one, but I will try your advice. Thanks again
          A MODx Fanatic
          • 3749
          • 24,544 Posts
          Quote from: treigh at Jan 24, 2009, 12:07 AM

          Thanks for the tip. I’ve been trying to tweak the JW player snippet to use this one, but I will try your advice. Thanks again

          Don’t thank me until you see if it works. wink
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 4385
            • 372 Posts
            I know this is an old post, but it helped me out.

            I was looking for a modx snippet to play flash movies this was the post that I found using google [+modx "flv player"]. (could someone please fix the forum search feature?)

            The player looked like it had all the features I needed. (splash screen and logo)

            Here is the snippet call:

            [[gddflvplayer? &width=`758` &height=`426` &flv=`[+video+]`]]
            
            or 
            
            [[gddflvplayer? &width=`758` &height=`426` &flv=`[*video*]`]]
            


            gddflvplayer -- GDD FLV Player Snippet
            <?php
            # Set Snippet Paths 
            $snippetPath = $modx->config['base_path'] . "assets/snippets/";
            
            # check if inside manager
            if ($m = $modx->insideManager()) {
            	return ''; # don't go any further when inside manager
            }
            
            # Snippet customize settings
            $flv	        = isset($flv)? $flv:0;
            $width	= isset($width)? $width:758;
            $height	= isset($height)? $height:426;
            $autoplay	= isset($autoplay)? $autoplay:'false';
            
            
            $player .= "<object width=" . $width . " height=" . $height . " data=\"" .  $modx->config['base_url']  . "assets/snippets/gddflvplayer/gddflvplayer.swf\" type=\"application/x-shockwave-flash\">";
            $player .= "<param name=\"flashvars\" value=\"&autoplay=" . $autoplay . "&sound=70&desc=&buffer=5";
            $player .= "&splashscreen=" . $modx->config['base_url'] . "assets/images/video_splash.jpg";
            $player .= "&vdo=" . $modx->config['base_url'] . $flv . "\" />";
            $player .= "<param name=\"src\" value=\"" . $modx->config['base_url']  . "assets/snippets/gddflvplayer/gddflvplayer.swf\" />";
            $player .= "<param name=\"wmode\" value=\"transparent\" />";
            $player .= "<param name=\"allowfullscreen\" value=\"true\" />";
            $player .= "<param name=\"quality\" value=\"best\" />";
            $player .= "</object>";
            
            # Return
            return $player;
            ?>
            


              DropboxUploader -- Upload files to a Dropbox account.
              DIG -- Dynamic Image Generator
              gus -- Google URL Shortener
              makeQR -- Uses google chart api to make QR codes.
              MODxTweeter -- Update your twitter status on publish.
              • 15286
              • 79 Posts
              Hi!

              I need output splashscreen from my TV (sample: [+MyMovie-Splash+] ).
              How i make it?
                • 4385
                • 372 Posts
                Quote from: kalina at May 27, 2011, 03:51 PM

                Hi!

                I need output splashscreen from my TV (sample: [+MyMovie-Splash+] ).
                How i make it?


                I had only one splashscreen for the site, so it was only in one location.

                You need to change the snippet.
                from
                $player .= "&splashscreen=" . $modx->config['base_url'] . "assets/images/video_splash.jpg";
                
                to
                $player .= "&splashscreen=" . $splash;
                


                then call it like...
                [[gddflvplayer? &width=`758` &height=`426` &flv=`[+video+]` &splash=`[+MyMovie-Splash+]`]]
                




                  DropboxUploader -- Upload files to a Dropbox account.
                  DIG -- Dynamic Image Generator
                  gus -- Google URL Shortener
                  makeQR -- Uses google chart api to make QR codes.
                  MODxTweeter -- Update your twitter status on publish.
                  • 15286
                  • 79 Posts
                  Thanks! smiley
                    • 11489
                    • 1 Posts
                    Hi bwente:

                    I used your snippet and now I can see the video player (gddflvplayer.swf) in the page that I want it. The problem is that I don’t know how can I specify or declare the video’s path, can you give me any kind of advice on this? (by the way, I’m using a flv video file).

                    I tried modifying some variables on the php code but it doesn’t worked. Thank you very much.

                    Best regards.