-
Notifications
You must be signed in to change notification settings - Fork 5
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-10699): add Linear media type recognition by OTT BE response #136
Changes from 2 commits
626229c
22dc3d7
ffd0ee0
3299497
3f8e66b
b68afd7
8397691
92ef43b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,10 @@ const MediaTypeCombinations: {[mediaType: string]: Object} = { | |
[KalturaAsset.Type.MEDIA]: { | ||
[KalturaPlaybackContext.Type.TRAILER]: () => ({type: MediaEntry.Type.VOD}), | ||
[KalturaPlaybackContext.Type.PLAYBACK]: mediaAssetData => { | ||
if (parseInt(mediaAssetData.externalIds) > 0 || mediaAssetData.objectType === LIVE_ASST_OBJECT_TYPE) { | ||
if (parseInt(mediaAssetData.externalIds) > 0) { | ||
return {type: MediaEntry.Type.LIVE, dvrStatus: 0}; | ||
} else if (mediaAssetData.objectType === LIVE_ASST_OBJECT_TYPE) { | ||
return {type: MediaEntry.Type.LIVE, dvrStatus: mediaAssetData.enableTrickPlay ? 1 : 0}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @RoyBregman suggest to add enum for this (can't remember why we didn't do it so far). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. DvrStatus.ON
DvrStatus.OFF There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @RoyBregman but need also to assign the enum 😁 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, i thought only declare it ;) |
||
} | ||
return {type: MediaEntry.Type.VOD}; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the condition in the ticket discuss
enableTrickPlay
andmediaAssetData.objectType === LIVE_ASST_OBJECT_TYPE
but notmediaAssetData.externalIds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. pushed a fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can, OTT doesn't have at all provider parser spec. I think we should add. Just a matter of time :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please discuss with @yairans to add unit tests coverage for this