code/media_lib.py
def draw(self):
		""" draw the video
		- screen: the pygame screen object
		"""
		if self.play:
			ret, frame = self.cap.read()
			self.frame_counter += 1

			if(self.test_for_last_frame()):
				if self.repeat:
					self.frame_counter = 0
					self.cap.set(cv2.CAP_PROP_POS_FRAMES, 0)
				else:
					self.play = False
			
			frame = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR)
			frame = frame.swapaxes(0, 1)
			pygame.surfarray.blit_array(gl.screen, frame)
 draw the video
		- screen: the pygame screen object
		
draw the video
screen: the pygame screen object
draw the video screen : the pygame screen object
def draw(self):
		if self.play:
			ret, frame = self.cap.read()
			self.frame_counter += 1
			if(self.test_for_last_frame()):
				if self.repeat:
					self.frame_counter = 0
					self.cap.set(cv2.CAP_PROP_POS_FRAMES, 0)
				else:
					self.play = False
			frame = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR)
			frame = frame.swapaxes(0, 1)
			pygame.surfarray.blit_array(gl.screen, frame)
def draw ( self ) : if self . play : ret , frame = self . cap . read ( ) self . frame_counter += 1 if ( self . test_for_last_frame ( ) ) : if self . repeat : self . frame_counter = 0 self . cap . set ( cv2 . CAP_PROP_POS_FRAMES , 0 ) else : self . play = False frame = cv2 . cvtColor ( frame , cv2 . COLOR_RGB2BGR ) frame = frame . swapaxes ( 0 , 1 ) pygame . surfarray . blit_array ( gl . screen , frame )
draw the video
 screen: the pygame screen object
draw the video screen : the pygame screen object
""" draw the video
		- screen: the pygame screen object
		"""
self