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

708 caption signaling #132

Merged
merged 7 commits into from
May 28, 2021
Merged

708 caption signaling #132

merged 7 commits into from
May 28, 2021

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented May 25, 2021

This is 708 caption signaling.
One limitation I found as part of this is that if multiple services are of the same language, they can't be represented in mediaGroups as they're defined right now. For example, the following 708 signal 1=lang:eng;2=lang:eng,war:1,er:1 will only surface the SERVICE2 item since both get added under media groups under eng.


return values.map((value) => {
// service or channel number 1-63
let channel;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these all reside within a flags object?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, might make it a bit easier, then we can just return the flags object below

// BIT 1/0
// If 3d metadata is present (CEA-708.1) then 1
// default 0
let threed = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

If we do go with a flags object we could make this 3d as threed just looks like a mis-spelling to me.

svcObj[language] = {
autoselect: false,
default: false,
instreamId: channel,
language
};

if (service.hasOwnProperty('aspectRatio')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any reason not to add all properties?

Copy link
Member Author

Choose a reason for hiding this comment

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

If we add them when not present, the output of both 608 and 708 will include things like aspectRatio, where we want them only for 708.

Copy link
Contributor

Choose a reason for hiding this comment

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

Well I meant add any properties that service has.

Copy link
Member Author

Choose a reason for hiding this comment

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

the three extra props that it has are copied over. Channel and language are already accounted for above.

@gkatsev gkatsev merged commit 671bef4 into 608-caption-signaling May 28, 2021
@gkatsev gkatsev deleted the 708-caption-signaling branch May 28, 2021 17:53
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