You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Problem with remembering volume Created Apr 21, 2009

This thread is solved

Views: 5208     Replies: 11     Last reply Nov 21, 2011  
You must login first before you can use this feature

ericsean

Posts: 3

Registered:
Apr 21, 2009

Problem with remembering volume

Posted: Apr 21, 2009

Hi,

I am using GPL Flowplayer 3.1.0 with the following plugins loaded:

flowplayer-3.1.0.swf
flowplayer.content-3.1.0.swf
flowplayer.controls-3.1.0.swf
flowplayer.pseudostreaming-3.1.2.swf

I assume flowplayer is storing the last set volume in a flash cookie. My problem is as follows:

- when using volume slider, if final value is zero, volume is not saved correctly; when player is reloaded, default player value is used

Note that using the mute button works correctly - i.e. the mute state is remembered when the player is reloaded.

Thanks for an awesome player, the API and documentation especially are excellent.

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» Problem with remembering volume

Posted: Apr 21, 2009

Reply to: Problem with remembering volume, from ericsean
How about storing the volume in a global variable? Untested:


// intial volume
var vol = 80;

flowplayer("container", "flowplayer.swf", {
  onLoad: function () {
    this.setVolume(vol);
  },
  onUnload: function () {
    vol = this.getVolume();
  }
});

ericsean

Posts: 3

Registered:
Apr 21, 2009

» » Problem with remembering volume

Posted: Apr 21, 2009

Reply to: » Problem with remembering volume, from blacktrash
The issue is more that the Flowplayer already has a method of storing the volume, it just has a slight bug (i think).

Thanks for your reply though.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » Problem with remembering volume

Posted: Apr 22, 2009

Reply to: » » Problem with remembering volume, from ericsean
Yes there really is a bug here. Will fix for the next update.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » » Problem with remembering volume

Posted: May 13, 2009

Reply to: » » » Problem with remembering volume, from Anssi
This is now fixed and the fix will be out with 3.1.1 next week.

ericsean

Posts: 3

Registered:
Apr 21, 2009

» » » » » Problem with remembering volume

Posted: May 13, 2009

Reply to: » » » » Problem with remembering volume, from Anssi
Excellent, thanks very much!

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » » » Problem with remembering volume

Posted: May 20, 2009

Reply to: » » » » Problem with remembering volume, from Anssi
Version 3.1.1 is out now and has this fixed.