Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

fix flash failing first segment load part 2 #861

Merged
merged 1 commit into from
Oct 13, 2016

Conversation

mjneil
Copy link
Contributor

@mjneil mjneil commented Oct 13, 2016

Previous PR for this fix missed some edge cases. Notably hasPlayed() defaulted to checking this.tech_.played().length !== 0 when this.hasPlayed_ had not yet been set by MasterPlaylistController. This change makes it so SegmentLoader sees false for hasPlayed until MasterPlaylistController.setupFirstPlay() has been called and completed.

I also added a few checks to prevent crashing from trying to access from undefined.

@forbesjo forbesjo merged commit b0208f1 into videojs:simple-fetcher Oct 13, 2016
imbcmdth pushed a commit that referenced this pull request Oct 19, 2016
Fixed seeking behavior

Updated getMediaIndexForTime to be simple and stupid

Remove spurious console logs

Fixed an issue with forward seeks and a different problem with backwards seeking (thanks Matt!). Fixed fast rendition change behavior.

Remove limits on gap-skipper. Skip instantly without waiting.

Use the proper native MediaSource duration for buffer removals.

Improvements for live stream rendition changes

Fixed an undefined variable bug

Some more simplification and a very conservative live stream rendition change approach

VOD fixes

Experimental change to the way we throttle the fetcher

Use GOAL_BUFFER_LENGTH again

Continued massive changes to segment fetching. Cleanup and comments.

Fixed a bug where we were fetching starting at mediaIndex 0 on every seek.

Refactor probing code in preparation for pulling into it's own module or class

Moved sync-related logic out of segment-loader and into a new sync-controller class

Removed expired from the SegmentLoader

Update mux.js dependency to 2.5.0

Don't error when the tsprobe returns null

Fixed two issues: MAAT switching and Flash seeking

Rename duration variable

