Forum Discussion
ParamjotSaini
7 years agoCommunity Member
Is there any GetPlayer() in Html5
How can i use GetPlayer() in storyline360 as i tried to call the function in my code and it says GetPlayer() not defined.
And anyway to read builtin variables
i am using modern player for html5 ...
MathNotermans-9
4 years agoCommunity Member
Allthough i dont have Storyline3, only 360 i do think there is no delay needed.
I think in the original poster code was just an error calling getPlayer instead of GetPlayer.
All Storyline internal functions have to be strictly coded as is.
This code works fine in 360 and i suppose in 3 too.let player = GetPlayer();let testVar = player.GetVar("test");console.log("value: "+testVar);Offcourse you need a custom variable called test.
If you need a project variable available in your Javascript, you use a trigger to set a custom variable to the project variables value.
Like shown here.
Related Content
- 10 years ago
- 2 years ago
- 2 years ago