Timeline.add_track#

Timeline.add_track(track_type: TrackType, track_options: OptionalSubTrackType | Dict) bool[source]#

Adds track of trackType (“video”, “subtitle”, “audio”). Second argument optionalSubTrackType is required for “audio”

Parameters:
  • track_type (TrackType) – track type

  • track_options (OptionalSubTrackType|Dict) – Second argument is required for “audio” ,it can be newTrackOptions dict or OptionalSubTrackType, newTrackOptions dict = {‘audioType’: same as subTrackType above, ‘index’: 1 <= index <= GetTrackCount(trackType)}

Returns:

True if successful, False otherwise.

Return type:

bool