{"action":"created","comment":{"url":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/comments/22432211","id":22432211,"diff_hunk":"@@ -280,6 +280,25 @@ plugins.factory('userPlugins', function() {\n     imagePlugin.name = 'image';\n \n     /*\n+     * mp4 video Preview\n+     */\n+    var videoPlugin = new Plugin(function(message) {\n+\n+        var url = message.match(urlRegexp);\n+        var content = null;\n+\n+        if (url) {\n+            url = url[0]; /* Actually parse one url per message */\n+            if (url.match(/\\.(mp4|webm|ogv)$/)) {\n+                return '<video width=\"100%\"><source src=\"'+url+'\"></source></video>';","path":"js/plugins.js","position":14,"original_position":14,"commit_id":"02dfe584bc048631467b8c70892add5e9d447189","original_commit_id":"02dfe584bc048631467b8c70892add5e9d447189","user":{"login":"cormier","id":988906,"avatar_url":"https://avatars.githubusercontent.com/u/988906?v=3","gravatar_id":"","url":"https://api.github.com/users/cormier","html_url":"https://github.com/cormier","followers_url":"https://api.github.com/users/cormier/followers","following_url":"https://api.github.com/users/cormier/following{/other_user}","gists_url":"https://api.github.com/users/cormier/gists{/gist_id}","starred_url":"https://api.github.com/users/cormier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormier/subscriptions","organizations_url":"https://api.github.com/users/cormier/orgs","repos_url":"https://api.github.com/users/cormier/repos","events_url":"https://api.github.com/users/cormier/events{/privacy}","received_events_url":"https://api.github.com/users/cormier/received_events","type":"User","site_admin":false},"body":"Maybe that's a little bit big. I don't have a strong opinion on this, so what would you prefer? 75% 50%?","created_at":"2015-01-03T15:37:43Z","updated_at":"2015-01-03T15:37:43Z","html_url":"https://github.com/glowing-bear/glowing-bear/pull/529#discussion_r22432211","pull_request_url":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/529","_links":{"self":{"href":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/comments/22432211"},"html":{"href":"https://github.com/glowing-bear/glowing-bear/pull/529#discussion_r22432211"},"pull_request":{"href":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/529"}}},"pull_request":{"url":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/529","id":26779602,"html_url":"https://github.com/glowing-bear/glowing-bear/pull/529","diff_url":"https://github.com/glowing-bear/glowing-bear/pull/529.diff","patch_url":"https://github.com/glowing-bear/glowing-bear/pull/529.patch","issue_url":"https://api.github.com/repos/glowing-bear/glowing-bear/issues/529","number":529,"state":"open","locked":false,"title":"Display ogv, mp4 and webm videos inside a video tag","user":{"login":"cormier","id":988906,"avatar_url":"https://avatars.githubusercontent.com/u/988906?v=3","gravatar_id":"","url":"https://api.github.com/users/cormier","html_url":"https://github.com/cormier","followers_url":"https://api.github.com/users/cormier/followers","following_url":"https://api.github.com/users/cormier/following{/other_user}","gists_url":"https://api.github.com/users/cormier/gists{/gist_id}","starred_url":"https://api.github.com/users/cormier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormier/subscriptions","organizations_url":"https://api.github.com/users/cormier/orgs","repos_url":"https://api.github.com/users/cormier/repos","events_url":"https://api.github.com/users/cormier/events{/privacy}","received_events_url":"https://api.github.com/users/cormier/received_events","type":"User","site_admin":false},"body":"Add a plugin that displays mp4, ogv and webm videos inside a <video> tag","created_at":"2015-01-03T05:03:11Z","updated_at":"2015-01-03T15:37:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"530f1c2b96d185d6853e980f1e04c66c015edafe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/529/commits","review_comments_url":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/529/comments","review_comment_url":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/comments/{number}","comments_url":"https://api.github.com/repos/glowing-bear/glowing-bear/issues/529/comments","statuses_url":"https://api.github.com/repos/glowing-bear/glowing-bear/statuses/02dfe584bc048631467b8c70892add5e9d447189","head":{"label":"glowing-bear:add-video-support","ref":"add-video-support","sha":"02dfe584bc048631467b8c70892add5e9d447189","user":{"login":"glowing-bear","id":7386094,"avatar_url":"https://avatars.githubusercontent.com/u/7386094?v=3","gravatar_id":"","url":"https://api.github.com/users/glowing-bear","html_url":"https://github.com/glowing-bear","followers_url":"https://api.github.com/users/glowing-bear/followers","following_url":"https://api.github.com/users/glowing-bear/following{/other_user}","gists_url":"https://api.github.com/users/glowing-bear/gists{/gist_id}","starred_url":"https://api.github.com/users/glowing-bear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glowing-bear/subscriptions","organizations_url":"https://api.github.com/users/glowing-bear/orgs","repos_url":"https://api.github.com/users/glowing-bear/repos","events_url":"https://api.github.com/users/glowing-bear/events{/privacy}","received_events_url":"https://api.github.com/users/glowing-bear/received_events","type":"Organization","site_admin":false},"repo":{"id":8258806,"name":"glowing-bear","full_name":"glowing-bear/glowing-bear","owner":{"login":"glowing-bear","id":7386094,"avatar_url":"https://avatars.githubusercontent.com/u/7386094?v=3","gravatar_id":"","url":"https://api.github.com/users/glowing-bear","html_url":"https://github.com/glowing-bear","followers_url":"https://api.github.com/users/glowing-bear/followers","following_url":"https://api.github.com/users/glowing-bear/following{/other_user}","gists_url":"https://api.github.com/users/glowing-bear/gists{/gist_id}","starred_url":"https://api.github.com/users/glowing-bear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glowing-bear/subscriptions","organizations_url":"https://api.github.com/users/glowing-bear/orgs","repos_url":"https://api.github.com/users/glowing-bear/repos","events_url":"https://api.github.com/users/glowing-bear/events{/privacy}","received_events_url":"https://api.github.com/users/glowing-bear/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glowing-bear/glowing-bear","description":"A web client for WeeChat","fork":false,"url":"https://api.github.com/repos/glowing-bear/glowing-bear","forks_url":"https://api.github.com/repos/glowing-bear/glowing-bear/forks","keys_url":"https://api.github.com/repos/glowing-bear/glowing-bear/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glowing-bear/glowing-bear/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glowing-bear/glowing-bear/teams","hooks_url":"https://api.github.com/repos/glowing-bear/glowing-bear/hooks","issue_events_url":"https://api.github.com/repos/glowing-bear/glowing-bear/issues/events{/number}","events_url":"https://api.github.com/repos/glowing-bear/glowing-bear/events","assignees_url":"https://api.github.com/repos/glowing-bear/glowing-bear/assignees{/user}","branches_url":"https://api.github.com/repos/glowing-bear/glowing-bear/branches{/branch}","tags_url":"https://api.github.com/repos/glowing-bear/glowing-bear/tags","blobs_url":"https://api.github.com/repos/glowing-bear/glowing-bear/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glowing-bear/glowing-bear/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glowing-bear/glowing-bear/git/refs{/sha}","trees_url":"https://api.github.com/repos/glowing-bear/glowing-bear/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glowing-bear/glowing-bear/statuses/{sha}","languages_url":"https://api.github.com/repos/glowing-bear/glowing-bear/languages","stargazers_url":"https://api.github.com/repos/glowing-bear/glowing-bear/stargazers","contributors_url":"https://api.github.com/repos/glowing-bear/glowing-bear/contributors","subscribers_url":"https://api.github.com/repos/glowing-bear/glowing-bear/subscribers","subscription_url":"https://api.github.com/repos/glowing-bear/glowing-bear/subscription","commits_url":"https://api.github.com/repos/glowing-bear/glowing-bear/commits{/sha}","git_commits_url":"https://api.github.com/repos/glowing-bear/glowing-bear/git/commits{/sha}","comments_url":"https://api.github.com/repos/glowing-bear/glowing-bear/comments{/number}","issue_comment_url":"https://api.github.com/repos/glowing-bear/glowing-bear/issues/comments/{number}","contents_url":"https://api.github.com/repos/glowing-bear/glowing-bear/contents/{+path}","compare_url":"https://api.github.com/repos/glowing-bear/glowing-bear/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glowing-bear/glowing-bear/merges","archive_url":"https://api.github.com/repos/glowing-bear/glowing-bear/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glowing-bear/glowing-bear/downloads","issues_url":"https://api.github.com/repos/glowing-bear/glowing-bear/issues{/number}","pulls_url":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls{/number}","milestones_url":"https://api.github.com/repos/glowing-bear/glowing-bear/milestones{/number}","notifications_url":"https://api.github.com/repos/glowing-bear/glowing-bear/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glowing-bear/glowing-bear/labels{/name}","releases_url":"https://api.github.com/repos/glowing-bear/glowing-bear/releases{/id}","created_at":"2013-02-18T00:11:49Z","updated_at":"2014-12-30T05:49:55Z","pushed_at":"2015-01-03T05:02:11Z","git_url":"git://github.com/glowing-bear/glowing-bear.git","ssh_url":"git@github.com:glowing-bear/glowing-bear.git","clone_url":"https://github.com/glowing-bear/glowing-bear.git","svn_url":"https://github.com/glowing-bear/glowing-bear","homepage":"http://www.glowing-bear.org","size":6039,"stargazers_count":156,"watchers_count":156,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":35,"mirror_url":null,"open_issues_count":62,"forks":35,"open_issues":62,"watchers":156,"default_branch":"master"}},"base":{"label":"glowing-bear:master","ref":"master","sha":"82fc20ed0dc004bb0b45a1fbe423195738b2ef41","user":{"login":"glowing-bear","id":7386094,"avatar_url":"https://avatars.githubusercontent.com/u/7386094?v=3","gravatar_id":"","url":"https://api.github.com/users/glowing-bear","html_url":"https://github.com/glowing-bear","followers_url":"https://api.github.com/users/glowing-bear/followers","following_url":"https://api.github.com/users/glowing-bear/following{/other_user}","gists_url":"https://api.github.com/users/glowing-bear/gists{/gist_id}","starred_url":"https://api.github.com/users/glowing-bear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glowing-bear/subscriptions","organizations_url":"https://api.github.com/users/glowing-bear/orgs","repos_url":"https://api.github.com/users/glowing-bear/repos","events_url":"https://api.github.com/users/glowing-bear/events{/privacy}","received_events_url":"https://api.github.com/users/glowing-bear/received_events","type":"Organization","site_admin":false},"repo":{"id":8258806,"name":"glowing-bear","full_name":"glowing-bear/glowing-bear","owner":{"login":"glowing-bear","id":7386094,"avatar_url":"https://avatars.githubusercontent.com/u/7386094?v=3","gravatar_id":"","url":"https://api.github.com/users/glowing-bear","html_url":"https://github.com/glowing-bear","followers_url":"https://api.github.com/users/glowing-bear/followers","following_url":"https://api.github.com/users/glowing-bear/following{/other_user}","gists_url":"https://api.github.com/users/glowing-bear/gists{/gist_id}","starred_url":"https://api.github.com/users/glowing-bear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glowing-bear/subscriptions","organizations_url":"https://api.github.com/users/glowing-bear/orgs","repos_url":"https://api.github.com/users/glowing-bear/repos","events_url":"https://api.github.com/users/glowing-bear/events{/privacy}","received_events_url":"https://api.github.com/users/glowing-bear/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glowing-bear/glowing-bear","description":"A web client for WeeChat","fork":false,"url":"https://api.github.com/repos/glowing-bear/glowing-bear","forks_url":"https://api.github.com/repos/glowing-bear/glowing-bear/forks","keys_url":"https://api.github.com/repos/glowing-bear/glowing-bear/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glowing-bear/glowing-bear/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glowing-bear/glowing-bear/teams","hooks_url":"https://api.github.com/repos/glowing-bear/glowing-bear/hooks","issue_events_url":"https://api.github.com/repos/glowing-bear/glowing-bear/issues/events{/number}","events_url":"https://api.github.com/repos/glowing-bear/glowing-bear/events","assignees_url":"https://api.github.com/repos/glowing-bear/glowing-bear/assignees{/user}","branches_url":"https://api.github.com/repos/glowing-bear/glowing-bear/branches{/branch}","tags_url":"https://api.github.com/repos/glowing-bear/glowing-bear/tags","blobs_url":"https://api.github.com/repos/glowing-bear/glowing-bear/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glowing-bear/glowing-bear/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glowing-bear/glowing-bear/git/refs{/sha}","trees_url":"https://api.github.com/repos/glowing-bear/glowing-bear/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glowing-bear/glowing-bear/statuses/{sha}","languages_url":"https://api.github.com/repos/glowing-bear/glowing-bear/languages","stargazers_url":"https://api.github.com/repos/glowing-bear/glowing-bear/stargazers","contributors_url":"https://api.github.com/repos/glowing-bear/glowing-bear/contributors","subscribers_url":"https://api.github.com/repos/glowing-bear/glowing-bear/subscribers","subscription_url":"https://api.github.com/repos/glowing-bear/glowing-bear/subscription","commits_url":"https://api.github.com/repos/glowing-bear/glowing-bear/commits{/sha}","git_commits_url":"https://api.github.com/repos/glowing-bear/glowing-bear/git/commits{/sha}","comments_url":"https://api.github.com/repos/glowing-bear/glowing-bear/comments{/number}","issue_comment_url":"https://api.github.com/repos/glowing-bear/glowing-bear/issues/comments/{number}","contents_url":"https://api.github.com/repos/glowing-bear/glowing-bear/contents/{+path}","compare_url":"https://api.github.com/repos/glowing-bear/glowing-bear/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glowing-bear/glowing-bear/merges","archive_url":"https://api.github.com/repos/glowing-bear/glowing-bear/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glowing-bear/glowing-bear/downloads","issues_url":"https://api.github.com/repos/glowing-bear/glowing-bear/issues{/number}","pulls_url":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls{/number}","milestones_url":"https://api.github.com/repos/glowing-bear/glowing-bear/milestones{/number}","notifications_url":"https://api.github.com/repos/glowing-bear/glowing-bear/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glowing-bear/glowing-bear/labels{/name}","releases_url":"https://api.github.com/repos/glowing-bear/glowing-bear/releases{/id}","created_at":"2013-02-18T00:11:49Z","updated_at":"2014-12-30T05:49:55Z","pushed_at":"2015-01-03T05:02:11Z","git_url":"git://github.com/glowing-bear/glowing-bear.git","ssh_url":"git@github.com:glowing-bear/glowing-bear.git","clone_url":"https://github.com/glowing-bear/glowing-bear.git","svn_url":"https://github.com/glowing-bear/glowing-bear","homepage":"http://www.glowing-bear.org","size":6039,"stargazers_count":156,"watchers_count":156,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":35,"mirror_url":null,"open_issues_count":62,"forks":35,"open_issues":62,"watchers":156,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/529"},"html":{"href":"https://github.com/glowing-bear/glowing-bear/pull/529"},"issue":{"href":"https://api.github.com/repos/glowing-bear/glowing-bear/issues/529"},"comments":{"href":"https://api.github.com/repos/glowing-bear/glowing-bear/issues/529/comments"},"review_comments":{"href":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/529/comments"},"review_comment":{"href":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/glowing-bear/glowing-bear/pulls/529/commits"},"statuses":{"href":"https://api.github.com/repos/glowing-bear/glowing-bear/statuses/02dfe584bc048631467b8c70892add5e9d447189"}}}}