code/media_lib.py
def start(self, forwards=True, repeat=False):
		"""	start video from the beginning
		- forwards=True: set False, if you want play it backwards
		- repeat=False: set True, to endlessly repeat the video
			(can be stopped with stop())
		"""
		if self.loaded == False:		# interrupt when images are not loaded
			return

		self.play = True			# start video
		self. interrupt = False		# un-pause video, just in case
		self.forwards = forwards	# set params
		self.repeat = repeat
		
		if forwards:				# set start frame and start audio (when exiting and not muted)
			self.frame = 0
		else:
			self.frame = self.n_frames - 1
	start video from the beginning
		- forwards=True: set False, if you want play it backwards
		- repeat=False: set True, to endlessly repeat the video
			(can be stopped with stop())
		
start video from the beginning
forwards=True: set False, if you want play it backwards
repeat=False: set True, to endlessly repeat the video
(can be stopped with stop())
start video from the beginning forwards = True : set False if you want play it backwards repeat = False : set True to endlessly repeat the video ( can be stopped with stop () )
def start(self, forwards=True, repeat=False):
		if self.loaded == False:		
			return
		self.play = True			
		self. interrupt = False		
		self.forwards = forwards	
		self.repeat = repeat
		if forwards:				
			self.frame = 0
		else:
			self.frame = self.n_frames - 1
def start ( self , forwards = True , repeat = False ) : if self . loaded == False : return self . play = True self . interrupt = False self . forwards = forwards self . repeat = repeat if forwards : self . frame = 0 else : self . frame = self . n_frames - 1
start video from the beginning
 forwards=True: set False, if you want play it backwards
 repeat=False: set True, to endlessly repeat the video
(can be stopped with stop())
start video from the beginning forwards = True : set False if you want play it backwards repeat = False : set True to endlessly repeat the video ( can be stopped with stop () )
"""	start video from the beginning
		- forwards=True: set False, if you want play it backwards
		- repeat=False: set True, to endlessly repeat the video
			(can be stopped with stop())
		""" # interrupt when images are not loaded # start video # un-pause video, just in case # set params # set start frame and start audio (when exiting and not muted)
self
forwards
repeat