We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 52
    • 17 Posts
    After messing with the FlashVideo i decided to make my own using Flash Video Player 2.3. I like the really simple interface, hopefully someone finds it useful.

    //FlvPlayer by Matt Hobbs (based on FlashPlayer snippet by Mark & Bugaev and using Flash Video Player 2.3 at http://www.jeroenwijering.com/?item=Flash_Video_Player)  
    //Usage: [[FlvPlayer?file=filename.flv&width=width&height=height]] (add 20 pixels onto video height to allow for player controls).
    //The videos are stored in 'assets/flash/video'. This is customisable with $videoPath 
    //(note: for some reason I had to insert the full path on my server for the videos to work, you may not require 'http://www.yourwebsite.com/'.
    //The player file is placed in 'assets/flash/video' but this can be customised with $playerPath.
    
    
    
    //SETTINGS
    $autoPlay="true";
    $playerPath="assets/flash/video";
    $videoPath="http://www.yourwebsite.com/assets/flash/video";
    
    //END SETTINGS
    $output = '<object type="application/x-shockwave-flash" width='. $width .' height=' . $height . ' wmode="transparent"
        data="'.$playerPath.'/flvplayer.swf?file='.$videoPath.'/'.$file.'&autoStart='.$autoPlay.'">
      <param name="movie" value="'.$playerPath.'/flvplayer.swf?file='.$videoPath.'/'.$file.'&autoStart='.$autoPlay.'" />
      <param name="wmode" value="transparent" />
      </object>';
    
    return $output;


    You can get the video player files at http://www.jeroenwijering.com/?item=Flash_Video_Player

    Any bugs or improvements please post them!

    Matt
      • 26439
      • 104 Posts
      This may be interesting for people in this thread ( credit to Susan once again ).

      Drew McLellan over at aListApart had in the process of developing a method of imbedding Flash that validates, discovered a very tidy alternative manner.

      
      <object type="application/x-shockwave-flash
      data="c.swf?path=movie.swf" 
      width="400" height="300">
      
      <param name="movie" 
      value="c.swf?path=movie.swf" />
      
      <img src="noflash.gif" 
      width="200" height="100" alt="" />
      </object>
      
      


      What is particularly nice is that it doesn’t delve into Flash detection, you just simply get a "background" image if your browser doesn’t have the player.

      One does have to know a little about actionscripting however, as there is a "container"’ movie that holds the real movie in it’s "_root".

      source
        • 13577
        • 302 Posts
        It may be worth noting that this product is only free for NON-commercial use. Not that that’s a bad thing, just something to be aware of.
        smiley
          Standard Disclaimer
          I could be totally wrong.
          • 26439
          • 104 Posts
          what product?
            • 13577
            • 302 Posts
            Quote from: 1man at May 02, 2006, 06:09 PM

            After messing with the FlashVideo i decided to make my own using Flash Video Player 2.3.
            ...
            You can get the video player files at http://www.jeroenwijering.com/?item=Flash_Video_Player
            ...
            That one
              Standard Disclaimer
              I could be totally wrong.
              • 11588
              • 6 Posts
              Quote from: scraf at May 03, 2006, 12:27 PM

              This may be interesting for people in this thread ( credit to Susan once again ).

              Drew McLellan over at aListApart had in the process of developing a method of imbedding Flash that validates, discovered a very tidy alternative manner.

              
              <object type="application/x-shockwave-flash
              data="c.swf?path=movie.swf" 
              width="400" height="300">
              
              <param name="movie" 
              value="c.swf?path=movie.swf" />
              
              <img src="noflash.gif" 
              width="200" height="100" alt="" />
              </object>
              
              


              What is particularly nice is that it doesn’t delve into Flash detection, you just simply get a "background" image if your browser doesn’t have the player.

              One does have to know a little about actionscripting however, as there is a "container"’ movie that holds the real movie in it’s "_root".

              source

              Was just going to ask about using the Satay method, nice.
                • 33372
                • 1,611 Posts
                Unfortunately, Micro$oft just broke their ActiveX embedding of Flash, QuickTime, etc. completely. It was already annoying to have to do it their wacky way all this time, but now their way doesn’t even work. If you use any of the standard methods for embedding Flash or similar content into your pages, IE will now force you to click on them before when the page loads (or to activate them).

                AFAIK, currently the only fix is loading the content with JavaScript. There are different scripts out there for different types of content. After some experimentation, I use one for Flash and another for QuickTime.

                If other people are having this problem and would like to see the scripts that work for me, reply here and I’ll post them.
                  "Things are not what they appear to be; nor are they otherwise." - Buddha

                  "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                  Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                  • 26439
                  • 104 Posts
                  I was just about to have a look at embedding flash in a MaxiGallery snippet, or at least a Lightbox sort of set-up. ( flash video )

                  I’d be very interested to see what you use, ZAP.
                    • 33372
                    • 1,611 Posts
                    Sure thing.

                    For Flash movies I use an external script called flashobject (in attached zip):

                    <head>
                    ...
                    <script src="assets/flashobject.js" type="text/javascript"></script>
                    </head>
                    ...
                    <div id="flashcontent"></div><script type="text/javascript">
                       var fo = new FlashObject("assets/images/yer-movie.swf", "name", "width", "height", "version", "bgcolor");
                       fo.write("flashcontent");
                    </script>
                    ...
                    


                    The blank div gets dynamically filled with the Flash content.


                    And for QuickTime I use another one called QTobject (in attached zip), which is just Apple’s AC_QuickTime.js renamed (I like my name better):

                    <head>
                    ...
                    <script src="assets/QTobject.js" type="text/javascript"></script>
                    </head>
                    ...
                    <script type="text/javascript">
                    QT_WriteOBJECT_XHTML (
                       'assets/videos/yer-video.mov', 'width', 'height', '',
                       'autoplay', 'true',
                       'controller', 'true',
                       'emb#bgcolor', '#ffffff'
                    );
                    </script>
                    ...
                    


                    They’re not my scripts - just ones I’ve found to work for me. See the comments within them for more options and info. I tried several others before settling on these.

                    Hope that helps.
                      "Things are not what they appear to be; nor are they otherwise." - Buddha

                      "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                      Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                      • 26439
                      • 104 Posts
                      A note about the satay method and paths as discussed here... http://modxcms.com/forums/index.php/topic,4861.msg35543/topicseen.html#msg35543

                      If you have your flash files in the assets/flash/ folder the path to the container movie and the movie itself should be as this....

                      <object type="application/x-shockwave-flash
                      data="assets/flash/c.swf?path=assets/flash/movie.swf" 
                      width="400" height="300">
                      
                      <param name="movie" 
                      value="assets/flash/c.swf?path=assets/flash/movie.swf" />
                      
                      <img src="assets/flash/noflash.gif" />
                      </object>
                      


                      ..... as the refernces are coming from the index page.

                      I have my movies by default on "stopped" so I’m hoping that because they need to be clicked I won’t have an IE ActiveX issue.