0 Replies Latest reply on Jan 12, 2012 11:18 AM by kenjrbhmi

    Simplest audio player ever

    kenjrbhmi

      I'm new to OSMF and am trying to dynamically create a bare-bones audio player.  When I say bare-bones, all I'm looking for is the play button (or an image of my choosing) to play a sound clip and that's it (so it acts similar to a button or link).  I've read a lot about skins, but that discusses changing the appearance as opposed to hiding all of the various components of the display.  I'm using StrobeMediaPlayback and my embed call looks as follows:

       

           flashvars.src    = '#{myurl}';

           flashvars.streamType  = 'recorded';

           flashvars.width             = "24px";

           flashvars.playButtonOverlay = 'true'

          

           var params = {};

           params.wmode     = 'direct';

           params.movie    = '#{somePath}/media/StrobeMediaPlayback.swf';

           params.allowscriptaccess = 'always';

           params.width    = '24px'

           params.allowFullScreen  = 'false';

          

           var attributes = { id:"plyr", name:"plyr"};

       

           swfobject.embedSWF( '#{somePath}/media/StrobeMediaPlayback.swf'

                 , 'plyr'

                 , '24px'

                 , '24px'

                 , '10.1.0'

                 , '#{somePath}/media/StrobeMediaPlayback.swf'

                 , flashvars

                 , params

                 , attributes

           );

       

      The intent is to be able to use the same player to play audio files (in this case) that we're using for video.  However, hiding the controls properly hasn't worked out as well as I'd like so far, and I'm sure I'm doing something incorrectly.  Does anyone have an example of something like this?  One alternative I've seen is to make a flash video with a couple of image frames in it that essentially does this.

       

      Thanks.