Closed pyby closed 3 years ago
Propositions:
Test 1 with "urn": "urn:rts:video:mediacomposition404",
"Not found"
"Not found"
"ch.srgssr.network (0): Not found"
Test 2 with "urn": "urn:rts:video:playlist404",
"The operation couldn’t be completed. (CoreMediaErrorDomain error -12938 - The operation couldn’t be completed. (CoreMediaErrorDomain error -12938 - HTTP 404: File Not Found))"
"The media cannot be played; The requested URL was not found on this server.; The operation couldn’t be completed. (CoreMediaErrorDomain error -12938 - The operation couldn’t be completed. (CoreMediaErrorDomain error -12938 - HTTP 404: File Not Found))"
"ch.srgssr.mediaplayer (0): The media cannot be played; NSURLErrorDomain (-1100): The requested URL was not found on this server.; CoreMediaErrorDomain (-12938): The operation couldn’t be completed. (CoreMediaErrorDomain error -12938 - The operation couldn’t be completed. (CoreMediaErrorDomain error -12938 - HTTP 404: File Not Found))"
Test 3 with "urn": "urn:rts:video:playlistInvalidHost",
"The operation couldn’t be completed. (OSStatus error 310.)"
"The media cannot be played; The operation could not be completed; The operation couldn’t be completed. (OSStatus error 310.)"
"ch.srgssr.mediaplayer (0): The media cannot be played; AVFoundationErrorDomain (-11800): The operation could not be completed; NSOSStatusErrorDomain (310): The operation couldn’t be completed. (OSStatus error 310.)"
Let decide which one is better for diagnostic:
feature/diagnostic-error-message-1
feature/diagnostic-error-message-2
feature/diagnostic-error-message-3
I prefer option 1. It namely delivers the lowermost error message (thus the real error that triggered the error chain), which is really the most precise information we are interested in. The upper error levels are not that interesting and having a single value is probably better for reporting / consolidation purposes.
Thank you for your review. Option 1 is fine.
Option 1 is included in 6.1.0 release.
Issue type
Feature request
Description of the problem
As a technical investigator, using the
SRGDiagnostic
reports, implementing in Letterbox, "Content can't be played" error message is not helpful. A technical error message would be better.Environment information