Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8971283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:55:02+00:00 2026-06-15T17:55:02+00:00

Hello Stack Overflow community, I’m a rather novice coder, but I have a project

  • 0

Hello Stack Overflow community,

I’m a rather novice coder, but I have a project I’ve been devising that looks more and more complicated every day, and I don’t know where to start.

With inspiration taken from Synchtube & Phonoblaster, I’m looking to create something for my website that will allow visitors to watch YouTube videos and playlists that I have curated, together in real-time, in-sync.

Because I want to be able to put this in the context of my own website, I can’t use the services listed above that already do this – so I wanted to figure out how to roll my own.

Some things have been written about this topic on Stack Overflow, and other blogs:
HERE
and HERE.

Because I still consider myself a novice programmer, and a lot of the information I’ve found on Google and Stack tends to be more than 1 or 2 years old, I’m still unsure where to begin or if this information is outdated. Specifically, what languages and tools I should be learning.

From what I’ve gathered so far, things like Javascript, Node.JS, and the YouTube API would form the crux of it. I’ve not used any of these before, but would be interested to see whether other experienced coders would have their own suggestions or ideas they could point me towards.

I appreciate you taking time out to read this post!
Hope to hear from some of you soon 🙂

Many thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:55:03+00:00Added an answer on June 15, 2026 at 5:55 pm

    It partially sounds like you need a live stream from Youtube. You can find more info here. https://support.google.com/youtube/bin/answer.py?hl=en&answer=2474026

    If you can get that going, then syncing play between any number of users is as simple as embedding a regular youtube embed of your stream in a browser.

    Looking past that, if you wanted to sync video playback amongst any number of users, the first big problem is learning how to set time on a video. Luckily, that’s easy with the hashbang #t=seconds.

    Eg: http://www.youtube.com/watch?v=m38RdUGqBPM&feature=g-high-rec#t=619s will start this HuskyStarcraft video at 619 seconds into the video.

    The next step is to have some backend server that keeps track of what the current time is. Node.js with Socket.io is incredibly easy to get setup. Socket.io is a wonderful library that gracefully handles concurrency connections from web sockets all through long polling and more and works well even on very old browsers. Note that websockets aren’t even required, but will be the most modern and full-proof method for you. Otherwise its hacks and stuff.

    One way this could work would be as follows.

    User1 visits your site and starts playing the video first. A script on your page sends an XHR request to your server that says, “video started at time X”. X then gets stored as the start time.

    At this point, you could go 2 routes. You can have a client-side script using the Youtube API to poll the video and get its current status every second. If the status or time changes, send another request back to the server to update the state.

    Another simple route would be to have the page load for User2+, then send an XHR request asking for the video play time. The server sends back the difference between the start time from User1, then the client script sets the ‘t’ hashbang on the youtube player for User2+. This lets you sync start times, but if any users pause or rewind the video, those states dont get updated. A subsequent page refresh might do that though.

    The entire application complexity depends on exactly what requirements you want to have. If its just synchronized start times, then route #2 should work well enough. Doesn’t require sockets and is easy to do with jQuery or just straight javascript.

    If you need a really synchronized experience where any user can start/stop/pause/fast forward/rewind the video, then you’re looking at either using an established library solution or writing your own.

    Sorry this answer is kind of open ended, but so was your question. =)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello stackoverflow community, I have a rather simple piece of code that is getting
Hello Stack Overflow i hope you are well today; I have a form that
Hello Stack Overflow users, I have a fun problem that I have in my
Hello there people of stack overflow, I have just started developing with android and
Hello Stack Overflow community, I am a Java newbie and I am doing a
Hello StackOverflow community, I have run into a problem that quite frankly is baffling
Hello Stack Overflow community, I'm in the process of learning WP7 development, I'm struggling
Hello good Stack Overflow people, I do have a business problem and would like
Hi stack overflow users. Error description: For a mini project I have decided to
Hello Stack Overflow contributers, I'm a novice programmer learning Python right now, and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.