Skip to content
Oli edited this page Oct 3, 2015 · 1 revision

chabble Wiki

Chabble v0.2

Objectives

  • The ability to be able to add youtube videos to a queue
  • When an item reaches the front of the queue it will begin playing for all users simultaneously
  • Users joining the room mid way through a video will start playing that video syncronised with other users
  • Users can't skip songs but they can mute the audio

UI Ideas

Media Requests - Front End

The front end listens for messages in a channel called /media/[roomName] with the following parameters:

  • service: string - the service that the media is hosted on. Currently youtube is the only option.
  • id: string - the youtube video Id as taken from the v query string parameter
  • offset: int - the number of seconds into the clip that we are currently at
  • user: string - the user that added the item to the queue
  • title: string - the title of the currently playing media clip

Example:

fayeClient.publish("/media/" + roomName, {
    service: 'youtube',
    id: 'kfVsfOSbJY0',
    offset: 10,
    user: 'Oli',
    title: 'Friday - Rebecca Black'
});

Clone this wiki locally