Class ::xowiki::includelet::flowplayer

::xowiki::includelet::flowplayer[i] create ... \
           [ -__decoration (default "none") ] \
           [ -parameter_declaration (default " -mp4:required,nohtml ") ]

Include an mp4 image using flowplayer
Defined in /var/www/openacs.org/packages/xowiki/tcl/includelet-procs.tcl

Class Relations

  • class: ::xowiki::IncludeletClass[i]
  • superclass: ::xowiki::Includelet[i]
::xowiki::IncludeletClass create ::xowiki::includelet::flowplayer \
     -superclass ::xowiki::Includelet

Methods (to be applied on instances)

  • __decoration (setter)

  • include_head_entries (scripted)

    ::xo::Page requireJS  "/resources/xowiki/flowplayer/example/flowplayer-3.2.6.js"
  • parameter_declaration (setter)

  • render (scripted)

    :get_parameters
    return "<a href='[ns_quotehtml $mp4]' style='display:block;width:425px;height:300px;' id='player'> </a>
    <script type='text/javascript' nonce='[security::csp::nonce]'>
     flowplayer('player', '/resources/xowiki/flowplayer/flowplayer-3.2.7.swf', {
    
    // this will enable pseudostreaming support
    plugins: {
        pseudo: { url: '/resources/xowiki/flowplayer/flowplayer.pseudostreaming-3.1.3.swf' }
    },
    
    // clip properties
    clip: {
        // our clip uses pseudostreaming
        provider: 'pseudo',
    
                autoPlay: false,
                autoBuffering: false,
    
        // Provide MP4 file for Flash version 9.0.115 and above. Otherwise use FLV
        url: '$mp4'
    }
    
     });
       </script>"