SRGSSR / srgletterbox-apple

The official SRG SSR media playback experience
https://srgssr.github.io/marketing/letterbox/
MIT License
14 stars 7 forks source link

Open media from demo custom url #277

Closed pyby closed 2 years ago

pyby commented 2 years ago

Issue type

Incorrect behavior / missing feature

Description of the problem

For some stream tests or metadata tests, a custom url can open the advanced player view with a media urn:

letterbox(-debug|-nighty) scheme and media/[media_urn] path. An optional server=[server_name] parameter can be added to force a server selection.

This demo feature is missing since the migration to scene delegate.

Environment information

Reproducibility

Always reproducible

Steps to reproduce

With Simulators:

  1. Launch a simulator device with a Letterbox demo debug app already installed.
  2. In the Terminal application, execute: xcrun simctl openurl booted "letterbox-debug://media/urn:srf:video:02242994-dfeb-43ea-a852-c5f46f418223?server=stage". It has to open the player with a 10vor10 video.
  3. Close the player, quit the application (don't kill it).
  4. In the Terminal application, execute the same command line. It has to open the player with the same video again.

On devices:

  1. Build and Install Letterbox demo debug app. Kill the application from the Springboard.
  2. Open the custom url from Safari: "letterbox-debug://media/urn:srf:video:02242994-dfeb-43ea-a852-c5f46f418223?server=stage". It has to open the player with a 10vor10 video.
  3. Close the player, quit the application (don't kill it).
  4. Open the custom url from Safari. It has to open the player with the same video again.