Storyline 360 custom volume control

Today I was asked by my colleague at work to help her out with fixing problem with custom volume control. She was using StoryLine 2 solution from this page but on Storyline 360. Following is the script from the SL2 solution:

var player = GetPlayer();
var volumeCount = player.GetVar('volumeCount')
Audio.setMasterVolume(volumeCount);

This worked on the courses exported from StoryLine 2 as the Audio object indeed has the setMasterVolume which is not true for StoryLine 360 courses. I’ve searched internet and failed to find anything about volume controls on SL360.
My colleague told me that SL has built in volume controls which work. I’ve enabled it and checked what has appeared in code (player-volume and control-volume-slider), then searched for it in output files. In the minified code I’ve found the currentVolume function which was something I hoped to get access to.

I’ve noticed that this method is wrapped with the define("helpers/appState"... so I’ve tried to retrieve it with require and succeeded


var appState = require("helpers/appState");
appState.currentVolume();//get
appState.currentVolume(0.5);//set

With this finding in hand it was now simple to modify the original code to work in SL360:

var player = GetPlayer();
var volumeCount = player.GetVar("volumeCount");
var appState = require("helpers/appState");
appState.currentVolume(volumeCount);

The SL2 example was using volumeCount property to make a division by 10 we can skip it and if we set up slider to be from start: 0 to end: 1 with step: 0.1 we can modify the script even further:

var player = GetPlayer();
var value = player.GetVar("volumeSlider");
var appState = require("helpers/appState");
appState.currentVolume(value);

Note: I have no prior knowledge of Storyline and I kind of hacked this solution, so if there is an “official” way to setup volume please let me know:)

EDIT:
I think better option for changing the volume will be to use the onVolumeChanged(value) callback method as it also updates the volumeToggle state.

If you want to have mute button functionality then use onToggleVolume() method.

var player = GetPlayer();
var value = player.GetVar("volumeSlider");
var appState = require("helpers/appState");
appState.onVolumeChanged(value);

To toggle audio:

var appState = require("helpers/appState");
    appState.onToggleVolume();//mute/unmute

to test current state of the audio

var appState = require("helpers/appState");
if(appState.volumeToggle) {
// audio muted
} else {
// audio unmuted
}

Acer Aspire 7535, power on but not booting

I had for some time problem with my Acer Aspire 7535 laptop that it wasn’t turning on. The power light was on, the fan was working but nothing else. It was helping to turn off-turn off cycle and usually after 10-15mins it was starting to boot. Recently it “died” completely and as I needed laptop ASAP I’ve bought another one and putting faulty aside. After holiday my wife rushed me to do something with it “fix it or bin it”, so I’ve searched and nothing worked, then I’ve recalled that after successful boot the laptop had time/date not updated which gave me an idea to replace bios battery. I’ve looked at the acer laptop manual, I’ve found how to disassemble it and replaced flat battery. After doing this laptop started to work again:)

No beep, power-on indicator turns on and LCD is blank. – check bios battery 🙂

HOW TO SAVE VIDEO MESSAGE – Skype Community

HOW TO SAVE VIDEO MESSAGE – Skype Community.

Download and Run SQLite Database Browser [LMG or any capable of opening SQLite database]
Open the main.db file with it [LMG from the following location]
C:\Users\SYSTEM USER\AppData\Roaming\Skype\SKYPE USER\main.db
Click Browse Data >> Change the drop down option for the Table: to VideoMessages.
Under vod_path column, you will see the link. [LMG the link will be available on the video message that was opened on current computer]
Copy / Paste this link to your browsers address bar.