-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What are the rules for parsing a StreamID? #2047
Comments
Hi @eric. Thanks for noticing. The reference to YAML is indeed incorrect, as |
Can you give an example with curly braces (the nesting) and an example of how to handle a value with a |
Like:
In particular: in case of nested braces, whatever's inside the paired braces, shall not be part of the syntax. The resulting values here are:
If you specified the same thing with :: syntax:
Values would be then interpreted as:
Note that that's only a conceptual syntax, I don't think anyone has so far implemented it. |
How is escaping supposed to be handled here? Could I get an example or description of what syntax Haivision is using in their SRT solutions right now? I'd like to try to match it. |
Depends on what level of specification you mean. On the lowest possible level you have the Above this there's the Access Control specification, which mandates this string to be UTF-8 encoded and defines the syntax. Beside key/value syntax elements and the required ability to parse it according to these rules, rest of the things are free-form. In case of braced syntax it means that when you have an open brace, until the symmetric closing brace, everything is free-form (in the frames of UTF-8 encoding). If you want to pass any kind of "binary data", including NUL character, the way how to encode and decode them is not part of this specification. And above this there's another level, which is the URI specification in the applications, where the |
During the plugfest I was shown the Haivision UI with the "Default" vs "Custom" "Stream ID Format". The Access Control specification does not specify a format with enough detail to implement it in code. This is the reason why I have been asking for rules around escaping of values. For instance, what if the |
Yes, so for that reason there exists also the braced syntax. Then I agree that the specification is too defective and requires to be completed. I think this should be simply described in a separate issue with a request to fix the specification. |
as it is not used actually. See #2047.
In Access Control it says:
but the example says:
YAML uses
:
to separate a key and value, not=
, so it is very confusing to me what the actual syntax is for these key/value pairs.The text was updated successfully, but these errors were encountered: