video¶
This page describes video module which can be imported as vlivepy.video
getInkeyData()¶
-
vlivepy.video.getInkeyData(video_seq: Union[str, int], session: Optional[vlivepy.session.UserSession] = None, silent: bool = False) → Optional[dict][source]¶ Get InKey data of current session and video.
- Parameters
video_seq (
str) – Unique seq id of the video post to load data.session (
vlivepy.UserSession, optional) – Session for loading data with permission, defaults to None.silent (
bool, optional) – Return None instead of raising exception, defaults to False.
- Returns
dict. Parsed json data
getLivePlayInfo()¶
-
vlivepy.video.getLivePlayInfo(video_seq: Union[str, int], session: Optional[vlivepy.session.UserSession] = None, vpdid2: Optional[str] = None, silent: bool = False) → Optional[dict][source]¶ Get detailed play info of live.
- Parameters
video_seq (
str) – Unique seq id of the video post to load data.session (
vlivepy.UserSession, optional) – Session for loading data with permission, defaults to None.vpdid2 (
str, optional) – User vpdid2 data, defaults to None. It can be automatically generated bysession.silent (
bool, optional) – Return None instead of raising exception, defaults to False.
- Returns
dict. Parsed json data
getLiveStatus()¶
-
vlivepy.video.getLiveStatus(video_seq: Union[str, int], silent: bool = False) → Optional[dict][source]¶ Get simplified status of live.
- Parameters
video_seq (
str) – Unique seq id of the video post to load data.silent (
bool, optional) – Return None instead of raising exception, defaults to False.
- Returns
dict. Parsed json data
getOfficialVideoData()¶
-
vlivepy.video.getOfficialVideoData(video_seq: Union[str, int], session: Optional[vlivepy.session.UserSession] = None, silent: bool = False) → Optional[dict][source]¶ Video utility for parsing VOD id from official video post data. This internally uses
getOfficialVideoPost()function and parse VOD id from it.- Parameters
video_seq (
str) – Unique seq id of the video post to load data.session (
vlivepy.UserSession, optional) – Session for loading data, defaults to None.silent (
bool, optional) – Return None instead of raising exception, defaults to False.
- Returns
dict. Parsed json data
getOfficialVideoPost()¶
-
vlivepy.video.getOfficialVideoPost(video_seq: Union[str, int], session: Optional[vlivepy.session.UserSession] = None, silent: bool = False) → Optional[dict][source]¶ Get detailed official video post data.
- Parameters
video_seq (
str) – Unique seq id of the video post to load data.session (
vlivepy.UserSession, optional) – Session for loading data with permission, defaults to None.silent (
bool, optional) – Return None instead of raising exception, defaults to False.
- Returns
dict. Parsed json data
getVodId()¶
-
vlivepy.video.getVodId(video_seq: Union[str, int], silent: bool = False) → Optional[str][source]¶ Video utility for parsing VOD id from official video post data. This internally uses
getOfficialVideoPost()function and parse VOD id from it.- Parameters
video_seq (
str) – Unique seq id of the video post to load data.silent (
bool, optional) – Return None instead of raising exception, defaults to False.
- Returns
str. Parsed VOD id
getVodPlayInfo()¶
-
vlivepy.video.getVodPlayInfo(video_seq: Union[str, int], vod_id: Optional[str] = None, session: Optional[vlivepy.session.UserSession] = None, silent: bool = False) → Optional[dict][source]¶ Get detailed play info of VOD.
- Parameters
video_seq (
str) – Unique seq id of the video post to load data.vod_id (
str, optional) – Unique id of the VOD to load data, defaults to None. It can be automatically generated with func:getVodId.session (
vlivepy.UserSession, optional) – Session for loading data with permission, defaults to None.silent (
bool, optional) – Return None instead of raising exception, defaults to False.
- Returns
dict. Parsed json data
getVpdid2()¶
-
vlivepy.video.getVpdid2(session: vlivepy.session.UserSession, silent: bool = False) → Optional[str][source]¶ Video utility for get user’s vpdid2 info. This internally uses
getInkeyData()function withvideo_seq="142851"param and parse vpdid2 from it.- Parameters
session (
vlivepy.UserSession) – Session for loading data.silent (
bool, optional) – Return None instead of raising exception, defaults to False.
- Returns
str. Parsed vpdid2.