Replies: 3 comments 3 replies
-
@swenkeratmicrosoft Can you maybe provide some insights here if the approach above is valid? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It looks like you're attempting to parse it using a DOM parser. If that's the only reason you need to parse it, couldn't you just attempt to parse it as UTF-16 and if it fails try again using UTF-8? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Link to a ticket about the same issue. Yes it would be nice to have an automatic sense of utf16|utf8 messageFormat value. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Taken from f8c0ccc
From @markriley9999
Hi
i know that this is a very old ticket! :)
we're looking to use DASHJS on our platform, across many different devices (TVs, STBs) - the majority of devices have a PR CDM which uses the UTF16 format, however some use UTF8.
So, one solution is to maintain a list of clients which require the UTF8 format and use the the setPlayReadyMessageFormat call accordingly.
However, creating and maintaining such a list does add complexity to a large platform.
One potential approach that I am looking at is to propose to manufacturers that they ensure that they standardise on UTF16 - however, this may be a big ask, and it's possible that some manufacturers may not meet this requirement.
Or, i'm wondering as to whether DASHJS could support an option to auto-detect (infer) the format, for example:
this could be enabled by calling
setPlayReadyMessageFormat("autodetect")
any opinions gratefully received! :)
Beta Was this translation helpful? Give feedback.
All reactions