code: def set_videoframerender_callback(self, func):
  		
  
  		# Check if renderfunc is indeed a function
  		if not func is None and not callable(func):
  			raise TypeError("The object passed for videorenderfunc is not a function")
  		self.__videorenderfunc = func
docs: Sets the function to call when a new frame is available. 
  		This function is passed the frame (in the form of a numpy.ndarray) and
  		should take care of the rendering. 
  
  		Parameters
  		----------
  		func : callable
  			The function to pass the new frame to once it becomes available.