-
Notifications
You must be signed in to change notification settings - Fork 3
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-8975): adding segment size in target buffer when exceeding maxmax #75
Conversation
src/dash-adapter.js
Outdated
const activeTrackId = activeTrack ? activeTrack.id : NaN; | ||
let segmentLength = 0; | ||
if (!isNaN(activeTrackId)) { | ||
for (let i = 0; i < this._shaka.getManifest().periods.length; i++) { |
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.
you can store const periods = this._shaka.getManifest().periods;
and it will make the rest of the access a lot less verbose.
src/dash-adapter.js
Outdated
const activeTrackId = activeTrack ? activeTrack.id : NaN; | ||
let segmentLength = 0; | ||
if (!isNaN(activeTrackId)) { | ||
for (let i = 0; i < this._shaka.getManifest().periods.length; i++) { |
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.
for (let i = 0; i < this._shaka.getManifest().periods.length; i++) { | |
const periods = this._shaka.getManifest().periods; | |
for (let i = 0; i < .periods.length; i++) { |
src/dash-adapter.js
Outdated
let segmentLength = 0; | ||
if (!isNaN(activeTrackId)) { | ||
for (let i = 0; i < this._shaka.getManifest().periods.length; i++) { | ||
for (let j = 0; j < this._shaka.getManifest().periods[i].variants.length; j++) { |
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.
for (let j = 0; j < this._shaka.getManifest().periods[i].variants.length; j++) { | |
for (let j = 0; j < periods[i].variants.length; j++) { |
src/dash-adapter.js
Outdated
if (!isNaN(activeTrackId)) { | ||
for (let i = 0; i < this._shaka.getManifest().periods.length; i++) { | ||
for (let j = 0; j < this._shaka.getManifest().periods[i].variants.length; j++) { | ||
const variant = this._shaka.getManifest().periods[i].variants[j]; |
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.
const variant = this._shaka.getManifest().periods[i].variants[j]; | |
const variant = periods[i].variants[j]; |
feat(FEC-8975): adding segment size in target buffer when exceeding maxmax