Initial commit. Adds player, gets ready event.
splitting player loading out to playerloader.js. Having YouTube player ready handler load another script, playall.js, since that handler (inside the injected <script> tag) cannot access the Chrome extensions files otherwise.
Fixed so that playAll() is only called when the player is actually ready, rather than immediately.
Removed comment code and unused function.
Removed duplicate player container creation code.
Now working, in a very basic sense:
- Added player state change listener to queue the next video in the list when playback stops.
- Renamed playAll to start and moved playing code to playNext().
Dropped unused function.
Got player to be centered on page and on top of rest of page.
Hacked in Next button. Not hooked up to anything yet.
Handed case in which extension is a second time.
- Added playPrev and kill and corresponding buttons.
- Guarded against going beyond array bounds in playNext and playPrev.
Broke button stuff out into its own function.
Put button creation back in createPlayerContainerElement, rearranged so close goes on top, next and prev are aligned.
PlayerLoader.load now correctly loads the first video, and there is no need for PlayAll.start to hit playNext right away.
Styled player container to be translucent gray with slightly rounded corners.
Restrict link selector to youtube links that have the 'v=' in them. As a result, it now catches links it can play in page in which the first YouTube link does not have the v in it.
Use https to load the first video to avoid being blocked when working on a page that uses https.
Added real icons.
Merge branch 'master' of https://github.com/jimkang/PlayAll