Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.roku.media_player Namespace Reference

Classes

class  RokuMediaPlayer
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary ATTRS_TO_LAUNCH_PARAMS
 
dictionary ATTRS_TO_PLAY_ON_ROKU_AUDIO_PARAMS
 
dictionary ATTRS_TO_PLAY_ON_ROKU_PARAMS
 
dictionary STREAM_FORMAT_TO_MEDIA_TYPE
 
 VolDictType
 

Detailed Description

Support for the Roku media player.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.roku.media_player.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up the Roku config entry.

Definition at line 85 of file media_player.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.roku.media_player._LOGGER = logging.getLogger(__name__)
private

Definition at line 48 of file media_player.py.

◆ ATTRS_TO_LAUNCH_PARAMS

dictionary homeassistant.components.roku.media_player.ATTRS_TO_LAUNCH_PARAMS
Initial value:
1 = {
2  ATTR_CONTENT_ID: "contentID",
3  ATTR_MEDIA_TYPE: "mediaType",
4 }

Definition at line 64 of file media_player.py.

◆ ATTRS_TO_PLAY_ON_ROKU_AUDIO_PARAMS

dictionary homeassistant.components.roku.media_player.ATTRS_TO_PLAY_ON_ROKU_AUDIO_PARAMS
Initial value:
1 = {
2  ATTR_NAME: "songName",
3  ATTR_FORMAT: "songFormat",
4  ATTR_ARTIST_NAME: "artistName",
5  ATTR_THUMBNAIL: "albumArtUrl",
6 }

Definition at line 75 of file media_player.py.

◆ ATTRS_TO_PLAY_ON_ROKU_PARAMS

dictionary homeassistant.components.roku.media_player.ATTRS_TO_PLAY_ON_ROKU_PARAMS
Initial value:
1 = {
2  ATTR_NAME: "videoName",
3  ATTR_FORMAT: "videoFormat",
4  ATTR_THUMBNAIL: "k",
5 }

Definition at line 69 of file media_player.py.

◆ STREAM_FORMAT_TO_MEDIA_TYPE

dictionary homeassistant.components.roku.media_player.STREAM_FORMAT_TO_MEDIA_TYPE
Initial value:
1 = {
2  "dash": MediaType.VIDEO,
3  "hls": MediaType.VIDEO,
4  "ism": MediaType.VIDEO,
5  "m4a": MediaType.MUSIC,
6  "m4v": MediaType.VIDEO,
7  "mka": MediaType.MUSIC,
8  "mkv": MediaType.VIDEO,
9  "mks": MediaType.VIDEO,
10  "mp3": MediaType.MUSIC,
11  "mp4": MediaType.VIDEO,
12 }

Definition at line 51 of file media_player.py.

◆ VolDictType

homeassistant.components.roku.media_player.VolDictType

Definition at line 82 of file media_player.py.