From 578c512292526a1b83f82a81a5dc4403835fca15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lersveen?= <7195448+lersveen@users.noreply.github.com> Date: Thu, 18 Jan 2024 17:08:43 +0100 Subject: [PATCH] Add NRK TV and NRK Radio to supported apps (#30912) --- source/_integrations/cast.markdown | 66 ++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/source/_integrations/cast.markdown b/source/_integrations/cast.markdown index a49ad572abb..6fe08fdac80 100644 --- a/source/_integrations/cast.markdown +++ b/source/_integrations/cast.markdown @@ -257,6 +257,72 @@ Optional: service: media_player.play_media ``` +### [NRK Radio](https://radio.nrk.no) + +#### Finding Media IDs + +Media ID can be found in the URL, e.g: +- Live channel: , media ID is `p1` +- Podcast: , media ID is `l_8457deb0-4f2c-4ef3-97de-b04f2c6ef314` +- On-demand program: , media ID is `MDUP01004510` + +#### Media parameters + +- `app_name`: `nrkradio` +- `media_id`: NRK Radio media ID + +#### Example + +Example values to cast the item at + +```yaml +'cast_nrkradio_to_chromecast': + alias: "Cast NRK Radio to Chromecast" + sequence: + - target: + entity_id: media_player.chromecast + data: + media_content_type: cast + media_content_id: ' + { + "app_name": "nrkradio", + "media_id": "l_8457deb0-4f2c-4ef3-97de-b04f2c6ef314" + }' + service: media_player.play_media +``` + +### [NRK TV](https://tv.nrk.no) + +#### Finding Media IDs + + - Live programs: ID is in the URL, e.g. for , the media ID is `nrk1` + - On-demand programs: ID is found by clicking share button, e.g. for the share link is `https://tv.nrk.no/se?v=OUHA43000207` and the media ID is `OUHA43000207` + +#### Media parameters + +- `app_name`: `nrktv` +- `media_id`: NRK TV media ID + +#### Example + +Example values to cast the item at + +```yaml +'cast_nrktv_to_chromecast': + alias: "Cast NRK TV to Chromecast" + sequence: + - target: + entity_id: media_player.chromecast + data: + media_content_type: cast + media_content_id: ' + { + "app_name": "nrktv", + "media_id": "OUHA43000207" + }' + service: media_player.play_media +``` + ### Plex To cast media directly from a configured Plex server, set the fields [as documented in the Plex integration](/integrations/plex/#service-media_playerplay_media) and prepend the `media_content_id` with `plex://`: