SWFObject / load smil file

Why is this not working?

<div class="videocontainer" id='mediaspace-55'></div>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js?ver=3.0.1'></script>
    <script type='text/javascript'><!--
            var flashvars = {
              provider: "highwinds",
              file: "http://hwcdn.net/XXXXX/fms/pathtofile.smil",
              image: "test.jpg"
            };
            var params = {
              allowfullscreen: "true",
              allowscriptaccess: "always"
            };
            var attributes = {
              id: "mediaspace-55",
              name: "mediaspace-55"
            };
            swfobject.embedSWF("player.swf", "mpl55", "710", "420", "9.0.0","expressinstall.swf", flashvars, params, attributes);

//            playerReady('mediaspace-55', 'additional_variable');
    //-->
</script>

I checked that all related files exist.

I spent days working on this simple javascript functionality (I'm not a javascript programmer), and now when I want to complete the project, it stops working .: - (

+3
source share
1 answer

The API seems to have changed, try the following:

swfobject.embedSWF("http://mydomain.com/player/player.swf", "mpl55", "710", "420", "9.0.0", "expressInstall.swf");

Documentation here: http://code.google.com/p/swfobject/wiki/documentation

+2
source

Source: https://habr.com/ru/post/1775001/


All Articles