$darkmode
libgpac
Documentation of the core library of GPAC
python.libgpac.libgpac.FilterTask Class Reference

Task object for user callbacks from libgpac scheduler. More...

Public Member Functions

def __init__ (self, name)
 constructor for tasks More...
 
def execute (self)
 task execution function More...
 

Data Fields

 name
 Task name. More...
 
 session
 Filter session. More...
 

Detailed Description

Task object for user callbacks from libgpac scheduler.

Constructor & Destructor Documentation

◆ __init__()

def python.libgpac.libgpac.FilterTask.__init__ (   self,
  name 
)

constructor for tasks

Parameters
namename of the task (used for logging)

Member Function Documentation

◆ execute()

def python.libgpac.libgpac.FilterTask.execute (   self)

task execution function

Returns
-1 or less to remove the task from the scheduler, 0 or more to indicate the number of milliseconds to wait before calling the task again

Field Documentation

◆ name

python.libgpac.libgpac.FilterTask.name

Task name.

◆ session

python.libgpac.libgpac.FilterTask.session

Filter session.