-
Notifications
You must be signed in to change notification settings - Fork 41
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(live-status-gw): Add segment and part timing (SOFIE-2793) #1053
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## release50 #1053 +/- ##
=============================================
+ Coverage 58.10% 58.18% +0.08%
=============================================
Files 479 479
Lines 78647 78730 +83
Branches 4120 4150 +30
=============================================
+ Hits 45696 45812 +116
+ Misses 32892 32860 -32
+ Partials 59 58 -1 ☔ View full report in Codecov by Sentry. |
this brings back filtering adlibs to current part only
segments
topicplannedStartedPlayback as fallback
1f1cec2
to
eafabf7
Compare
Hello! Thank you for contributing to the Sofie Project! If you haven’t already, please give our contribution guidelines a read. Can you write me an e-mail at [email protected] so that we can schedule a workshop to discuss this change? |
packages/live-status-gateway/src/topics/helpers/segmentTiming.ts
Outdated
Show resolved
Hide resolved
An online workshop to discuss this PR has been scheduled for 2023/11/24 14:00 CET. If you'd like to participate in the workshop, please send an e-mail to [email protected] so that I can arrange that. I will publish notes from the workshop in this thread afterwards. |
The meeting was held as planned; Mint de Wit and Jan Starzak from the NRK Sofie team and Krzysztof Zegzula representing TV 2 Norge participated.
|
Thank you, Jan and Mint, for your time and valuable insights during the meeting. I believe I have now addressed all comments from the review and brought up during the meeting. I also resolved the merge conflict. |
This PR is being opened on behalf of TV 2 Norge.
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
A feature: new properties exposed by the Live Status Gateway in the
segments
andactivePlaylist
topicsWhat is the current behavior? (You can also link to an open issue here)
No part or segment durations are available to the subscribers of the Live Status Gateway.
What is the new behavior (if this is a feature change)?
New properties are added to segments in the
segments
topic:timing.expectedDurationMs
, calculated as a sum ofexpectedDurationWithPreroll
of its parts (when available on at least one part)timing.budgetDurationMs
, calculated as a sum ofbudgetDuration
of its parts (when available on at least one part)New properties added to
currentPart
in theactivePlaylist
topic:timing.startTime
- a timestamp of when the part is expected to start or has started (once its actual start time is reported by the Playout Gateway)timing.expectedDurationMs
- the expected durationtiming.expectedEndTime
- a timestamp of when the part is expected to end, taking the expected duration and Display Duration Groups into consideration; no minimum-duration is currently appliedNew
currentSegment
in theactivePlaylist
topic with the following properties:timing.expectedDurationMs
- same as in thesegments
topictiming.budgetDurationMs
- same as in thesegments
topictiming.expectedEndTime
- a timestamp of when the segment is expected to end considering its budget (if available), and expected durationOther information:
Status