SRGSSR / srgletterbox-apple

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

"The media cannot be played" for some RTS videos #24

Closed fredhdroz closed 7 years ago

fredhdroz commented 7 years ago

Issue overview

Description of the problem

Some videos from RTS cannot be played, the IL responds with the following error :

15:00:37.800 | ch.srgssr.dataprovider.Request | Thread 33 | Ended https://il.srgssr.ch/integrationlayer/2.0/rts/mediaComposition/video/8448528.json with an HTTP error: Error Domain=ch.srgssr.dataprovider Code=0 "internal server error" UserInfo={NSURL=https://il.srgssr.ch/integrationlayer/2.0/rts/mediaComposition/video/8448528.json, NSLocalizedDescription=internal server error}

However the same video is playing correctly in both :

Environment information

Reproducibility

-> It seems the issue often occurs with "radio en video".

Steps to reproduce

  1. Open SRG Letterbox Demo
  2. Open "Custom URN" from "Basic player" section
  3. Enter following URN: urn:rts:video:8448528
  4. Tap Open
  5. The player shows an error "The media cannot be played"
defagos commented 7 years ago

This is obviously a server issue, and I am quite suprised with the different results I get with various identifiers:

https://il.srgssr.ch/integrationlayer/2.0/rts/mediaComposition/audio/8448528.json (server error) https://il.srgssr.ch/integrationlayer/2.0/rts/mediaComposition/audio/8448527.json (bad request) https://il.srgssr.ch/integrationlayer/2.0/rts/mediaComposition/audio/8448550.json (not found)

defagos commented 7 years ago

After talking with our backend team:

defagos commented 7 years ago

You can use the test server by setting the serviceURL property of your Letterbox controller before playing the media:

controller.serviceURL = SRGIntegrationLayerTestServiceURL()