SRGSSR / pillarbox-web-demo

Demo application for the pillarbox-web
https://github.com/SRGSSR/pillarbox-web/
MIT License
2 stars 0 forks source link

Implement direct video playback from `PLAY` URLs #29

Closed jboix closed 6 months ago

jboix commented 6 months ago

Description

As a user, I want to be able to open videos directly in the video player by pasting a PLAY URL into the main input of the example page.

Acceptance Criteria

  1. When a PLAY URL is pasted into the main input of the example page, the application should automatically extract the URN query parameter and initiate the playback of the corresponding video.
  2. The video player should provide an error message or feedback if the PLAY URL is invalid, does not contain a URN query parameter, or the specified video cannot be found or played.

Examples

PLAY URL Expected URN Extraction
https://www.rts.ch/play/tv/freeride/video/freeride--le-film?urn=urn:rts:video:14777449 urn:rts:video:14777449
https://www.srf.ch/play/tv/tagesschau/video/tagesschau-vom-25-03-2024-mittagsausgabe?urn=urn:srf:video:473eab9b-5a28-4a45-b0ce-e16afb38a6bf urn:srf:video:473eab9b-5a28-4a45-b0ce-e16afb38a6bf
https://www.rsi.ch/play/tv/telegiornale/video/telegiornale?urn=urn:rsi:video:2092899 urn:rsi:video:2092899