OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
video.music_video_if.MusicVideoIf Class Reference

Search for and present music videos. More...

Inheritance diagram for video.music_video_if.MusicVideoIf:
video.youtube_music_video.YouTubeMusicVideo

Public Member Functions

MusicVideo|None find_video (self, MusicVideoQuery query)
 Find the best matching music video.
bool play_video (self, MusicVideo video, int position_ms=0)
 Present the selected music video.
None stop_video (self)
 Stop the active video presentation.
bool is_video_active (self)
 Return whether video presentation is active.

Detailed Description

Search for and present music videos.

Member Function Documentation

◆ find_video()

MusicVideo | None video.music_video_if.MusicVideoIf.find_video ( self,
MusicVideoQuery query )

Find the best matching music video.

Parameters
queryTrack metadata used to search for a video.
Returns
Best matching video, or None when no match is available.

Reimplemented in video.youtube_music_video.YouTubeMusicVideo.

◆ is_video_active()

bool video.music_video_if.MusicVideoIf.is_video_active ( self)

Return whether video presentation is active.

Returns
True while a video presentation is active.

Reimplemented in video.youtube_music_video.YouTubeMusicVideo.

◆ play_video()

bool video.music_video_if.MusicVideoIf.play_video ( self,
MusicVideo video,
int position_ms = 0 )

Present the selected music video.

Parameters
videoVideo selected for presentation.
position_msInitial playback position in milliseconds.
Returns
True when video playback was started.

Reimplemented in video.youtube_music_video.YouTubeMusicVideo.


The documentation for this class was generated from the following file:
  • controllers/video/music_video_if.py