We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31979
    • 26 Posts
    Sorry for the blank page, I fixed that.
      www.waso.com
      • 18219
      • 826 Posts
      Ok, I have fix a bug wink
      You can download the last version in the repository.

      Thank to test this.

      Edit : Changed link
        Marc
        I'm French... Sorry for my bad English, I use ' Google Translator' or other... but that remains that tools wink
        • 14035
        • 15 Posts
        Quote from: Marc at Jan 09, 2007, 08:17 PM

        Ok, I have fix a bug wink
        You can download the last version in the repository.

        Thank to test this.

        Hi, the link above that you refer to should be this one for your update.

        http://modxcms.com/SimpleVideoShow-1158.html

        Btw, can you put more addition to you snippet to include playing swf, .flv and divx file, divx.com has a webplugin now. This will make an All in One VideoShow.

        Here is the divx webplayer info. Looking forward to an AllinOne snippet. Thanks.

        http://www.divx.com/divx/webplayer/
          • 18219
          • 826 Posts
          Hi,

          Thank to link wink

          It is easy to integrate new format by change in file: /lang/yourlanguage.inc.php
          Attention, the entity <embled> is not in conformity W3C


          The code generated on the http://labs.divx.com/WebPlayerCodeGenerator site does not respect standards W3C wink

          If you want used divx webplayer add this code into /lang/yourlanguage.inc.php
          //-- type mime : video/divx
          $_lang['player_IE_swf'] = 'classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
          						codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" ';
          $_lang['player_NIE_swf'] = 'type="video/divx"';
          

          Can you test this code, please ?
          Thks
            Marc
            I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
            • 14035
            • 15 Posts
            wow, that was fast! Okay, I will have to install this whole snippet first and I will add this coding inside the file before I upload to my server. Will let you know what happen? How about swf and flash video file? Can they be including inside?
              • 14035
              • 15 Posts
              1. Because you already had avi extension specify in your original script. Here is what happen if I did not add the extra code:
              a. Because divx codec can be an addon to Windows Media Player, since I have it installed in one of my pc, WMP will the avi file in IE and Firefox
              b. On another pc, i did not have divx codec installed, Windows Media Player did not ask me to install extra codec, just simply don’t play the file in IE and Firefox ask for me to install extra plugin for browser.

              2. Because you have already have used the avi extension and divx also use avi extension, I have to delete the code that ask WM Player to play the avi file.
              Deleted this part:
              //-- type mime : video/avi
              $_lang['player_IE_avi'] = 'type="video/x-msvideo" 
              						';
              $_lang['player_NIE_avi'] = 'type="video/x-msvideo"';
              
              


              and substitude your extra code with changes from:
              //-- type mime : video/divx
              $_lang['player_IE_swf'] = 'classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
              						codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" ';
              $_lang['player_NIE_swf'] = 'type="video/divx"';


              to this: (change the letters - swf to avi )

              //-- type mime : video/divx
              $_lang['player_IE_avi'] = 'classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
              						codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" ';
              $_lang['player_NIE_avi'] = 'type="video/divx"';


              Because the divx player can play multiple format of avi/mp4, so I think having the divx player to player any avi is better than using Windows Media Player as your original choice.

              Problem:

              I noticed, if I put 2 or more different Media file in one page, it will just detect the first media file and play that one and disregard the rest. The only time that the browser can detect 2 media files exist in one page is when I have the same file being call twice in the same page like this:

              detect first
              [!SimpleVideoShow? &video=`mnif.avi` &width=`400` &height=`320` !]

              detect second

              [!SimpleVideoShow? &video=`mnif.avi` &width=`400` &height=`320` !]

              Now I can use 2 player show up one web page.

              Also what is the syntax to stop autostart?

              [!SimpleVideoShow? &video=`mnif.avi` &width=`400` &height=`320` &autostart=’false’!]

              this does not change stop the player, the page load and the play will play right away.


                • 14035
                • 15 Posts
                suggest to modify your code to use divx player to play All avi file as permanent coding, the following complete code works for me:

                <?php
                
                /**
                 * Filename:       assets/snippets/simplevideoshow/english.inc.php
                 * Function:       Default English language file for SimpleVideoShow.
                 * Author:         The MODx Project
                 * Last Edited:    09-Jan-2007
                 * Version:        0.1c
                 * MODx version:   0.9.5
                */
                
                $_lang['file_does_not_exist'] = " does not exist. Please check the file.";
                
                $_lang['invalid_class'] = "The SimpleVideoShow class is invalid. Please check it.";
                
                $_lang['error'] = "<strong>Snippet SimpleVideoShow - Error</strong> (line: ";
                
                $_lang['no_video'] = "Video does not exist. Please check the file.";
                
                $_lang['no_param_IE'] = "Parameter not exist in language file. Please check the parameter.";
                
                $_lang['standby'] = "In process...";
                
                $_lang['api'] = "Using the new MODx 0.9.2.1 API and more";
                
                /**
                 * Instructions for player
                 * IE : for Internet Explorer
                 * NIE : for other player
                */
                //-- type mime : video/wmv
                $_lang['player_IE_wmv'] = 'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
                						codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
                						type="application/x-oleobject" ';
                $_lang['player_NIE_wmv'] = 'type="video/x-ms-wmv"';
                
                //-- type mime : video/mov
                $_lang['player_IE_mov'] = 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
                						codebase="http://www.apple.com/qtactivex/qtplugin.cab" ';
                $_lang['player_NIE_mov'] = 'type="video/quicktime"';
                
                //-- type mime : video/qt.smil
                $_lang['player_IE_qt.smil'] = 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
                						codebase="http://www.apple.com/qtactivex/qtplugin.cab" ';
                $_lang['player_NIE_qt.smil'] = 'type="video/quicktime"';
                
                //-- type mime : video/mpeg
                $_lang['player_IE_mpg'] = 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
                						codebase="http://www.apple.com/qtactivex/qtplugin.cab" ';
                $_lang['player_NIE_mpg'] = 'type="video/quicktime"';
                
                //-- type mime : video/divx
                $_lang['player_IE_avi'] = 'classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
                						codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" ';
                $_lang['player_NIE_avi'] = 'type="video/divx"';
                
                ?>


                Thank you.

                Please show me how to add extra coding to play Flash Video (.flv) and regular Flash file, this will make it even more complete code. Thanks again.
                  • 14035
                  • 15 Posts
                  One more request, how do I set the player do not Autostart, I have come to find, if it is set to default = autostart, it will waste a lot of bandwidth, when I have lots videos. Thanks.
                    • 18219
                    • 826 Posts
                    Hi,

                    Thank you for the return for message. I do not have much time today.
                    To modify the parameter $autostart, it should be indicated in the call of the snippet:
                    [!SimpleVideoShow? ... $autostart=`0`... !]
                    


                    But this parameter depends on the player. It can be with true permanently.
                    I will look in the evening the parameter setting for film in .flv wink
                      Marc
                      I&#39;m French... Sorry for my bad English, I use &#39; Google Translator&#39; or other... but that remains that tools wink
                      • 30884
                      • 142 Posts
                      This is a brilliant little snippet! Saved me a lot of time and grief! Many thanks!
                        p i x e l p u s h e r e x t r o d i n a i r e
                        A x i s A n i m a t i o n . c o m