Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Comments

Fix issue where non-existing thumbs are created.#9

Open
GCheung55 wants to merge 1 commit intocfx:masterfrom
GCheung55:patch-1
Open

Fix issue where non-existing thumbs are created.#9
GCheung55 wants to merge 1 commit intocfx:masterfrom
GCheung55:patch-1

Conversation

@GCheung55
Copy link

_V_.Playlist createElement has an issue where it's looping through the videos property to create the thumbs, but it's using a for-in loop without a check for hasOwnProperty, which just makes a thumb for every property in the videos prototype chain.

`_V_.Playlist` createElement has an issue where it's looping through the `videos` property to create the thumbs, but it's using a for-in loop without a check for hasOwnProperty, which just makes a thumb for every property in the `videos` prototype chain.
@pocketwise
Copy link

I am not able to see thumbs automatically created. Is that a feature?
Also the playlist is not "autoplay-ing", it requires manual click to play the next one...

@pocketwise
Copy link

Added the auto-play feature:
https://github.com/pocketwise/videojs-playlist/blob/master/src/playlist.js
Uncomment the block to get auto-play working for video.js ver 4.6.4

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