Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

usefullscreen not working

14 replies [Last post]

I have an flv file running, and the fullscreen button appears, but clicking it does nothing. I tried setting the "usefullscreen" variable to "true," but it didn't help. Any ideas? Thanks.

you must (also) set the parameter allowfullscreen="true"

like this with embedcode:

<embed
src="http://www.jeroenwijering.com/embed/player.swf"
width="400"
height="250"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="width=400&height=250&file=/upload/player.flv"
/>

and like this with swfobject (recommended)

<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script>

<div id="player">This text will be replaced</div>

<script type="text/javascript">
var so = new SWFObject('http://www.jeroenwijering.com/embed/player.swf','mpl','400','250','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('width','400');
so.addVariable('height','250');
so.addVariable('file','/upload/player.flv');
so.write('player');
</script>

both types of code (dont mix them !) from the wizard page - http://www.jeroenwijering.com/?page=wizard

okay...I am using a swfobject, and tried setting the param there, but I did it wrong, thanks.

Andersen,

I'm still having trouble with this--I'm pretty new to javascript. I am using the swfobject dynamically, but using a different script than the one shown above (someone helped me develop this one, and I get most but not all of it), so I'm not exactly sure how to add the "allowfullscreen" parameter. Below is the page I'm using the flv player on. The script is right in the header, so you can see how I have it set up. Can you help me figure out how to add that parameter? Thanks.

www.jonniedredge.com/video.html

You can see that I tried adding it as a flashvar, which obviously doesn't work.

var params = {};
<strong>params.allowfullscreen = true;</strong>
var attributes = {};

New code in bold.

Thanks, I tried adding that, but there was no change. The button appears, but I click it and nothing happens.

Ah... one more thing missing, I just didn't scroll over far enough to see this.swfobject.embedSWF("http://www.jeroenwijering.com/embed/player.swf", where, w, h, "9.0.0", false, flashvars, <strong>params</strong>, attributes); but why would you have var params = {}; and then set it to false?

Oh, of course! Thanks. Like I said before, I'm pretty new to javascript, but these posts have really helped me to understand it better (at least in this context). Everything works perfectly now, thanks again.

I'm not sure about why its set to false, that was in the script as it was given to me (by someone on another forum).

Yeah, you're welcome. Enjoy it!

Adding back ability to select:
- ShowFullscreen button - Yes/No
- ShowDigits button - Yes/No
- ShowDownload button - Yes/No
- UseFullscreen button - Yes/No

The removal of these features has broken AllVideos Reloaded for Joomla.
It may be easier modify the player than delete features users want and need from AVR.
AVR was designed to make this inserting Flash video easy for everyone.
And not require users to be programmers.
Requiring users to learn Flash to remove a simple button is ridiculous.

Looks like adding IF statements in Controlbar.as should do it:
Around line 275 in the SVN as today (2009-02-19)
JW_Player_SVN\trunk\as3\com\jeroenwijering\plugins\Controlbar.as

    /** Process resizing requests **/
    private function resizeHandler(evt:ControllerEvent=null):void {
        var wid:Number = config['width'];
        clip.x = config['x'];
        clip.y = config['y'];
        clip.visible = config['visible'];
        if(config['position'] == 'over' || view.config['fullscreen'] == true) {
            clip.x = config['x'] + config['margin'];
            clip.y = config['y'] + config['height'] - config['margin'] - config['size'];
            wid = config['width'] - 2*config['margin'];
            clip.back.alpha = 0.75;
        } else if(config['position'] != 'none') {
            clip.back.alpha = 1;
        }
        try {
            clip.fullscreenButton.visible = false;
            clip.normalscreenButton.visible = false;
            if(clip.stage['displayState']) {
                if(view.config['fullscreen']) {
                    clip.fullscreenButton.visible = false;
                    clip.normalscreenButton.visible = true;
                } else {
                    clip.fullscreenButton.visible = true;
                    clip.normalscreenButton.visible = false;
                }
            }
        } catch (err:Error) {}
        stacker.rearrange(wid);
        stateHandler();
        fixTime();
        Mouse.show();
    };

Any suggestions on a better way of doing this are welcome.

After I get this working I will make available for download a version of the SVN 4.4.xxx player with these features re-enabled.

Maybe we should call it the
JW FLV Player - AVR Version - the User-Friendly Backwards-Compatible Will-not-break-every-users-existing-website-embedded-Flash-videos Version.

@kenmcd,

Was it really necessary to spam all of these threads.

On most forums, such cross-posting would get you banned forever.
  

@lefTy

My apologies.
I am trying to work around the limitations of this so-called forum.
Works more like a simple comment system.

It was the only way I could figure to increase the likelihood that anyone in these multiple threads would actually see the post.

Since there is no email notification in this "forum" it is unlikely the many other users who are all trying to deal with these missing features will ever see these follow-up posts. I posted in multiple threads in the hope that some of them have manually decided come back and check an old post.
(users are not going to subscribe to multiple RSS feeds.)

I posted in the threads with the keyphrases of the missing variables
- showfullscreen
- showdigits
- showdownload
- usefullscreen

The limited search function may also help a few people find these posts.

Why not have a real forum here?
I have been reading posts and threads for hours and days trying to find missing parameters and other information.
A normal forum "pin this post" feature could save many users many hours.

I do appreciate that you are here often, and because of that you are one of the very few who will ever see or even notice the multiple posts.

As a forum admin myself I appreciate the cross-post issue.
Just trying to work around the rather severe limitations of this bulletin board.

My frustration got the best of me.
My apologies.

Regards,

KM

I appreciate where you're coming from and your good intentions.

It may not be the best forum, but it's all we users have, so we have to make the best of it.

The search works decently, but the best way to get help is to ask, with lots of details. I'm familiar with most of the topics, so I always try to steer users to relevant threads or sources off of the Fourm.

Anyway, thanks for your contribution. I know it must be frustrating to want some small change that requires a Flash compiler and ActionScript programming skills. Sometimes, I'm glad that I don't do Flash.

I've spoken to Ethan Feldman on the development team who indicated there was probably no intention of addressing this in 4x. Whether that means 5x might support this, is unclear.

(apologies for the cross-posting of this, lefTy)

Yeah, that's been kind of obvious for more than a year now.

First Post was Dec. 2007!