[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:01.54,0:00:03.67,Default,,0000,0000,0000,,We had a serious problem in the office. Dialogue: 0,0:00:03.67,0:00:05.97,Default,,0000,0000,0000,,People would wander around aimlessly. Dialogue: 0,0:00:05.97,0:00:07.61,Default,,0000,0000,0000,,Wouldn't do any work. Dialogue: 0,0:00:07.61,0:00:10.21,Default,,0000,0000,0000,,They couldn't even dance! Dialogue: 0,0:00:10.21,0:00:19.82,Default,,0000,0000,0000,,We need music. I invented "play". Dialogue: 0,0:00:19.82,0:00:21.49,Default,,0000,0000,0000,,Play is like your company's DJ. Dialogue: 0,0:00:21.49,0:00:23.82,Default,,0000,0000,0000,,Lets everybody vote on songs, control your speakers, Dialogue: 0,0:00:23.82,0:00:27.23,Default,,0000,0000,0000,,and lets you figure out who keeps requesting Alanis Morrissette. Dialogue: 0,0:00:27.23,0:00:29.02,Default,,0000,0000,0000,,And you can do all of it through a cool API. Dialogue: 0,0:00:29.02,0:00:31.81,Default,,0000,0000,0000,,We tell Hubot what to play, and he usually plays it. Dialogue: 0,0:00:31.81,0:00:35.00,Default,,0000,0000,0000,,He's a dick sometimes, but he usually plays it. Dialogue: 0,0:00:35.00,0:00:36.67,Default,,0000,0000,0000,,Play is a webapp. To install it, Dialogue: 0,0:00:36.67,0:00:38.80,Default,,0000,0000,0000,,read the fuckin' README. Dialogue: 0,0:00:38.80,0:00:43.98,Default,,0000,0000,0000,,Honestly, people starting out screencasts with installing stuff is the most boring thing in the world. Dialogue: 0,0:00:43.98,0:00:47.30,Default,,0000,0000,0000,,Okay, so it's installed. When you're ready to go Dialogue: 0,0:00:47.30,0:00:52.41,Default,,0000,0000,0000,,say "play -w" and that will boot up your play instance for you. Dialogue: 0,0:00:52.41,0:00:55.19,Default,,0000,0000,0000,,This is play. Right on the frontpage is the queue, Dialogue: 0,0:00:55.19,0:00:58.59,Default,,0000,0000,0000,,these are songs people have requested play to play. Dialogue: 0,0:00:58.59,0:01:02.36,Default,,0000,0000,0000,,From here you can drill down into artists, albums -- whatever you want. Dialogue: 0,0:01:02.36,0:01:05.20,Default,,0000,0000,0000,,If you want to play a song you just click "play". Dialogue: 0,0:01:05.20,0:01:08.34,Default,,0000,0000,0000,,That gets queued up behind everything else. Dialogue: 0,0:01:08.34,0:01:12.77,Default,,0000,0000,0000,,Once all these play, your song plays. Very simple. Dialogue: 0,0:01:12.77,0:01:15.31,Default,,0000,0000,0000,,As you can see here there's also a download link, Dialogue: 0,0:01:15.31,0:01:19.21,Default,,0000,0000,0000,,so if you {\i1}legally{\i0} obtain this music and have Dialogue: 0,0:01:19.21,0:01:25.29,Default,,0000,0000,0000,,*full rights* to this music, you can download a copy straight from the browser to your machine. Dialogue: 0,0:01:25.29,0:01:26.82,Default,,0000,0000,0000,,Kind of rad. Dialogue: 0,0:01:26.82,0:01:31.69,Default,,0000,0000,0000,,There's also search, there's also profile links so there's some social going on. Dialogue: 0,0:01:31.69,0:01:36.10,Default,,0000,0000,0000,,Lots of social. And that's play. Dialogue: 0,0:01:36.10,0:01:38.57,Default,,0000,0000,0000,,The other part of play is the music server. Dialogue: 0,0:01:38.57,0:01:40.17,Default,,0000,0000,0000,,This actually plays your music. Dialogue: 0,0:01:40.17,0:01:46.31,Default,,0000,0000,0000,,To run that all you have to do is type "play -d" and it'll start the music. Dialogue: 0,0:01:46.31,0:01:59.29,Default,,0000,0000,0000,,[music plays] Dialogue: 0,0:01:59.29,0:02:01.79,Default,,0000,0000,0000,,So that's all cool, for those of you who are like: Dialogue: 0,0:02:01.79,0:02:05.09,Default,,0000,0000,0000,,"I like webpages and shiny buttons!" Dialogue: 0,0:02:05.09,0:02:09.16,Default,,0000,0000,0000,,But the rest of us, that's why we built an API. Dialogue: 0,0:02:09.16,0:02:12.47,Default,,0000,0000,0000,,That's how we built play into Hubot. Dialogue: 0,0:02:12.47,0:02:15.94,Default,,0000,0000,0000,,So this is Campfire. Campfire is how we talk to our bot Hubot, who know how to Dialogue: 0,0:02:15.94,0:02:19.47,Default,,0000,0000,0000,,integrate with play quite well. Dialogue: 0,0:02:19.47,0:02:22.61,Default,,0000,0000,0000,,First you just tell him "Hubot, I am Holman", Dialogue: 0,0:02:22.61,0:02:27.45,Default,,0000,0000,0000,,which in this case is true (I hope) and this basically tells him what your username on Dialogue: 0,0:02:27.45,0:02:30.52,Default,,0000,0000,0000,,GitHub is, because that's how we handle the authentication in play, Dialogue: 0,0:02:30.52,0:02:34.72,Default,,0000,0000,0000,,we just use OAuth to connect to Github and it's really easy. Dialogue: 0,0:02:34.72,0:02:40.46,Default,,0000,0000,0000,,Next you can say "Hubot, unpause play." Actually just "unpause". Dialogue: 0,0:02:40.46,0:02:44.80,Default,,0000,0000,0000,,And that will unpause the music. Dialogue: 0,0:02:44.80,0:02:46.60,Default,,0000,0000,0000,,At that point you can ask it what's playing, Dialogue: 0,0:02:46.60,0:02:50.74,Default,,0000,0000,0000,,and it will dutifully respond to you with with poignant suggestions. Dialogue: 0,0:02:50.74,0:02:53.61,Default,,0000,0000,0000,,At that point you can say "Hubot play deadmau5". Dialogue: 0,0:02:53.61,0:02:57.88,Default,,0000,0000,0000,,Because I really want to play deadmau5. Dialogue: 0,0:02:57.88,0:03:01.25,Default,,0000,0000,0000,,This is then going to queue up a bunch of deadmau5 tracks. Dialogue: 0,0:03:01.25,0:03:05.92,Default,,0000,0000,0000,,If I want to say "Hey, I want deadmau5 right fuckin' now!" Dialogue: 0,0:03:05.92,0:03:12.63,Default,,0000,0000,0000,,"Hubot play next" -- it'll skip this song and play the next song. Dialogue: 0,0:03:12.63,0:03:17.03,Default,,0000,0000,0000,,You can also request specific albums, you can request specific artists, Dialogue: 0,0:03:17.03,0:03:19.63,Default,,0000,0000,0000,,and specific songs. Dialogue: 0,0:03:19.63,0:03:25.15,Default,,0000,0000,0000,,You can also say "Hubot I want this song" and it'll give you a link to download this song. Dialogue: 0,0:03:25.15,0:03:28.58,Default,,0000,0000,0000,,You can also say "Hubot I want this album" and it will give you a link Dialogue: 0,0:03:28.58,0:03:31.46,Default,,0000,0000,0000,,to download the zip of the album. Dialogue: 0,0:03:31.46,0:03:35.62,Default,,0000,0000,0000,,Naturally, do that if you have *full rights* to the songs, Dialogue: 0,0:03:35.62,0:03:38.42,Default,,0000,0000,0000,,etc etc. Dialogue: 0,0:03:38.42,0:03:43.69,Default,,0000,0000,0000,,Also fun stuff: "Hubot volume 3", and that will adjust Dialogue: 0,0:03:43.69,0:03:49.46,Default,,0000,0000,0000,,the volume from Campfire to your speakers. Dialogue: 0,0:03:49.46,0:04:02.71,Default,,0000,0000,0000,,You can also do other fun stuff and Hubot will be able to talk to you. Dialogue: 0,0:04:02.71,0:04:06.61,Default,,0000,0000,0000,,[Computer voice: "I like big butts and I cannot lie"] Dialogue: 0,0:04:06.61,0:04:12.08,Default,,0000,0000,0000,,So that's play -- that's play in Campfire with Hubot integration. Dialogue: 0,0:04:12.08,0:04:18.44,Default,,0000,0000,0000,,Now you probably expect to pay five, six, maybe seven thousand dollars a month for this, Dialogue: 0,0:04:18.44,0:04:23.27,Default,,0000,0000,0000,,but I'm giving it to you *for free*. Dialogue: 0,0:04:23.27,0:04:25.56,Default,,0000,0000,0000,,Jesus. Dialogue: 0,0:04:25.56,0:04:27.23,Default,,0000,0000,0000,,So enjoy play. Dialogue: 0,0:04:27.23,0:04:32.27,Default,,0000,0000,0000,,And let me know what you're playing, and don't use this to play shitty music. Dialogue: 0,0:04:32.27,9:59:59.99,Default,,0000,0000,0000,,Or I'll find you.