Coronavirus (Covid-19): Latest updates and information
Skip to main content Skip to navigation

Introducing video in JS-EDEN

The following script illustrates a simple use of video:

	vid_url = "http://www.downvids.net/downloads/c2783dd579096f559b6c9d530953c79e/";
	vid = Video("vid");
	picture is [vid];

	##Stop to complete an exercise 60 seconds into the video.
	exercisePoints = [60];
	exercisesCompleted = [false];
	exerciseNumber is indexOf(int(vid_time), exercisePoints);
	vid_controls is exerciseNumber == 0 || exercisesCompleted[exerciseNumber];
	vid_paused is vid_controls == false;