Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blocks:app-note:sync-task [2021-08-05 12:55]
mattias [Synchronize task progress to the progress of a video]
blocks:app-note:sync-task [2024-01-16 08:56] (current)
admin Added note about "Playback Controls"
Line 1: Line 1:
-=====Synchronize task  to the progress of a video=====+=====Synchronize task to the progress of a video=====
  
 ====Introduction==== ====Introduction====
Line 35: Line 35:
 Line 1:  We start with some housekeeping by resetting the realm variable textBulletToShow to 0. The statement shown on screen uses an opacity behaviour that reveals the quote when the value of the textBulletToShow matches the behaviours condition.  Line 1:  We start with some housekeeping by resetting the realm variable textBulletToShow to 0. The statement shown on screen uses an opacity behaviour that reveals the quote when the value of the textBulletToShow matches the behaviours condition. 
  
-Line 2: Assigns the Block we want on the spot. +Line 2: Assigns the Block we want on the spot.
  
 Line 3: Sets the display spots playing property to true. This is done by default when loading the block the first time. It is done by the synchronizer. This line set the video to play again after it finishes playing and we want it to loop. More on this later. Line 3: Sets the display spots playing property to true. This is done by default when loading the block the first time. It is done by the synchronizer. This line set the video to play again after it finishes playing and we want it to loop. More on this later.
Line 90: Line 90:
 </code>  </code> 
  
-This is the only css-class. +This is the only css-class used in the project.
  
 +:!: **NOTE**: This CSS work-around isn't needed with later versions of Blocks. Just set "Playback Controls" to "None" for the video.