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

Asked

Viewed 581 times

0

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

Currently I use the free software Swix to edit the data of Player.

Data (IP and PORT) stay on the line Doaction:


Only that wanted to edit only using the parameters, similar to the site below:

http://www.radiovibracaoweb.com.br/player

It uses as follows:

    <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-flash allowscriptaccess=always allowfullscreen=true width=180 height=70 flashvars="rtmp=rtmp://192.198.204.194:1935/stream&servidor=http://centova.ehostsolucoes.com.br:8516" />
        </embed>
    </object>

EXAMPLE IN JSFIDDLE

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

I also accept suggestions with Javascript / jQuery

1 answer

1

If you can change the SWF player, it might be interesting to switch to an HTML solution, the only problem (which is not so big anymore) is the browsers that do not support the audio codec that 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>
  • 1

    Hi, Lucas, it’s usually nice to put a summary when we quote some external material. I put the example of code since the content of the link is basically this. I hope you do not mind and feel free to change my edition if you wish. . . What would be interesting is to make a fallback HTML pro swf, or otherwise a fallback SWF pro HTML.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.