Is there any way to add a close button to an embedded youtube video. I have added a hide button but that will just play the audio in the background.
Can you confirm that you are still using the older version CP9? Full version number is under Help, About Captivate. If it is CP2019 (many users are confused, because that is version 11 or 11.5), how did you insert the video?
I am in version 9.0.2
I inserted it by using the iframe code from youtube.
Cannot test, because I don't have CP8 anymore. I suppose it will play independently from Captivate, you would need JS to have the button appear after the event video has played.
Ok Is there a built in function in 19. I have that on my other computer
Not really, but the easy way is to link to the Youtube by inserting it as a slide video. Since it will be synched with Captivate you ccan add a Next button near the end of the video
Ok So I solved it by importing the video from my desktop.
The I added a button and the script "document.getElementsByTagName("video").pause();"
The problem now is that when I trigger the video again from the menu the button containing the script are hidden. I can still click where I know the button are located and the video are closing, but the button is hidden. Whats up with that??
I have tried grouping the button and the video and have them seperated. Same problem
Is the button on top of the video on the screen? If so, then it will likely be sitting UNDERNEATH the video when viewed in the browser. The video will be playing inside a frameset and the default behaviour is for framesets to be at the top layer level at runtime.
You can change this behaviour by modifying the Captivate.ini file found at C:\Program Files\Adobe\Adobe Captivate 2019 x64. You need to change the UseWidget7 parameter value to 1 instead of the default 0 value.
The button is outside the video. But I will test it any way. Will it affect anything else?
Changed the file and same problem.
IT works fine when I preview in captivate but not when I preview in F11
F11 is the only Preview method for non-responsive projects which uses HTML temporary output, the other Preview methods are irrelevant if you want to publish to HTML.
Problem solved in version CP2019.
Moderator note: corrected version number, which is 11.5, also indicated as CP2019.