First post here.
After plenty of reverse engineering and debugging, you can find the total number of slides viewable in a story.
If you are comfortable with a little custom JavaScript coding for a trigger:
var player = GetPlayer();
player.totalViewSlides;
// this return the number you want
player.GetVar("totalViewSlides")
// this returns 0 - don't use
The player runs the player.calculateTotalViewSlides
method which loops through and increments the player.totalViewSlides
variable. As long as the player has time to build, player.totalViewSlides
is calculated and exposed.
You could set a global variable through the Triggers panel / Manage project variable button:
totalNumSlides / number / 0
Then set it with a custom JavaScript trigger:
var player = GetPlayer();
var totalNumSlides = player.totalViewSlides;
player.SetVar("totalNumSlides", totalNumSlides);
Now you can use totalNumSlides as needed.
Hopefully this helps someone.