{"action":"closed","number":26,"pull_request":{"url":"https://api.github.com/repos/ItsJuice/juicebox/pulls/26","id":79352306,"html_url":"https://github.com/ItsJuice/juicebox/pull/26","diff_url":"https://github.com/ItsJuice/juicebox/pull/26.diff","patch_url":"https://github.com/ItsJuice/juicebox/pull/26.patch","issue_url":"https://api.github.com/repos/ItsJuice/juicebox/issues/26","number":26,"state":"closed","locked":false,"title":"feat(stream): add Stream server & supervisor","user":{"login":"OCannings","id":950193,"avatar_url":"https://avatars.githubusercontent.com/u/950193?v=3","gravatar_id":"","url":"https://api.github.com/users/OCannings","html_url":"https://github.com/OCannings","followers_url":"https://api.github.com/users/OCannings/followers","following_url":"https://api.github.com/users/OCannings/following{/other_user}","gists_url":"https://api.github.com/users/OCannings/gists{/gist_id}","starred_url":"https://api.github.com/users/OCannings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCannings/subscriptions","organizations_url":"https://api.github.com/users/OCannings/orgs","repos_url":"https://api.github.com/users/OCannings/repos","events_url":"https://api.github.com/users/OCannings/events{/privacy}","received_events_url":"https://api.github.com/users/OCannings/received_events","type":"User","site_admin":false},"body":"The `Juicebox.Stream.Server` and `Juicebox.Stream.Supervisor` modules\r\nhave been introduced.\r\n\r\nThe Server API is as follows:\r\n\r\n*.add(stream_id, video)*\r\nPlays the video if one is not already playing, otherwise adds it to the\r\nqueue.\r\n\r\n*.skip(stream_id)*\r\nSkips the currently playing video\r\n\r\n*.remaining_time(stream_id)*\r\nReturns (in ms) the playback time remaining for the current video\r\n\r\n*.playing(stream_id)*\r\nReturns the currently playing video (%Juicebox.Youtube.Video{})\r\n\r\nVideos will continue to automatically play until the queue is empty.\r\nAdding additional videos will auto-restart playback.\r\n\r\nTODO:\r\n* Connect Stream to Phoenix app\r\n* Support ordered stream (by upvotes)","created_at":"2016-07-29T12:33:28Z","updated_at":"2016-08-22T12:32:13Z","closed_at":"2016-08-22T12:32:12Z","merged_at":"2016-08-22T12:32:12Z","merge_commit_sha":"8c7608cef8b066fe05f7b6ded9a9c6410e9b3551","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ItsJuice/juicebox/pulls/26/commits","review_comments_url":"https://api.github.com/repos/ItsJuice/juicebox/pulls/26/comments","review_comment_url":"https://api.github.com/repos/ItsJuice/juicebox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ItsJuice/juicebox/issues/26/comments","statuses_url":"https://api.github.com/repos/ItsJuice/juicebox/statuses/ede1a6829bfb8f6f12db150a9563e0a37ca6447e","head":{"label":"ItsJuice:feat/stream","ref":"feat/stream","sha":"ede1a6829bfb8f6f12db150a9563e0a37ca6447e","user":{"login":"ItsJuice","id":2734031,"avatar_url":"https://avatars.githubusercontent.com/u/2734031?v=3","gravatar_id":"","url":"https://api.github.com/users/ItsJuice","html_url":"https://github.com/ItsJuice","followers_url":"https://api.github.com/users/ItsJuice/followers","following_url":"https://api.github.com/users/ItsJuice/following{/other_user}","gists_url":"https://api.github.com/users/ItsJuice/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsJuice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsJuice/subscriptions","organizations_url":"https://api.github.com/users/ItsJuice/orgs","repos_url":"https://api.github.com/users/ItsJuice/repos","events_url":"https://api.github.com/users/ItsJuice/events{/privacy}","received_events_url":"https://api.github.com/users/ItsJuice/received_events","type":"Organization","site_admin":false},"repo":{"id":57212573,"name":"juicebox","full_name":"ItsJuice/juicebox","owner":{"login":"ItsJuice","id":2734031,"avatar_url":"https://avatars.githubusercontent.com/u/2734031?v=3","gravatar_id":"","url":"https://api.github.com/users/ItsJuice","html_url":"https://github.com/ItsJuice","followers_url":"https://api.github.com/users/ItsJuice/followers","following_url":"https://api.github.com/users/ItsJuice/following{/other_user}","gists_url":"https://api.github.com/users/ItsJuice/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsJuice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsJuice/subscriptions","organizations_url":"https://api.github.com/users/ItsJuice/orgs","repos_url":"https://api.github.com/users/ItsJuice/repos","events_url":"https://api.github.com/users/ItsJuice/events{/privacy}","received_events_url":"https://api.github.com/users/ItsJuice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ItsJuice/juicebox","description":"Our elixir jukebox","fork":false,"url":"https://api.github.com/repos/ItsJuice/juicebox","forks_url":"https://api.github.com/repos/ItsJuice/juicebox/forks","keys_url":"https://api.github.com/repos/ItsJuice/juicebox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ItsJuice/juicebox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ItsJuice/juicebox/teams","hooks_url":"https://api.github.com/repos/ItsJuice/juicebox/hooks","issue_events_url":"https://api.github.com/repos/ItsJuice/juicebox/issues/events{/number}","events_url":"https://api.github.com/repos/ItsJuice/juicebox/events","assignees_url":"https://api.github.com/repos/ItsJuice/juicebox/assignees{/user}","branches_url":"https://api.github.com/repos/ItsJuice/juicebox/branches{/branch}","tags_url":"https://api.github.com/repos/ItsJuice/juicebox/tags","blobs_url":"https://api.github.com/repos/ItsJuice/juicebox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ItsJuice/juicebox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ItsJuice/juicebox/git/refs{/sha}","trees_url":"https://api.github.com/repos/ItsJuice/juicebox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ItsJuice/juicebox/statuses/{sha}","languages_url":"https://api.github.com/repos/ItsJuice/juicebox/languages","stargazers_url":"https://api.github.com/repos/ItsJuice/juicebox/stargazers","contributors_url":"https://api.github.com/repos/ItsJuice/juicebox/contributors","subscribers_url":"https://api.github.com/repos/ItsJuice/juicebox/subscribers","subscription_url":"https://api.github.com/repos/ItsJuice/juicebox/subscription","commits_url":"https://api.github.com/repos/ItsJuice/juicebox/commits{/sha}","git_commits_url":"https://api.github.com/repos/ItsJuice/juicebox/git/commits{/sha}","comments_url":"https://api.github.com/repos/ItsJuice/juicebox/comments{/number}","issue_comment_url":"https://api.github.com/repos/ItsJuice/juicebox/issues/comments{/number}","contents_url":"https://api.github.com/repos/ItsJuice/juicebox/contents/{+path}","compare_url":"https://api.github.com/repos/ItsJuice/juicebox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ItsJuice/juicebox/merges","archive_url":"https://api.github.com/repos/ItsJuice/juicebox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ItsJuice/juicebox/downloads","issues_url":"https://api.github.com/repos/ItsJuice/juicebox/issues{/number}","pulls_url":"https://api.github.com/repos/ItsJuice/juicebox/pulls{/number}","milestones_url":"https://api.github.com/repos/ItsJuice/juicebox/milestones{/number}","notifications_url":"https://api.github.com/repos/ItsJuice/juicebox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ItsJuice/juicebox/labels{/name}","releases_url":"https://api.github.com/repos/ItsJuice/juicebox/releases{/id}","deployments_url":"https://api.github.com/repos/ItsJuice/juicebox/deployments","created_at":"2016-04-27T12:43:21Z","updated_at":"2016-05-13T13:18:23Z","pushed_at":"2016-08-22T12:32:12Z","git_url":"git://github.com/ItsJuice/juicebox.git","ssh_url":"git@github.com:ItsJuice/juicebox.git","clone_url":"https://github.com/ItsJuice/juicebox.git","svn_url":"https://github.com/ItsJuice/juicebox","homepage":null,"size":142,"stargazers_count":5,"watchers_count":5,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":5,"default_branch":"master"}},"base":{"label":"ItsJuice:master","ref":"master","sha":"66e0ec74556bcf25ba574a6a5eac2eb73077dfe9","user":{"login":"ItsJuice","id":2734031,"avatar_url":"https://avatars.githubusercontent.com/u/2734031?v=3","gravatar_id":"","url":"https://api.github.com/users/ItsJuice","html_url":"https://github.com/ItsJuice","followers_url":"https://api.github.com/users/ItsJuice/followers","following_url":"https://api.github.com/users/ItsJuice/following{/other_user}","gists_url":"https://api.github.com/users/ItsJuice/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsJuice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsJuice/subscriptions","organizations_url":"https://api.github.com/users/ItsJuice/orgs","repos_url":"https://api.github.com/users/ItsJuice/repos","events_url":"https://api.github.com/users/ItsJuice/events{/privacy}","received_events_url":"https://api.github.com/users/ItsJuice/received_events","type":"Organization","site_admin":false},"repo":{"id":57212573,"name":"juicebox","full_name":"ItsJuice/juicebox","owner":{"login":"ItsJuice","id":2734031,"avatar_url":"https://avatars.githubusercontent.com/u/2734031?v=3","gravatar_id":"","url":"https://api.github.com/users/ItsJuice","html_url":"https://github.com/ItsJuice","followers_url":"https://api.github.com/users/ItsJuice/followers","following_url":"https://api.github.com/users/ItsJuice/following{/other_user}","gists_url":"https://api.github.com/users/ItsJuice/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsJuice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsJuice/subscriptions","organizations_url":"https://api.github.com/users/ItsJuice/orgs","repos_url":"https://api.github.com/users/ItsJuice/repos","events_url":"https://api.github.com/users/ItsJuice/events{/privacy}","received_events_url":"https://api.github.com/users/ItsJuice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ItsJuice/juicebox","description":"Our elixir jukebox","fork":false,"url":"https://api.github.com/repos/ItsJuice/juicebox","forks_url":"https://api.github.com/repos/ItsJuice/juicebox/forks","keys_url":"https://api.github.com/repos/ItsJuice/juicebox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ItsJuice/juicebox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ItsJuice/juicebox/teams","hooks_url":"https://api.github.com/repos/ItsJuice/juicebox/hooks","issue_events_url":"https://api.github.com/repos/ItsJuice/juicebox/issues/events{/number}","events_url":"https://api.github.com/repos/ItsJuice/juicebox/events","assignees_url":"https://api.github.com/repos/ItsJuice/juicebox/assignees{/user}","branches_url":"https://api.github.com/repos/ItsJuice/juicebox/branches{/branch}","tags_url":"https://api.github.com/repos/ItsJuice/juicebox/tags","blobs_url":"https://api.github.com/repos/ItsJuice/juicebox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ItsJuice/juicebox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ItsJuice/juicebox/git/refs{/sha}","trees_url":"https://api.github.com/repos/ItsJuice/juicebox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ItsJuice/juicebox/statuses/{sha}","languages_url":"https://api.github.com/repos/ItsJuice/juicebox/languages","stargazers_url":"https://api.github.com/repos/ItsJuice/juicebox/stargazers","contributors_url":"https://api.github.com/repos/ItsJuice/juicebox/contributors","subscribers_url":"https://api.github.com/repos/ItsJuice/juicebox/subscribers","subscription_url":"https://api.github.com/repos/ItsJuice/juicebox/subscription","commits_url":"https://api.github.com/repos/ItsJuice/juicebox/commits{/sha}","git_commits_url":"https://api.github.com/repos/ItsJuice/juicebox/git/commits{/sha}","comments_url":"https://api.github.com/repos/ItsJuice/juicebox/comments{/number}","issue_comment_url":"https://api.github.com/repos/ItsJuice/juicebox/issues/comments{/number}","contents_url":"https://api.github.com/repos/ItsJuice/juicebox/contents/{+path}","compare_url":"https://api.github.com/repos/ItsJuice/juicebox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ItsJuice/juicebox/merges","archive_url":"https://api.github.com/repos/ItsJuice/juicebox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ItsJuice/juicebox/downloads","issues_url":"https://api.github.com/repos/ItsJuice/juicebox/issues{/number}","pulls_url":"https://api.github.com/repos/ItsJuice/juicebox/pulls{/number}","milestones_url":"https://api.github.com/repos/ItsJuice/juicebox/milestones{/number}","notifications_url":"https://api.github.com/repos/ItsJuice/juicebox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ItsJuice/juicebox/labels{/name}","releases_url":"https://api.github.com/repos/ItsJuice/juicebox/releases{/id}","deployments_url":"https://api.github.com/repos/ItsJuice/juicebox/deployments","created_at":"2016-04-27T12:43:21Z","updated_at":"2016-05-13T13:18:23Z","pushed_at":"2016-08-22T12:32:12Z","git_url":"git://github.com/ItsJuice/juicebox.git","ssh_url":"git@github.com:ItsJuice/juicebox.git","clone_url":"https://github.com/ItsJuice/juicebox.git","svn_url":"https://github.com/ItsJuice/juicebox","homepage":null,"size":142,"stargazers_count":5,"watchers_count":5,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ItsJuice/juicebox/pulls/26"},"html":{"href":"https://github.com/ItsJuice/juicebox/pull/26"},"issue":{"href":"https://api.github.com/repos/ItsJuice/juicebox/issues/26"},"comments":{"href":"https://api.github.com/repos/ItsJuice/juicebox/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/ItsJuice/juicebox/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/ItsJuice/juicebox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ItsJuice/juicebox/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/ItsJuice/juicebox/statuses/ede1a6829bfb8f6f12db150a9563e0a37ca6447e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"OCannings","id":950193,"avatar_url":"https://avatars.githubusercontent.com/u/950193?v=3","gravatar_id":"","url":"https://api.github.com/users/OCannings","html_url":"https://github.com/OCannings","followers_url":"https://api.github.com/users/OCannings/followers","following_url":"https://api.github.com/users/OCannings/following{/other_user}","gists_url":"https://api.github.com/users/OCannings/gists{/gist_id}","starred_url":"https://api.github.com/users/OCannings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCannings/subscriptions","organizations_url":"https://api.github.com/users/OCannings/orgs","repos_url":"https://api.github.com/users/OCannings/repos","events_url":"https://api.github.com/users/OCannings/events{/privacy}","received_events_url":"https://api.github.com/users/OCannings/received_events","type":"User","site_admin":false},"comments":1,"review_comments":1,"commits":4,"additions":376,"deletions":4,"changed_files":9}}
{"actor":{"display_login":"OCannings"}}