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

Launch and stop browser-hosted media for a Tk panel. More...

Inherits Protocol.

Public Member Functions

bool play (self, str target, *str display, tuple[int, int]|None window_position=None, tuple[int, int]|None window_size=None)
 Open a media target on the requested display.
 
None stop (self)
 Stop the browser instance owned by this player.
 

Detailed Description

Launch and stop browser-hosted media for a Tk panel.

Member Function Documentation

◆ play()

bool frontends.tk.media.spotify_services_if.BrowserMediaPlayerIf.play (   self,
str  target,
*str  display,
tuple[int, int] | None   window_position = None,
tuple[int, int] | None   window_size = None 
)

Open a media target on the requested display.

Parameters
targetMedia URL or target understood by the browser-backed player.
displayX11 display on which the browser should be launched.
window_positionOptional x/y position for the browser window.
window_sizeOptional width/height for the browser window.
Returns
True when the media target was opened successfully, otherwise False.

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