Skip to main content
Participant
October 25, 2012
Question

Play/Pause status in Captivate

  • October 25, 2012
  • 1 reply
  • 969 views

Hello everyone!

I'm new to Captivate software and looking for some help with it. What am I doing is Play/Pause widget in Flash and everything works fine until there is Pause After time setting on buttons or slides pause at the end of them. I spent lots of time trying to find out how to receive notification about changing play/pause status of the captivate course. Now I'm checking this status with

playing = m_VariableHandle.rdcmndPause == 0;

//m_VariableHandle is movieHandle.getMovieProps().variablesHandle


code, but it only works if user clicks on playbar buttons or on my own button. But if slide pauses at the end or some button causes it to stop, then rdcmndPause is still 0.

So is there any way to check if movie is playing at any point of time? Or am I missing something?

Thanks in advance!

This topic has been closed for replies.

1 reply

Lilybiri
Legend
October 25, 2012

Hi,

I do not know anything about Flash programming, but in advanced actions in Captivate you need to set the variable rdcmndResume to 1 to release the pause... Both variables play together all the time, used them to create toggle buttons in Captivate. For users of Captivate 6: variables changed to cpCmndPause and cpCmndResume.

Lilybiri

boganovAuthor
Participant
October 25, 2012

Thanks for your answer, Lilybiri!

I think I've read almost all your forum and blog posts

Yea, I'm setting rdcmndResume to 1 and it resumes playing, but what am I looking for is how to know when captivate itself stopped playing and in this case rdcmndPause and rdcmndResume are both equal to 0 and I can't set my widget to appropriate state. Is it possible? Maybe there is another variable that shows playing status? Because playbar button changes its state...

boganovAuthor
Participant
October 25, 2012

Looks like I've found the the solution myself (at least a workaround). In my widget I'm listening to enterframe event and checking if rdinfoCurrentFrame is changed. If not the movie is paused.