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

feat(FEC-11761): expose stream timed metadata - phase 2 #623

Merged
merged 7 commits into from
Jan 12, 2022
Merged

Conversation

yairans
Copy link
Contributor

@yairans yairans commented Jan 9, 2022

Description of the Changes

Solves FEC-11761
Related to -
kaltura/playkit-js-hls#157
kaltura/playkit-js-dash#174
kaltura/kaltura-player-js#512
kaltura/playkit-js-dual-screen#52
kaltura/playkit-js-kaltura-cuepoints#15

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@yairans yairans requested review from semarche-kaltura and a team January 9, 2022 18:25
@yairans yairans self-assigned this Jan 9, 2022
@@ -27,6 +27,7 @@ class CuePoint {
CuePoint.TYPE = {
ID3: 'id3',
EMSG: 'emsg',
CUE_POINT: 'cuepoint',
Copy link
Contributor

Choose a reason for hiding this comment

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

CuePount.Type.CUE_POINT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree it's wired but this is how cuepoint manager works. it generates a cue point of type 'cuepoint'.

Comment on lines +13 to +26
export function binarySearch(list: Array<any> = [], comparisonFn: Function = () => 1): any {
if (list.length === 0 || (list.length === 1 && comparisonFn(list[0]) !== 0)) {
return null;
}
const mid = Math.floor(list.length / 2);
if (comparisonFn(list[mid]) === 0) {
return list[mid];
}
if (comparisonFn(list[mid]) > 0) {
return binarySearch(list.slice(0, mid), comparisonFn);
} else {
return binarySearch(list.slice(mid + 1), comparisonFn);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this have to do with this feat?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yairans yairans merged commit 7812357 into master Jan 12, 2022
@yairans yairans deleted the FEC-11761 branch January 12, 2022 14:00
yairans added a commit to kaltura/playkit-js-dash that referenced this pull request Jan 12, 2022
yairans added a commit to kaltura/playkit-js-hls that referenced this pull request Jan 12, 2022
Fire `TIMED_METADATA_ADDED` once a new id3 cue has been added 

Solves FEC-11761
Depends on kaltura/playkit-js#623
yairans added a commit to kaltura/kaltura-player-js that referenced this pull request Jan 12, 2022
use `TimedMetadata` from core
Change cuePointManager API's to use `TimedMetadata` instead of `VttCue`

Solves FEC-11761

Depends on kaltura/playkit-js#623

Breaking Change for - 
kaltura/playkit-js-dual-screen#52
kaltura/playkit-js-kaltura-cuepoints#15
borhandarabi pushed a commit to TasvirChi/playchi-js-dash that referenced this pull request May 14, 2024
use the new structure of `TimedMetadata`

Solves FEC-11761
Depends on kaltura/playkit-js#623
borhandarabi pushed a commit to TasvirChi/playchi-js-hls that referenced this pull request May 14, 2024
Fire `TIMED_METADATA_ADDED` once a new id3 cue has been added 

Solves FEC-11761
Depends on kaltura/playkit-js#623
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants