{"action":"created","comment":{"url":"https://api.github.com/repos/sharktank/ft-frontend/pulls/comments/36111576","id":36111576,"diff_hunk":"@@ -1,27 +1,118 @@\n 'use strict';\n \n var React = require('react');\n+var Firebase = require(\"firebase\");\n var SpaceJam = require('../../plugins/space-jam-music-source/src/index');\n+var simpleStream = require('simple-stream');\n+var Stream = simpleStream.Stream;\n+var mergeStreams = simpleStream.mergeStreams;\n var sc;\n+var songID = 'spacejam:windfall'\n \n-SpaceJam.MusicSource.playSong('spacejam:windfall').then(function(SongController) {\n+var fbRef = new Firebase(\"https://fiesta-turtle.firebaseio.com/\");\n+\n+// Stream that updates when a user is playing\n+// TODO fix this along with the sc hack\n+var playingStream = Stream();\n+\n+SpaceJam.MusicSource.playSong(songID).then(function(SongController) {\n   sc = SongController;\n+  sc.onPlayUpdate(function(update){\n+    if (update.type == \"SongPlaying\") {\n+      playingStream.update(update);\n+    }\n+  });\n+\n });\n \n module.exports = React.createClass({\n+  componentWillMount: function(){\n+    this.props.isFollowingStream.observe(function(isFollowing){\n+      this.setState({isFollowing:isFollowing});\n+    }.bind(this));\n+\n+    this.props.isBroadCastingStream.observe(function(isBroadcasting){\n+      this.setState({isBroadcasting: isBroadcasting});\n+    }.bind(this));\n+\n+    var broadcastingAndBroadcastNameStream = mergeStreams(this.props.broadcastNameStream, this.props.isBroadCastingStream,","path":"app/js/player.js","position":39,"original_position":39,"commit_id":"19d03b38909bece40331d95a40d93eac90fedd69","original_commit_id":"19d03b38909bece40331d95a40d93eac90fedd69","user":{"login":"akenn","id":405000,"avatar_url":"https://avatars.githubusercontent.com/u/405000?v=3","gravatar_id":"","url":"https://api.github.com/users/akenn","html_url":"https://github.com/akenn","followers_url":"https://api.github.com/users/akenn/followers","following_url":"https://api.github.com/users/akenn/following{/other_user}","gists_url":"https://api.github.com/users/akenn/gists{/gist_id}","starred_url":"https://api.github.com/users/akenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akenn/subscriptions","organizations_url":"https://api.github.com/users/akenn/orgs","repos_url":"https://api.github.com/users/akenn/repos","events_url":"https://api.github.com/users/akenn/events{/privacy}","received_events_url":"https://api.github.com/users/akenn/received_events","type":"User","site_admin":false},"body":"Why are these streams being merged?","created_at":"2015-08-03T17:57:40Z","updated_at":"2015-08-03T17:57:40Z","html_url":"https://github.com/sharktank/ft-frontend/pull/3#discussion_r36111576","pull_request_url":"https://api.github.com/repos/sharktank/ft-frontend/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sharktank/ft-frontend/pulls/comments/36111576"},"html":{"href":"https://github.com/sharktank/ft-frontend/pull/3#discussion_r36111576"},"pull_request":{"href":"https://api.github.com/repos/sharktank/ft-frontend/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sharktank/ft-frontend/pulls/3","id":41088298,"html_url":"https://github.com/sharktank/ft-frontend/pull/3","diff_url":"https://github.com/sharktank/ft-frontend/pull/3.diff","patch_url":"https://github.com/sharktank/ft-frontend/pull/3.patch","issue_url":"https://api.github.com/repos/sharktank/ft-frontend/issues/3","number":3,"state":"open","locked":false,"title":"Broadcast","user":{"login":"MarcoPolo","id":594035,"avatar_url":"https://avatars.githubusercontent.com/u/594035?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcoPolo","html_url":"https://github.com/MarcoPolo","followers_url":"https://api.github.com/users/MarcoPolo/followers","following_url":"https://api.github.com/users/MarcoPolo/following{/other_user}","gists_url":"https://api.github.com/users/MarcoPolo/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoPolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoPolo/subscriptions","organizations_url":"https://api.github.com/users/MarcoPolo/orgs","repos_url":"https://api.github.com/users/MarcoPolo/repos","events_url":"https://api.github.com/users/MarcoPolo/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoPolo/received_events","type":"User","site_admin":false},"body":"First mega hack version of broadcast :P ","created_at":"2015-07-29T05:28:35Z","updated_at":"2015-08-03T17:57:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7bdea7f40de775aab2ad4fec5bd76c715704d7e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sharktank/ft-frontend/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sharktank/ft-frontend/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sharktank/ft-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sharktank/ft-frontend/issues/3/comments","statuses_url":"https://api.github.com/repos/sharktank/ft-frontend/statuses/19d03b38909bece40331d95a40d93eac90fedd69","head":{"label":"sharktank:broadcast","ref":"broadcast","sha":"19d03b38909bece40331d95a40d93eac90fedd69","user":{"login":"sharktank","id":848334,"avatar_url":"https://avatars.githubusercontent.com/u/848334?v=3","gravatar_id":"","url":"https://api.github.com/users/sharktank","html_url":"https://github.com/sharktank","followers_url":"https://api.github.com/users/sharktank/followers","following_url":"https://api.github.com/users/sharktank/following{/other_user}","gists_url":"https://api.github.com/users/sharktank/gists{/gist_id}","starred_url":"https://api.github.com/users/sharktank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharktank/subscriptions","organizations_url":"https://api.github.com/users/sharktank/orgs","repos_url":"https://api.github.com/users/sharktank/repos","events_url":"https://api.github.com/users/sharktank/events{/privacy}","received_events_url":"https://api.github.com/users/sharktank/received_events","type":"Organization","site_admin":false},"repo":{"id":39666202,"name":"ft-frontend","full_name":"sharktank/ft-frontend","owner":{"login":"sharktank","id":848334,"avatar_url":"https://avatars.githubusercontent.com/u/848334?v=3","gravatar_id":"","url":"https://api.github.com/users/sharktank","html_url":"https://github.com/sharktank","followers_url":"https://api.github.com/users/sharktank/followers","following_url":"https://api.github.com/users/sharktank/following{/other_user}","gists_url":"https://api.github.com/users/sharktank/gists{/gist_id}","starred_url":"https://api.github.com/users/sharktank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharktank/subscriptions","organizations_url":"https://api.github.com/users/sharktank/orgs","repos_url":"https://api.github.com/users/sharktank/repos","events_url":"https://api.github.com/users/sharktank/events{/privacy}","received_events_url":"https://api.github.com/users/sharktank/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sharktank/ft-frontend","description":"","fork":false,"url":"https://api.github.com/repos/sharktank/ft-frontend","forks_url":"https://api.github.com/repos/sharktank/ft-frontend/forks","keys_url":"https://api.github.com/repos/sharktank/ft-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sharktank/ft-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sharktank/ft-frontend/teams","hooks_url":"https://api.github.com/repos/sharktank/ft-frontend/hooks","issue_events_url":"https://api.github.com/repos/sharktank/ft-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/sharktank/ft-frontend/events","assignees_url":"https://api.github.com/repos/sharktank/ft-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/sharktank/ft-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/sharktank/ft-frontend/tags","blobs_url":"https://api.github.com/repos/sharktank/ft-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sharktank/ft-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sharktank/ft-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/sharktank/ft-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sharktank/ft-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/sharktank/ft-frontend/languages","stargazers_url":"https://api.github.com/repos/sharktank/ft-frontend/stargazers","contributors_url":"https://api.github.com/repos/sharktank/ft-frontend/contributors","subscribers_url":"https://api.github.com/repos/sharktank/ft-frontend/subscribers","subscription_url":"https://api.github.com/repos/sharktank/ft-frontend/subscription","commits_url":"https://api.github.com/repos/sharktank/ft-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/sharktank/ft-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/sharktank/ft-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/sharktank/ft-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/sharktank/ft-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/sharktank/ft-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sharktank/ft-frontend/merges","archive_url":"https://api.github.com/repos/sharktank/ft-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sharktank/ft-frontend/downloads","issues_url":"https://api.github.com/repos/sharktank/ft-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/sharktank/ft-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/sharktank/ft-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/sharktank/ft-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sharktank/ft-frontend/labels{/name}","releases_url":"https://api.github.com/repos/sharktank/ft-frontend/releases{/id}","created_at":"2015-07-25T00:46:07Z","updated_at":"2015-07-25T01:47:34Z","pushed_at":"2015-07-29T05:28:35Z","git_url":"git://github.com/sharktank/ft-frontend.git","ssh_url":"git@github.com:sharktank/ft-frontend.git","clone_url":"https://github.com/sharktank/ft-frontend.git","svn_url":"https://github.com/sharktank/ft-frontend","homepage":null,"size":316,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"sharktank:master","ref":"master","sha":"02ed3578ee3c62c9f99ac284c80629cb34212e6b","user":{"login":"sharktank","id":848334,"avatar_url":"https://avatars.githubusercontent.com/u/848334?v=3","gravatar_id":"","url":"https://api.github.com/users/sharktank","html_url":"https://github.com/sharktank","followers_url":"https://api.github.com/users/sharktank/followers","following_url":"https://api.github.com/users/sharktank/following{/other_user}","gists_url":"https://api.github.com/users/sharktank/gists{/gist_id}","starred_url":"https://api.github.com/users/sharktank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharktank/subscriptions","organizations_url":"https://api.github.com/users/sharktank/orgs","repos_url":"https://api.github.com/users/sharktank/repos","events_url":"https://api.github.com/users/sharktank/events{/privacy}","received_events_url":"https://api.github.com/users/sharktank/received_events","type":"Organization","site_admin":false},"repo":{"id":39666202,"name":"ft-frontend","full_name":"sharktank/ft-frontend","owner":{"login":"sharktank","id":848334,"avatar_url":"https://avatars.githubusercontent.com/u/848334?v=3","gravatar_id":"","url":"https://api.github.com/users/sharktank","html_url":"https://github.com/sharktank","followers_url":"https://api.github.com/users/sharktank/followers","following_url":"https://api.github.com/users/sharktank/following{/other_user}","gists_url":"https://api.github.com/users/sharktank/gists{/gist_id}","starred_url":"https://api.github.com/users/sharktank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharktank/subscriptions","organizations_url":"https://api.github.com/users/sharktank/orgs","repos_url":"https://api.github.com/users/sharktank/repos","events_url":"https://api.github.com/users/sharktank/events{/privacy}","received_events_url":"https://api.github.com/users/sharktank/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sharktank/ft-frontend","description":"","fork":false,"url":"https://api.github.com/repos/sharktank/ft-frontend","forks_url":"https://api.github.com/repos/sharktank/ft-frontend/forks","keys_url":"https://api.github.com/repos/sharktank/ft-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sharktank/ft-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sharktank/ft-frontend/teams","hooks_url":"https://api.github.com/repos/sharktank/ft-frontend/hooks","issue_events_url":"https://api.github.com/repos/sharktank/ft-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/sharktank/ft-frontend/events","assignees_url":"https://api.github.com/repos/sharktank/ft-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/sharktank/ft-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/sharktank/ft-frontend/tags","blobs_url":"https://api.github.com/repos/sharktank/ft-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sharktank/ft-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sharktank/ft-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/sharktank/ft-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sharktank/ft-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/sharktank/ft-frontend/languages","stargazers_url":"https://api.github.com/repos/sharktank/ft-frontend/stargazers","contributors_url":"https://api.github.com/repos/sharktank/ft-frontend/contributors","subscribers_url":"https://api.github.com/repos/sharktank/ft-frontend/subscribers","subscription_url":"https://api.github.com/repos/sharktank/ft-frontend/subscription","commits_url":"https://api.github.com/repos/sharktank/ft-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/sharktank/ft-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/sharktank/ft-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/sharktank/ft-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/sharktank/ft-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/sharktank/ft-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sharktank/ft-frontend/merges","archive_url":"https://api.github.com/repos/sharktank/ft-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sharktank/ft-frontend/downloads","issues_url":"https://api.github.com/repos/sharktank/ft-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/sharktank/ft-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/sharktank/ft-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/sharktank/ft-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sharktank/ft-frontend/labels{/name}","releases_url":"https://api.github.com/repos/sharktank/ft-frontend/releases{/id}","created_at":"2015-07-25T00:46:07Z","updated_at":"2015-07-25T01:47:34Z","pushed_at":"2015-07-29T05:28:35Z","git_url":"git://github.com/sharktank/ft-frontend.git","ssh_url":"git@github.com:sharktank/ft-frontend.git","clone_url":"https://github.com/sharktank/ft-frontend.git","svn_url":"https://github.com/sharktank/ft-frontend","homepage":null,"size":316,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sharktank/ft-frontend/pulls/3"},"html":{"href":"https://github.com/sharktank/ft-frontend/pull/3"},"issue":{"href":"https://api.github.com/repos/sharktank/ft-frontend/issues/3"},"comments":{"href":"https://api.github.com/repos/sharktank/ft-frontend/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sharktank/ft-frontend/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sharktank/ft-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sharktank/ft-frontend/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sharktank/ft-frontend/statuses/19d03b38909bece40331d95a40d93eac90fedd69"}}}}