Flash in fullscreen mode works in <embed>, but not work within tag

后端 未结 2 596
故里飘歌
故里飘歌 2021-01-25 13:59

I have this code

< a href=\"flash.swf\" class=\"bump\">flash

and it display

2条回答
  •  粉色の甜心
    2021-01-25 14:59

    The issue you're having is actually coming from Mootools. Mootools has an Flash embed class called Swiff, which is what BumpBox uses when you pass an SWF in your link.

    Unfortunately, I think you're either going to have to hack into BumpBox or Mootools to get full screen permission working.

    If you look into the expanded version of BumpBox 2.0.1, you will see where Swiff is instantiated, around line 372:

    var obj = new Swiff(content, {
        id: 'video',
        width: maxw-40,
        height: maxh-40,
        container: div
    })
    

    You may be able to pass in the additional parameter you require here, which would look something like this:

    var obj = new Swiff(content, {
        id: 'video',
        width: maxw-40,
        height: maxh-40,
        container: div,
        params: {
            allowFullScreen: true
        },
    })
    

    If that fails you will have to make the adjustment to the Swiff class itself. Open up Mootools and search for Swiff=new Class. That will lead you to the code that creates the Flash object. Finding the params list should be easy from there, it looks like:

    params:{quality:"high",allowScriptAccess:"always",wMode:"window",swLiveConnect:true}
    

    and you would just need to add the fullscreen permission:

    params:{allowFullScreen:true,quality:"high",allowScriptAccess:"always",wMode:"window",swLiveConnect:true}
    

提交回复
热议问题