fix flash failing first segment load (#859)

dont use tech for has played (#861)

Code Coverage and Unit tests for Simple Fetcher (#862)

fix has played returning false on vod (#866)
imbcmdth pushed a commit that referenced this pull request Oct 21, 2016
Fixed seeking behavior

Updated getMediaIndexForTime to be simple and stupid

Remove spurious console logs

Fixed an issue with forward seeks and a different problem with backwards seeking (thanks Matt!). Fixed fast rendition change behavior.

Remove limits on gap-skipper. Skip instantly without waiting.

Use the proper native MediaSource duration for buffer removals.

Improvements for live stream rendition changes

Fixed an undefined variable bug

Some more simplification and a very conservative live stream rendition change approach

VOD fixes

Experimental change to the way we throttle the fetcher

Use GOAL_BUFFER_LENGTH again

Continued massive changes to segment fetching. Cleanup and comments.

Fixed a bug where we were fetching starting at mediaIndex 0 on every seek.

Refactor probing code in preparation for pulling into it's own module or class

Moved sync-related logic out of segment-loader and into a new sync-controller class

Removed expired from the SegmentLoader

Update mux.js dependency to 2.5.0

Don't error when the tsprobe returns null

Fixed two issues: MAAT switching and Flash seeking

Rename duration variable

fix flash failing first segment load (#859)

dont use tech for has played (#861)

Code Coverage and Unit tests for Simple Fetcher (#862)

fix has played returning false on vod (#866)
imbcmdth pushed a commit that referenced this pull request Nov 18, 2016
Fixed seeking behavior

Updated getMediaIndexForTime to be simple and stupid

Remove spurious console logs

Fixed an issue with forward seeks and a different problem with backwards seeking (thanks Matt!). Fixed fast rendition change behavior.

Remove limits on gap-skipper. Skip instantly without waiting.

Use the proper native MediaSource duration for buffer removals.

Improvements for live stream rendition changes

Fixed an undefined variable bug

Some more simplification and a very conservative live stream rendition change approach

VOD fixes

Experimental change to the way we throttle the fetcher

Use GOAL_BUFFER_LENGTH again

Continued massive changes to segment fetching. Cleanup and comments.

Fixed a bug where we were fetching starting at mediaIndex 0 on every seek.

Refactor probing code in preparation for pulling into it's own module or class

Moved sync-related logic out of segment-loader and into a new sync-controller class

Removed expired from the SegmentLoader

Update mux.js dependency to 2.5.0

Don't error when the tsprobe returns null

Fixed two issues: MAAT switching and Flash seeking

Rename duration variable

fix flash failing first segment load (#859)

dont use tech for has played (#861)

Code Coverage and Unit tests for Simple Fetcher (#862)

fix has played returning false on vod (#866)

Fixed preload="none" behavior and reduced the incidence of repeating initial segment requests (#878)

Fixed a small bug in gap-skipper where we could seek to the same spot during a video underflow more than once

Provide option to set contrib-hls first in the HTML5 tech (#889)

Add playback tests (#894)

remove expired time tracking and use sync points to calculate seekable (#898)
imbcmdth pushed a commit that referenced this pull request Nov 18, 2016
Fixed seeking behavior

Updated getMediaIndexForTime to be simple and stupid

Remove spurious console logs

Fixed an issue with forward seeks and a different problem with backwards seeking (thanks Matt!). Fixed fast rendition change behavior.

Remove limits on gap-skipper. Skip instantly without waiting.

Use the proper native MediaSource duration for buffer removals.

Improvements for live stream rendition changes

Fixed an undefined variable bug

Some more simplification and a very conservative live stream rendition change approach

VOD fixes

Experimental change to the way we throttle the fetcher

Use GOAL_BUFFER_LENGTH again

Continued massive changes to segment fetching. Cleanup and comments.

Fixed a bug where we were fetching starting at mediaIndex 0 on every seek.

Refactor probing code in preparation for pulling into it's own module or class

Moved sync-related logic out of segment-loader and into a new sync-controller class

Removed expired from the SegmentLoader

Update mux.js dependency to 2.5.0

Don't error when the tsprobe returns null

Fixed two issues: MAAT switching and Flash seeking

Rename duration variable

fix flash failing first segment load (#859)

dont use tech for has played (#861)

Code Coverage and Unit tests for Simple Fetcher (#862)

fix has played returning false on vod (#866)
imbcmdth pushed a commit that referenced this pull request Nov 21, 2016
Fixed seeking behavior

Updated getMediaIndexForTime to be simple and stupid

Remove spurious console logs

Fixed an issue with forward seeks and a different problem with backwards seeking (thanks Matt!). Fixed fast rendition change behavior.

Remove limits on gap-skipper. Skip instantly without waiting.

Use the proper native MediaSource duration for buffer removals.

Improvements for live stream rendition changes

Fixed an undefined variable bug

Some more simplification and a very conservative live stream rendition change approach

VOD fixes

Experimental change to the way we throttle the fetcher

Use GOAL_BUFFER_LENGTH again

Continued massive changes to segment fetching. Cleanup and comments.

Fixed a bug where we were fetching starting at mediaIndex 0 on every seek.

Refactor probing code in preparation for pulling into it's own module or class

Moved sync-related logic out of segment-loader and into a new sync-controller class

Removed expired from the SegmentLoader

Update mux.js dependency to 2.5.0

Don't error when the tsprobe returns null

Fixed two issues: MAAT switching and Flash seeking

Rename duration variable

fix flash failing first segment load (#859)

dont use tech for has played (#861)

Code Coverage and Unit tests for Simple Fetcher (#862)

fix has played returning false on vod (#866)

Fixed preload="none" behavior and reduced the incidence of repeating initial segment requests (#878)

Provide option to set contrib-hls first in the HTML5 tech (#889)

This reverts commit 59ddbe1.

Add playback tests (#894)

Fixed MSE and environment test helpers, restore properly

Removed unused test files

remove expired time tracking and use sync points to calculate seekable (#898)

Fixing a few tests for QUnit 2.0
imbcmdth added a commit that referenced this pull request Nov 22, 2016
Fixed seeking behavior

Updated getMediaIndexForTime to be simple and stupid

Remove spurious console logs

Fixed an issue with forward seeks and a different problem with backwards seeking (thanks Matt!). Fixed fast rendition change behavior.

Remove limits on gap-skipper. Skip instantly without waiting.

Use the proper native MediaSource duration for buffer removals.

Improvements for live stream rendition changes

Fixed an undefined variable bug

Some more simplification and a very conservative live stream rendition change approach

VOD fixes

Experimental change to the way we throttle the fetcher

Use GOAL_BUFFER_LENGTH again

Continued massive changes to segment fetching. Cleanup and comments.

Fixed a bug where we were fetching starting at mediaIndex 0 on every seek.

Refactor probing code in preparation for pulling into it's own module or class

Moved sync-related logic out of segment-loader and into a new sync-controller class

Removed expired from the SegmentLoader

Update mux.js dependency to 2.5.0

Don't error when the tsprobe returns null

Fixed two issues: MAAT switching and Flash seeking

Rename duration variable

fix flash failing first segment load (#859)

dont use tech for has played (#861)

Code Coverage and Unit tests for Simple Fetcher (#862)

fix has played returning false on vod (#866)

Fixed preload="none" behavior and reduced the incidence of repeating initial segment requests (#878)

Provide option to set contrib-hls first in the HTML5 tech (#889)

This reverts commit 59ddbe1.

Add playback tests (#894)

Fixed MSE and environment test helpers, restore properly

Removed unused test files

remove expired time tracking and use sync points to calculate seekable (#898)

Fixing a few tests for QUnit 2.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants