OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
video.music_video_controller.MusicVideoController Class Reference

Coordinate Spotify playback with music-video playback. More...

Public Member Functions

bool current_track_has_video (self)
 Find and cache a video match for the current Spotify track.
bool watch_current_track (self, *, Callable[[], bool] is_current=lambda:True, Callable[[], bool] restore_allowed=lambda:True)
 Find and play a video for the current Spotify track.
None stop_video (self)
 Stop video playback without changing Spotify playback.
None return_to_spotify (self, *, Callable[[], bool] is_current=lambda:True)
 Stop the video and restore the saved Spotify playback state.
bool is_video_active (self)
 Return whether a music video is currently active.

Detailed Description

Coordinate Spotify playback with music-video playback.

Member Function Documentation

◆ current_track_has_video()

bool video.music_video_controller.MusicVideoController.current_track_has_video ( self)

Find and cache a video match for the current Spotify track.

Returns
True when the current track has a matching video.

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