Skip to content
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

Support custom tags when parsing and stringifying playlists #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

harrietwaters
Copy link
Collaborator

@harrietwaters harrietwaters commented Jan 27, 2022

  • Add new property to playlist, customTags, that contains a record with
    a string key and a value that is either string, number, or boolean.
  • Example: #EXT-X-CUSTOM-TAGS:foo=bar;fizz=true;boop=1

LIVE-3972

* Add new property to playlist, customTags, that contains a record with
  a string key and a value that is either string, number, or boolean.
* Example: `#EXT-X-CUSTOM-TAGS:foo=bar;fizz=true;boop=1`
function parseCustomTag(params: string): CustomTags {
const customTags = {};
if (params) {
for (const pair of params.split(';')) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any sort of escape character we need to worry about? Like #EXT-X-CUSTOM-TAGS:math=a\=b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants