TikTok route to record the livestream video in real-time
Signature
Section titled “Signature”class FetchVideoDataRoute(ClientRoute)
FetchVideoDataRoute(web: TikTokHTTPClient)Instantiate the video fetch route
Parameters
Section titled “Parameters”web(TikTokHTTPClient) — The web client used to initialize the route
Attributes
Section titled “Attributes”ffmpeg(property,Optional[FFmpeg]) — Return a copy of the FFmpeg class, which is only defined while recordingis_recording(property,bool) — Check if the route is currently in use to record the Liveoutput_filename(property,Optional[str]) — Get the output filename
Methods
Section titled “Methods”Alias for calling the class itself, starts a recording
def start(**kwargs) -> NoneParameters
Section titled “Parameters”**kwargs— Kwargs to pass to__call__
Returns
Section titled “Returns”None — None
Stop a livestream recording if it is ongoing
def stop() -> NoneReturns
Section titled “Returns”None — None
Import
Section titled “Import”from TikTokLive.client.web.routes import FetchVideoDataRoute