-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
44 lines (33 loc) · 1.46 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
What is it
----------------
A chrome plugin for playing youtube videos. It can play music from Youtube in the background and keeps track of a playlist which is persisted to browser's local storage.
Requirements
----------------
DONE- Must be able to stream audio from YouTube (must not output video)
DONE - Must be able to play audio in background
DONE - Must be lightweight (can be played without YT page open)
DONE - Must be able to add songs to playlists using YT URLs with your custom name
DONE - be able to save playlists (either to an account or to browser custom data)
DONE - Must be able to play, pause, change volume, skip track, seek
DONE - Must be able to add multiple playlists, as well as rearrange them, and delete them
How to install
-----------------
> download the code
> open Window > Extensions
> click "load unpacked extension..."
> choose the folder of where this extension is located
> extension should show up on the top right of the extension icons
Basic design
-------------------
Background:
- background.js
Wire up the DOM with youtubeAPI.
- YoutubeAPI.js
Loads the Youtube iframe API dynamically and setups up the youtube player in the background html. Expose a player control object that provides public functions to change the state of the player (change songs, manage playlist)
- persist.js
Popup:
- popup.js
Get an instance of the popup view from background.js
// Playlist
- Add {video title, id}
- create/delete/drag to playlist, play from playlist,