{"action":"created","comment":{"url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/comments/222318216","pull_request_review_id":161174416,"id":222318216,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjMxODIxNg==","diff_hunk":"@@ -1,59 +1,67 @@\n angular.module('videoApp', []).directive('videoplayer', function() {\n   return {\n     restrict: 'E',\n+    scope: {\n+      videoSrc: '@',\n+      videoWidth: '@',\n+      autoplay: '@',\n+      muted: '@'\n+    },\n     link: function(scope, element, attrs) {\n-      angular.element(document).find('head').prepend('<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.3.1/css/all.css\" integrity=\"sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU\" crossorigin=\"anonymous\">');\n-      angular.element(document).find('head').prepend('<link href=\"./videoplayer_plugin/videoplayer.css\" rel=\"stylesheet\" type=\"text/css\">');\n-      var video = element[0].querySelector(\".videoplayer\");\n-      var controls = element[0].querySelector(\".controls_videoplayer\");\n-      video.src = attrs.videoSrc;\n-      video.width = attrs.videoWidth;\n-      controls.style.width = attrs.videoWidth + 'px';\n-      var playBtn = element[0].querySelector(\".playBtn\");\n-      var playBtnIcon = playBtn.querySelector(\"i\");\n-      var timer = element[0].querySelector(\".timer\");\n-      var durationDiv = element[0].querySelector(\".duration\");\n-      var rewind = element[0].querySelector(\".rewind\");\n-      var sound = element[0].querySelector(\".sound\");\n-      var soundIcon = sound.querySelector(\"i\");\n-      var volume = element[0].querySelector(\".volume\");\n-      var resize = element[0].querySelector(\".resize\");\n-      var stopBtn = element[0].querySelector(\".stopBtn\");\n-      if (attrs.autoplay !== undefined) {\n+      scope.rewind = 0;\n+      scope.duration = \"00:00\";\n+      scope.timer = \"00:00\";\n+      scope.volume = 1;\n+      scope.paused = true;\n+      scope.soundOn = true;\n+      var video = angular.element(element.children()[0]).children()[0];\n+      if (scope.autoplay !== undefined) {","path":"videoplayer_plugin/videoplayer.js","position":36,"original_position":36,"commit_id":"3e422ae6f8ad19fe025b4ae7827f2c7fa608100d","original_commit_id":"a490b815dead81f4ca607b9ba51688bb7ca91953","user":{"login":"soul-wish","id":1968098,"node_id":"MDQ6VXNlcjE5NjgwOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1968098?v=4","gravatar_id":"","url":"https://api.github.com/users/soul-wish","html_url":"https://github.com/soul-wish","followers_url":"https://api.github.com/users/soul-wish/followers","following_url":"https://api.github.com/users/soul-wish/following{/other_user}","gists_url":"https://api.github.com/users/soul-wish/gists{/gist_id}","starred_url":"https://api.github.com/users/soul-wish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soul-wish/subscriptions","organizations_url":"https://api.github.com/users/soul-wish/orgs","repos_url":"https://api.github.com/users/soul-wish/repos","events_url":"https://api.github.com/users/soul-wish/events{/privacy}","received_events_url":"https://api.github.com/users/soul-wish/received_events","type":"User","site_admin":false},"body":"Почему? Сможешь разобраться?","created_at":"2018-10-03T13:53:22Z","updated_at":"2018-10-03T13:53:22Z","html_url":"https://github.com/SvtlnR/videoplayerAngularJS/pull/1#discussion_r222318216","pull_request_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/comments/222318216"},"html":{"href":"https://github.com/SvtlnR/videoplayerAngularJS/pull/1#discussion_r222318216"},"pull_request":{"href":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/1"}},"in_reply_to_id":222282512},"pull_request":{"url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/1","id":219279070,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5Mjc5MDcw","html_url":"https://github.com/SvtlnR/videoplayerAngularJS/pull/1","diff_url":"https://github.com/SvtlnR/videoplayerAngularJS/pull/1.diff","patch_url":"https://github.com/SvtlnR/videoplayerAngularJS/pull/1.patch","issue_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/issues/1","number":1,"state":"open","locked":false,"title":"Working with isolated scope","user":{"login":"SvtlnR","id":40490461,"node_id":"MDQ6VXNlcjQwNDkwNDYx","avatar_url":"https://avatars0.githubusercontent.com/u/40490461?v=4","gravatar_id":"","url":"https://api.github.com/users/SvtlnR","html_url":"https://github.com/SvtlnR","followers_url":"https://api.github.com/users/SvtlnR/followers","following_url":"https://api.github.com/users/SvtlnR/following{/other_user}","gists_url":"https://api.github.com/users/SvtlnR/gists{/gist_id}","starred_url":"https://api.github.com/users/SvtlnR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvtlnR/subscriptions","organizations_url":"https://api.github.com/users/SvtlnR/orgs","repos_url":"https://api.github.com/users/SvtlnR/repos","events_url":"https://api.github.com/users/SvtlnR/events{/privacy}","received_events_url":"https://api.github.com/users/SvtlnR/received_events","type":"User","site_admin":false},"body":"@soul-wish","created_at":"2018-10-01T07:15:23Z","updated_at":"2018-10-03T13:53:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b94a94e4d1f954d7a28fc5b29adbb8d12ac86180","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/1/commits","review_comments_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/1/comments","review_comment_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/issues/1/comments","statuses_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/statuses/3e422ae6f8ad19fe025b4ae7827f2c7fa608100d","head":{"label":"SvtlnR:IsolatedScope","ref":"IsolatedScope","sha":"3e422ae6f8ad19fe025b4ae7827f2c7fa608100d","user":{"login":"SvtlnR","id":40490461,"node_id":"MDQ6VXNlcjQwNDkwNDYx","avatar_url":"https://avatars0.githubusercontent.com/u/40490461?v=4","gravatar_id":"","url":"https://api.github.com/users/SvtlnR","html_url":"https://github.com/SvtlnR","followers_url":"https://api.github.com/users/SvtlnR/followers","following_url":"https://api.github.com/users/SvtlnR/following{/other_user}","gists_url":"https://api.github.com/users/SvtlnR/gists{/gist_id}","starred_url":"https://api.github.com/users/SvtlnR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvtlnR/subscriptions","organizations_url":"https://api.github.com/users/SvtlnR/orgs","repos_url":"https://api.github.com/users/SvtlnR/repos","events_url":"https://api.github.com/users/SvtlnR/events{/privacy}","received_events_url":"https://api.github.com/users/SvtlnR/received_events","type":"User","site_admin":false},"repo":{"id":150585800,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA1ODU4MDA=","name":"videoplayerAngularJS","full_name":"SvtlnR/videoplayerAngularJS","private":false,"owner":{"login":"SvtlnR","id":40490461,"node_id":"MDQ6VXNlcjQwNDkwNDYx","avatar_url":"https://avatars0.githubusercontent.com/u/40490461?v=4","gravatar_id":"","url":"https://api.github.com/users/SvtlnR","html_url":"https://github.com/SvtlnR","followers_url":"https://api.github.com/users/SvtlnR/followers","following_url":"https://api.github.com/users/SvtlnR/following{/other_user}","gists_url":"https://api.github.com/users/SvtlnR/gists{/gist_id}","starred_url":"https://api.github.com/users/SvtlnR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvtlnR/subscriptions","organizations_url":"https://api.github.com/users/SvtlnR/orgs","repos_url":"https://api.github.com/users/SvtlnR/repos","events_url":"https://api.github.com/users/SvtlnR/events{/privacy}","received_events_url":"https://api.github.com/users/SvtlnR/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SvtlnR/videoplayerAngularJS","description":null,"fork":false,"url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS","forks_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/forks","keys_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/teams","hooks_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/hooks","issue_events_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/issues/events{/number}","events_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/events","assignees_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/assignees{/user}","branches_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/branches{/branch}","tags_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/tags","blobs_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/git/refs{/sha}","trees_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/statuses/{sha}","languages_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/languages","stargazers_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/stargazers","contributors_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/contributors","subscribers_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/subscribers","subscription_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/subscription","commits_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/commits{/sha}","git_commits_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/git/commits{/sha}","comments_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/comments{/number}","issue_comment_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/issues/comments{/number}","contents_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/contents/{+path}","compare_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/merges","archive_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/downloads","issues_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/issues{/number}","pulls_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls{/number}","milestones_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/milestones{/number}","notifications_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/labels{/name}","releases_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/releases{/id}","deployments_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/deployments","created_at":"2018-09-27T12:47:45Z","updated_at":"2018-09-27T12:51:57Z","pushed_at":"2018-10-03T13:51:28Z","git_url":"git://github.com/SvtlnR/videoplayerAngularJS.git","ssh_url":"git@github.com:SvtlnR/videoplayerAngularJS.git","clone_url":"https://github.com/SvtlnR/videoplayerAngularJS.git","svn_url":"https://github.com/SvtlnR/videoplayerAngularJS","homepage":null,"size":36183,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"SvtlnR:master","ref":"master","sha":"82cdeb0d59d90188d787eca79b0bd7cb69598fe3","user":{"login":"SvtlnR","id":40490461,"node_id":"MDQ6VXNlcjQwNDkwNDYx","avatar_url":"https://avatars0.githubusercontent.com/u/40490461?v=4","gravatar_id":"","url":"https://api.github.com/users/SvtlnR","html_url":"https://github.com/SvtlnR","followers_url":"https://api.github.com/users/SvtlnR/followers","following_url":"https://api.github.com/users/SvtlnR/following{/other_user}","gists_url":"https://api.github.com/users/SvtlnR/gists{/gist_id}","starred_url":"https://api.github.com/users/SvtlnR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvtlnR/subscriptions","organizations_url":"https://api.github.com/users/SvtlnR/orgs","repos_url":"https://api.github.com/users/SvtlnR/repos","events_url":"https://api.github.com/users/SvtlnR/events{/privacy}","received_events_url":"https://api.github.com/users/SvtlnR/received_events","type":"User","site_admin":false},"repo":{"id":150585800,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA1ODU4MDA=","name":"videoplayerAngularJS","full_name":"SvtlnR/videoplayerAngularJS","private":false,"owner":{"login":"SvtlnR","id":40490461,"node_id":"MDQ6VXNlcjQwNDkwNDYx","avatar_url":"https://avatars0.githubusercontent.com/u/40490461?v=4","gravatar_id":"","url":"https://api.github.com/users/SvtlnR","html_url":"https://github.com/SvtlnR","followers_url":"https://api.github.com/users/SvtlnR/followers","following_url":"https://api.github.com/users/SvtlnR/following{/other_user}","gists_url":"https://api.github.com/users/SvtlnR/gists{/gist_id}","starred_url":"https://api.github.com/users/SvtlnR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvtlnR/subscriptions","organizations_url":"https://api.github.com/users/SvtlnR/orgs","repos_url":"https://api.github.com/users/SvtlnR/repos","events_url":"https://api.github.com/users/SvtlnR/events{/privacy}","received_events_url":"https://api.github.com/users/SvtlnR/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SvtlnR/videoplayerAngularJS","description":null,"fork":false,"url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS","forks_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/forks","keys_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/teams","hooks_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/hooks","issue_events_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/issues/events{/number}","events_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/events","assignees_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/assignees{/user}","branches_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/branches{/branch}","tags_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/tags","blobs_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/git/refs{/sha}","trees_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/statuses/{sha}","languages_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/languages","stargazers_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/stargazers","contributors_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/contributors","subscribers_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/subscribers","subscription_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/subscription","commits_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/commits{/sha}","git_commits_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/git/commits{/sha}","comments_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/comments{/number}","issue_comment_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/issues/comments{/number}","contents_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/contents/{+path}","compare_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/merges","archive_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/downloads","issues_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/issues{/number}","pulls_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls{/number}","milestones_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/milestones{/number}","notifications_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/labels{/name}","releases_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/releases{/id}","deployments_url":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/deployments","created_at":"2018-09-27T12:47:45Z","updated_at":"2018-09-27T12:51:57Z","pushed_at":"2018-10-03T13:51:28Z","git_url":"git://github.com/SvtlnR/videoplayerAngularJS.git","ssh_url":"git@github.com:SvtlnR/videoplayerAngularJS.git","clone_url":"https://github.com/SvtlnR/videoplayerAngularJS.git","svn_url":"https://github.com/SvtlnR/videoplayerAngularJS","homepage":null,"size":36183,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/1"},"html":{"href":"https://github.com/SvtlnR/videoplayerAngularJS/pull/1"},"issue":{"href":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/issues/1"},"comments":{"href":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/SvtlnR/videoplayerAngularJS/statuses/3e422ae6f8ad19fe025b4ae7827f2c7fa608100d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"soul-wish"}}