Hi,
Thank you for your enquiry.
If I am thinking of the same sample publication, there should be a scrub bar underneath the video with a 'blob' that moves along the screen as the video is played.
If this is the case, you could add a small frame to the end of this scrub bar with a Collision Enter trigger applied to detect collision with the blob. Now apply your required action to this trigger.
Another solution would be to edit the script object on the page and build an expression from the 'vidSecs' variable (which determines the length of the video) and the 'vidPosSecs' variable (which determines the current position of the video) which determines if the end of the video has been reached. For example, try editing the moveBlob() function to read the following:
Code:
function moveBlob() {
vidStatus = Video.IsPlaying()
while (vidStatus == true) {
vidPosSecs = Video.GetPosition()
vidPosPix = (vidPosSecs*pixPerSec)
blob.SetXPosition(vidPosPix+frameOffSet)
vidStatus = Video.IsPlaying()
wait(waitTime)
if (vidPosSecs >= vidSecs) {
Message.Show()
}
}
}
This will display an object named 'Message' when the end of the video is reached, but you could apply any action at this point.
I hope this helps. Please do not hesitate to contact me if you have any further queries.
Kind regards,