OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
frontends.tk.media.spotify_services_if.MusicVideoRequestHandlerIf Class Reference

Coordinate the optional music-video transition from Spotify. More...

Inherits Protocol.

Public Member Functions

bool current_track_has_video (self)
 Return whether the current track has a matching video.
 
bool watch_current_track (self)
 Start a video for the current track when one can be found.
 
None return_to_spotify (self)
 Stop video playback and restore Spotify playback.
 
bool is_video_active (self)
 Return whether the music-video presentation is active.
 

Detailed Description

Coordinate the optional music-video transition from Spotify.

Member Function Documentation

◆ current_track_has_video()

bool frontends.tk.media.spotify_services_if.MusicVideoRequestHandlerIf.current_track_has_video (   self)

Return whether the current track has a matching video.

Returns
True when a matching video is available, otherwise False.

◆ is_video_active()

bool frontends.tk.media.spotify_services_if.MusicVideoRequestHandlerIf.is_video_active (   self)

Return whether the music-video presentation is active.

Returns
True while the music-video presentation is active, otherwise False.

◆ watch_current_track()

bool frontends.tk.media.spotify_services_if.MusicVideoRequestHandlerIf.watch_current_track (   self)

Start a video for the current track when one can be found.

Returns
True when video playback was started, otherwise False.

The documentation for this class was generated from the following file: