Skip to content

Instantly share code, notes, and snippets.

@short-matthew-f
Created June 13, 2018 18:49
Show Gist options
  • Select an option

  • Save short-matthew-f/b053993511d14aedf1f8bcb2b2a14077 to your computer and use it in GitHub Desktop.

Select an option

Save short-matthew-f/b053993511d14aedf1f8bcb2b2a14077 to your computer and use it in GitHub Desktop.
+-------------+
| [>] Play (+)|
| [|] Pause |
| [-] Silence |
+-------------+
Chrome Extensions: https://developer.chrome.com/extensions/getstarted
- Think about Content Scripts vs Background Scripts
1. Sockets so that when a user pauses the video, it pauses for everyone at the same time
2. Same with play...
3. You need a way to connect to another user...
4. You'll need an offsite server you deploy ... it doesn't need ? Express... you just need a backend socket server for the extension to connect to.
5. You'll need to get the user's CHROME EMAIL ADDRESS as part of your scope
6. Your backend will need to create rooms for users, and be able to findRoomByEmail... so that when a new connection request comes in with a 'friend' email, you can connect it to the right room
7. The extension has access to the current page DOM... so you need to figure out how to trigger start/stop for a nextflix video
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment