How to control a SWF (Flash) player via Parameters HTML param?

0
  

I have a player for streaming de áudio and would like to make it easier to change the server data (IP and Port). Download

I currently use the SWiX software to edit the data > Player .

  

The data (IP and PORT) are in the line DoAction :

Ijustwantedtoeditjustusingtheparameters,similartothesitebelow:

link

It uses the following form:

    <object width=180 height=70 style="float: left;margin-top: 5px;">
        <param name=movie value="http://paineladmin.com/swf/player_novo.swf" />
        <param name=allowfullscreen value=true />
        <param name=allowscriptaccess value=always />
        <param name=wmode value=transparent />
        <param name=flashVars value="rtmp=rtmp://192.198.204.194:1935/stream&servidor=http://centova.ehostsolucoes.com.br:8516" />
        <embed wmode="transparent" src="http://paineladmin.com/swf/player_novo.swf"type=application/x-shockwave-flashallowscriptaccess=alwaysallowfullscreen=truewidth=180height=70flashvars="rtmp=rtmp://192.198.204.194:1935/stream&servidor=http://centova.ehostsolucoes.com.br:8516" />
        </embed>
    </object>

JSFIDDLE EXAMPLE

How can I do something similar to this with my Player?

I also accept suggestions with Javascript / jQuery

    
asked by anonymous 08.08.2014 / 03:29

1 answer

1

If you can swap the SWF player, you might want to switch to an HTML solution, the only problem is that browsers do not support the audio codec you use.

With an HTML5 solution, you can perform all the controls via pure JavaScript. Here in this post has the following example of how to do this:

<video width="356" height="200" controls poster="full/http/link/to/image/file.png">
    <source src="full/link/to/http/mp4/video/file.mp4" type="video/mp4" />
    <source src="full/link/to/http/ogv/video/file.ogv" type="video/ogg" />
    <source src="full/link/to/http/webm/video/file.wbem" type="video/webm" />
    <em>Sorry, your browser doesn't support HTML5 video.</em>
</video>
    
08.08.2014 / 13:57