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 = "";
	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;