Return to Video

Play

  • 0:02 - 0:04
    We had a serious problem in the office.
  • 0:04 - 0:06
    People would wander around aimlessly.
  • 0:06 - 0:08
    Wouldn't do any work.
  • 0:08 - 0:10
    They couldn't even dance!
  • 0:10 - 0:20
    We need music. I invented "play".
  • 0:20 - 0:21
    Play is like your company's DJ.
  • 0:21 - 0:24
    Lets everybody vote on songs, control your speakers,
  • 0:24 - 0:27
    and lets you figure out who keeps requesting Alanis Morrissette.
  • 0:27 - 0:29
    And you can do all of it through a cool API.
  • 0:29 - 0:32
    We tell Hubot what to play, and he usually plays it.
  • 0:32 - 0:35
    He's a dick sometimes, but he usually plays it.
  • 0:35 - 0:37
    Play is a webapp. To install it,
  • 0:37 - 0:39
    read the fuckin' README.
  • 0:39 - 0:44
    Honestly, people starting out screencasts with installing stuff is the most boring thing in the world.
  • 0:44 - 0:47
    Okay, so it's installed. When you're ready to go
  • 0:47 - 0:52
    say "play -w" and that will boot up your play instance for you.
  • 0:52 - 0:55
    This is play. Right on the frontpage is the queue,
  • 0:55 - 0:59
    these are songs people have requested play to play.
  • 0:59 - 1:02
    From here you can drill down into artists, albums -- whatever you want.
  • 1:02 - 1:05
    If you want to play a song you just click "play".
  • 1:05 - 1:08
    That gets queued up behind everything else.
  • 1:08 - 1:13
    Once all these play, your song plays. Very simple.
  • 1:13 - 1:15
    As you can see here there's also a download link,
  • 1:15 - 1:19
    so if you legally obtain this music and have
  • 1:19 - 1:25
    *full rights* to this music, you can download a copy straight from the browser to your machine.
  • 1:25 - 1:27
    Kind of rad.
  • 1:27 - 1:32
    There's also search, there's also profile links so there's some social going on.
  • 1:32 - 1:36
    Lots of social. And that's play.
  • 1:36 - 1:39
    The other part of play is the music server.
  • 1:39 - 1:40
    This actually plays your music.
  • 1:40 - 1:46
    To run that all you have to do is type "play -d" and it'll start the music.
  • 1:46 - 1:59
    [music plays]
  • 1:59 - 2:02
    So that's all cool, for those of you who are like:
  • 2:02 - 2:05
    "I like webpages and shiny buttons!"
  • 2:05 - 2:09
    But the rest of us, that's why we built an API.
  • 2:09 - 2:12
    That's how we built play into Hubot.
  • 2:12 - 2:16
    So this is Campfire. Campfire is how we talk to our bot Hubot, who know how to
  • 2:16 - 2:19
    integrate with play quite well.
  • 2:19 - 2:23
    First you just tell him "Hubot, I am Holman",
  • 2:23 - 2:27
    which in this case is true (I hope) and this basically tells him what your username on
  • 2:27 - 2:31
    GitHub is, because that's how we handle the authentication in play,
  • 2:31 - 2:35
    we just use OAuth to connect to Github and it's really easy.
  • 2:35 - 2:40
    Next you can say "Hubot, unpause play." Actually just "unpause".
  • 2:40 - 2:45
    And that will unpause the music.
  • 2:45 - 2:47
    At that point you can ask it what's playing,
  • 2:47 - 2:51
    and it will dutifully respond to you with with poignant suggestions.
  • 2:51 - 2:54
    At that point you can say "Hubot play deadmau5".
  • 2:54 - 2:58
    Because I really want to play deadmau5.
  • 2:58 - 3:01
    This is then going to queue up a bunch of deadmau5 tracks.
  • 3:01 - 3:06
    If I want to say "Hey, I want deadmau5 right fuckin' now!"
  • 3:06 - 3:13
    "Hubot play next" -- it'll skip this song and play the next song.
  • 3:13 - 3:17
    You can also request specific albums, you can request specific artists,
  • 3:17 - 3:20
    and specific songs.
  • 3:20 - 3:25
    You can also say "Hubot I want this song" and it'll give you a link to download this song.
  • 3:25 - 3:29
    You can also say "Hubot I want this album" and it will give you a link
  • 3:29 - 3:31
    to download the zip of the album.
  • 3:31 - 3:36
    Naturally, do that if you have *full rights* to the songs,
  • 3:36 - 3:38
    etc etc.
  • 3:38 - 3:44
    Also fun stuff: "Hubot volume 3", and that will adjust
  • 3:44 - 3:49
    the volume from Campfire to your speakers.
  • 3:49 - 4:03
    You can also do other fun stuff and Hubot will be able to talk to you.
  • 4:03 - 4:07
    [Computer voice: "I like big butts and I cannot lie"]
  • 4:07 - 4:12
    So that's play -- that's play in Campfire with Hubot integration.
  • 4:12 - 4:18
    Now you probably expect to pay five, six, maybe seven thousand dollars a month for this,
  • 4:18 - 4:23
    but I'm giving it to you *for free*.
  • 4:23 - 4:26
    Jesus.
  • 4:26 - 4:27
    So enjoy play.
  • 4:27 - 4:32
    And let me know what you're playing, and don't use this to play shitty music.
  • 4:32 -
    Or I'll find you.
Title:
Play
Description:

play is your company's dj

more » « less
Video Language:
English
stephen4 edited English subtitles for Play
Steve Losh edited English subtitles for Play
Steve Losh added a translation

English subtitles

Revisions