Extract a WebcastPushFrame from a raw byte payload. This method will parse the payload and return a WebcastPushFrame object. This method is useful for extracting push frames from a WebSocket connection.
Extract a WebcastPushFrame from a raw byte payload. This method will parse the payload and return a WebcastPushFrame object. This method is useful for extracting push frames from a WebSocket connection.
Signature
Section titled “Signature”def extract_webcast_push_frame( data: bytes, logger: logging.Logger = TikTokLiveLogHandler.get_logger(),) -> WebcastPushFrameParameters
Section titled “Parameters”data(bytes) — Raw byte payload to extract fromlogger(logging.Logger, defaultTikTokLiveLogHandler.get_logger()) — Logger to use for logging
Returns
Section titled “Returns”WebcastPushFrame — WebcastPushFrame The extracted push frame
Import
Section titled “Import”from TikTokLive.client.ws.ws_utils import extract_webcast_push_frame