OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
audio.streaming_audio_player_if.StreamingAudioPlayerIf Class Reference

Interface for playing a remote audio stream. More...

Public Member Functions

bool is_playing (self)
 Return whether a stream is currently playing.
None play (self, str stream_url)
 Begin playback of a remote audio stream.
None stop (self)
 Stop current stream playback, if any.

Detailed Description

Interface for playing a remote audio stream.

Member Function Documentation

◆ is_playing()

bool audio.streaming_audio_player_if.StreamingAudioPlayerIf.is_playing ( self)

Return whether a stream is currently playing.

Returns
True when a stream is playing, otherwise False.

◆ play()

None audio.streaming_audio_player_if.StreamingAudioPlayerIf.play ( self,
str stream_url )

Begin playback of a remote audio stream.

Any currently playing stream may be replaced by the implementation.

Parameters
stream_urlURL of the stream to begin playing.

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