{"action":"created","comment":{"url":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/comments/142649861","pull_request_review_id":67036770,"id":142649861,"diff_hunk":"@@ -0,0 +1,91 @@\n+using Uno;\n+using Uno.UX;\n+\n+using Fuse.Scripting;\n+\n+namespace Fuse.Controls\n+{\n+\tpublic partial class Video\n+\t{\n+\t\tstatic Video()\n+\t\t{\n+\t\t\tScriptClass.Register(typeof(Video),\n+\t\t\t\tnew ScriptMethod<Video>(\"getPosition\", getPosition, ExecutionThread.Any),\n+\t\t\t\tnew ScriptMethod<Video>(\"getDuration\", getDuration, ExecutionThread.Any),\n+\t\t\t\tnew ScriptMethod<Video>(\"resume\", resume, ExecutionThread.MainThread),\n+\t\t\t\tnew ScriptMethod<Video>(\"pause\", pause, ExecutionThread.MainThread),\n+\t\t\t\tnew ScriptMethod<Video>(\"stop\", stop, ExecutionThread.MainThread));\n+\t\t}\n+\n+\t\t/**\n+\t\t\tGets the current position in the Video in seconds.\n+\n+\t\t\t@scriptmethod getPosition()\n+\t\t*/\n+\t\tstatic object getPosition(Context c, Video v, object[] args)\n+\t\t{\n+\t\t\tif (args.Length != 0)\n+\t\t\t\tFuse.Diagnostics.UserError(\"getPosition takes 0 arguments, but \" + args.Length + \" was supplied\", v);\n+\n+\t\t\tvar ret = 0.0;\n+\t\t\tlock (v)\n+\t\t\t\tret = v._outPosition;\n+\t\t\treturn (object)ret;\n+\t\t}\n+\n+\t\t/**\n+\t\t\tGets the duration of the Video in seconds. getDuration will return 0 until the video has initialized.\n+\n+\t\t\t@scriptmethod getDuration()\n+\t\t*/\n+\t\tstatic object getDuration(Context c, Video v, object[] args)\n+\t\t{\n+\t\t\tif (args.Length != 0)\n+\t\t\t\tFuse.Diagnostics.UserError(\"getDuration takes 0 arguments, but \" + args.Length + \" was supplied\", v);\n+\n+\t\t\tvar ret = 0.0;\n+\t\t\tlock (v)\n+\t\t\t\tret = v._outDuration;\n+\t\t\treturn (object)ret;","path":"Source/Fuse.Controls.Video/Video.ScriptClass.uno","position":49,"original_position":49,"commit_id":"9f3d120ec2201b58f6f8a4b1441777f542f94045","original_commit_id":"9f3d120ec2201b58f6f8a4b1441777f542f94045","user":{"login":"kusma","id":47073,"avatar_url":"https://avatars3.githubusercontent.com/u/47073?v=4","gravatar_id":"","url":"https://api.github.com/users/kusma","html_url":"https://github.com/kusma","followers_url":"https://api.github.com/users/kusma/followers","following_url":"https://api.github.com/users/kusma/following{/other_user}","gists_url":"https://api.github.com/users/kusma/gists{/gist_id}","starred_url":"https://api.github.com/users/kusma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kusma/subscriptions","organizations_url":"https://api.github.com/users/kusma/orgs","repos_url":"https://api.github.com/users/kusma/repos","events_url":"https://api.github.com/users/kusma/events{/privacy}","received_events_url":"https://api.github.com/users/kusma/received_events","type":"User","site_admin":false},"body":"The questions for `getPosition` applies here as well...","created_at":"2017-10-04T11:58:27Z","updated_at":"2017-10-04T12:00:08Z","html_url":"https://github.com/fusetools/fuselibs-public/pull/486#discussion_r142649861","pull_request_url":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/486","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/comments/142649861"},"html":{"href":"https://github.com/fusetools/fuselibs-public/pull/486#discussion_r142649861"},"pull_request":{"href":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/486"}}},"pull_request":{"url":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/486","id":142590044,"html_url":"https://github.com/fusetools/fuselibs-public/pull/486","diff_url":"https://github.com/fusetools/fuselibs-public/pull/486.diff","patch_url":"https://github.com/fusetools/fuselibs-public/pull/486.patch","issue_url":"https://api.github.com/repos/fusetools/fuselibs-public/issues/486","number":486,"state":"open","locked":false,"title":"Feature video scriptclass","user":{"login":"kristianhasselknippe","id":1510999,"avatar_url":"https://avatars2.githubusercontent.com/u/1510999?v=4","gravatar_id":"","url":"https://api.github.com/users/kristianhasselknippe","html_url":"https://github.com/kristianhasselknippe","followers_url":"https://api.github.com/users/kristianhasselknippe/followers","following_url":"https://api.github.com/users/kristianhasselknippe/following{/other_user}","gists_url":"https://api.github.com/users/kristianhasselknippe/gists{/gist_id}","starred_url":"https://api.github.com/users/kristianhasselknippe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristianhasselknippe/subscriptions","organizations_url":"https://api.github.com/users/kristianhasselknippe/orgs","repos_url":"https://api.github.com/users/kristianhasselknippe/repos","events_url":"https://api.github.com/users/kristianhasselknippe/events{/privacy}","received_events_url":"https://api.github.com/users/kristianhasselknippe/received_events","type":"User","site_admin":false},"body":"An attempt at fixing #396\r\n\r\nThis PR contains:\r\n- [x] Changelog\r\n- [x] Documentation\r\n- [x] Tests\r\n","created_at":"2017-09-22T14:15:34Z","updated_at":"2017-10-04T12:00:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6dadd047d1768b0073f5da7861c778c72b89691c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/486/commits","review_comments_url":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/486/comments","review_comment_url":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fusetools/fuselibs-public/issues/486/comments","statuses_url":"https://api.github.com/repos/fusetools/fuselibs-public/statuses/9f3d120ec2201b58f6f8a4b1441777f542f94045","head":{"label":"kristianhasselknippe:feature-video-scriptclass","ref":"feature-video-scriptclass","sha":"9f3d120ec2201b58f6f8a4b1441777f542f94045","user":{"login":"kristianhasselknippe","id":1510999,"avatar_url":"https://avatars2.githubusercontent.com/u/1510999?v=4","gravatar_id":"","url":"https://api.github.com/users/kristianhasselknippe","html_url":"https://github.com/kristianhasselknippe","followers_url":"https://api.github.com/users/kristianhasselknippe/followers","following_url":"https://api.github.com/users/kristianhasselknippe/following{/other_user}","gists_url":"https://api.github.com/users/kristianhasselknippe/gists{/gist_id}","starred_url":"https://api.github.com/users/kristianhasselknippe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristianhasselknippe/subscriptions","organizations_url":"https://api.github.com/users/kristianhasselknippe/orgs","repos_url":"https://api.github.com/users/kristianhasselknippe/repos","events_url":"https://api.github.com/users/kristianhasselknippe/events{/privacy}","received_events_url":"https://api.github.com/users/kristianhasselknippe/received_events","type":"User","site_admin":false},"repo":{"id":91700118,"name":"fuselibs-public","full_name":"kristianhasselknippe/fuselibs-public","owner":{"login":"kristianhasselknippe","id":1510999,"avatar_url":"https://avatars2.githubusercontent.com/u/1510999?v=4","gravatar_id":"","url":"https://api.github.com/users/kristianhasselknippe","html_url":"https://github.com/kristianhasselknippe","followers_url":"https://api.github.com/users/kristianhasselknippe/followers","following_url":"https://api.github.com/users/kristianhasselknippe/following{/other_user}","gists_url":"https://api.github.com/users/kristianhasselknippe/gists{/gist_id}","starred_url":"https://api.github.com/users/kristianhasselknippe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristianhasselknippe/subscriptions","organizations_url":"https://api.github.com/users/kristianhasselknippe/orgs","repos_url":"https://api.github.com/users/kristianhasselknippe/repos","events_url":"https://api.github.com/users/kristianhasselknippe/events{/privacy}","received_events_url":"https://api.github.com/users/kristianhasselknippe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kristianhasselknippe/fuselibs-public","description":null,"fork":true,"url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public","forks_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/forks","keys_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/teams","hooks_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/hooks","issue_events_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/issues/events{/number}","events_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/events","assignees_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/assignees{/user}","branches_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/branches{/branch}","tags_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/tags","blobs_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/git/refs{/sha}","trees_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/statuses/{sha}","languages_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/languages","stargazers_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/stargazers","contributors_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/contributors","subscribers_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/subscribers","subscription_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/subscription","commits_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/commits{/sha}","git_commits_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/git/commits{/sha}","comments_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/comments{/number}","issue_comment_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/issues/comments{/number}","contents_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/contents/{+path}","compare_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/merges","archive_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/downloads","issues_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/issues{/number}","pulls_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/pulls{/number}","milestones_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/milestones{/number}","notifications_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/labels{/name}","releases_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/releases{/id}","deployments_url":"https://api.github.com/repos/kristianhasselknippe/fuselibs-public/deployments","created_at":"2017-05-18T13:58:37Z","updated_at":"2017-05-18T13:58:42Z","pushed_at":"2017-10-04T09:46:14Z","git_url":"git://github.com/kristianhasselknippe/fuselibs-public.git","ssh_url":"git@github.com:kristianhasselknippe/fuselibs-public.git","clone_url":"https://github.com/kristianhasselknippe/fuselibs-public.git","svn_url":"https://github.com/kristianhasselknippe/fuselibs-public","homepage":null,"size":19107,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fusetools:master","ref":"master","sha":"130f76b1eb18557df13c4597cc9084ea63974e1a","user":{"login":"fusetools","id":10243317,"avatar_url":"https://avatars1.githubusercontent.com/u/10243317?v=4","gravatar_id":"","url":"https://api.github.com/users/fusetools","html_url":"https://github.com/fusetools","followers_url":"https://api.github.com/users/fusetools/followers","following_url":"https://api.github.com/users/fusetools/following{/other_user}","gists_url":"https://api.github.com/users/fusetools/gists{/gist_id}","starred_url":"https://api.github.com/users/fusetools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusetools/subscriptions","organizations_url":"https://api.github.com/users/fusetools/orgs","repos_url":"https://api.github.com/users/fusetools/repos","events_url":"https://api.github.com/users/fusetools/events{/privacy}","received_events_url":"https://api.github.com/users/fusetools/received_events","type":"Organization","site_admin":false},"repo":{"id":89240957,"name":"fuselibs-public","full_name":"fusetools/fuselibs-public","owner":{"login":"fusetools","id":10243317,"avatar_url":"https://avatars1.githubusercontent.com/u/10243317?v=4","gravatar_id":"","url":"https://api.github.com/users/fusetools","html_url":"https://github.com/fusetools","followers_url":"https://api.github.com/users/fusetools/followers","following_url":"https://api.github.com/users/fusetools/following{/other_user}","gists_url":"https://api.github.com/users/fusetools/gists{/gist_id}","starred_url":"https://api.github.com/users/fusetools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusetools/subscriptions","organizations_url":"https://api.github.com/users/fusetools/orgs","repos_url":"https://api.github.com/users/fusetools/repos","events_url":"https://api.github.com/users/fusetools/events{/privacy}","received_events_url":"https://api.github.com/users/fusetools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fusetools/fuselibs-public","description":"Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps.","fork":false,"url":"https://api.github.com/repos/fusetools/fuselibs-public","forks_url":"https://api.github.com/repos/fusetools/fuselibs-public/forks","keys_url":"https://api.github.com/repos/fusetools/fuselibs-public/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fusetools/fuselibs-public/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fusetools/fuselibs-public/teams","hooks_url":"https://api.github.com/repos/fusetools/fuselibs-public/hooks","issue_events_url":"https://api.github.com/repos/fusetools/fuselibs-public/issues/events{/number}","events_url":"https://api.github.com/repos/fusetools/fuselibs-public/events","assignees_url":"https://api.github.com/repos/fusetools/fuselibs-public/assignees{/user}","branches_url":"https://api.github.com/repos/fusetools/fuselibs-public/branches{/branch}","tags_url":"https://api.github.com/repos/fusetools/fuselibs-public/tags","blobs_url":"https://api.github.com/repos/fusetools/fuselibs-public/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fusetools/fuselibs-public/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fusetools/fuselibs-public/git/refs{/sha}","trees_url":"https://api.github.com/repos/fusetools/fuselibs-public/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fusetools/fuselibs-public/statuses/{sha}","languages_url":"https://api.github.com/repos/fusetools/fuselibs-public/languages","stargazers_url":"https://api.github.com/repos/fusetools/fuselibs-public/stargazers","contributors_url":"https://api.github.com/repos/fusetools/fuselibs-public/contributors","subscribers_url":"https://api.github.com/repos/fusetools/fuselibs-public/subscribers","subscription_url":"https://api.github.com/repos/fusetools/fuselibs-public/subscription","commits_url":"https://api.github.com/repos/fusetools/fuselibs-public/commits{/sha}","git_commits_url":"https://api.github.com/repos/fusetools/fuselibs-public/git/commits{/sha}","comments_url":"https://api.github.com/repos/fusetools/fuselibs-public/comments{/number}","issue_comment_url":"https://api.github.com/repos/fusetools/fuselibs-public/issues/comments{/number}","contents_url":"https://api.github.com/repos/fusetools/fuselibs-public/contents/{+path}","compare_url":"https://api.github.com/repos/fusetools/fuselibs-public/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fusetools/fuselibs-public/merges","archive_url":"https://api.github.com/repos/fusetools/fuselibs-public/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fusetools/fuselibs-public/downloads","issues_url":"https://api.github.com/repos/fusetools/fuselibs-public/issues{/number}","pulls_url":"https://api.github.com/repos/fusetools/fuselibs-public/pulls{/number}","milestones_url":"https://api.github.com/repos/fusetools/fuselibs-public/milestones{/number}","notifications_url":"https://api.github.com/repos/fusetools/fuselibs-public/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fusetools/fuselibs-public/labels{/name}","releases_url":"https://api.github.com/repos/fusetools/fuselibs-public/releases{/id}","deployments_url":"https://api.github.com/repos/fusetools/fuselibs-public/deployments","created_at":"2017-04-24T13:04:33Z","updated_at":"2017-10-02T09:04:27Z","pushed_at":"2017-10-04T09:46:16Z","git_url":"git://github.com/fusetools/fuselibs-public.git","ssh_url":"git@github.com:fusetools/fuselibs-public.git","clone_url":"https://github.com/fusetools/fuselibs-public.git","svn_url":"https://github.com/fusetools/fuselibs-public","homepage":"https://www.fusetools.com","size":14492,"stargazers_count":57,"watchers_count":57,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":131,"forks":33,"open_issues":131,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/486"},"html":{"href":"https://github.com/fusetools/fuselibs-public/pull/486"},"issue":{"href":"https://api.github.com/repos/fusetools/fuselibs-public/issues/486"},"comments":{"href":"https://api.github.com/repos/fusetools/fuselibs-public/issues/486/comments"},"review_comments":{"href":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/486/comments"},"review_comment":{"href":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fusetools/fuselibs-public/pulls/486/commits"},"statuses":{"href":"https://api.github.com/repos/fusetools/fuselibs-public/statuses/9f3d120ec2201b58f6f8a4b1441777f542f94045"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kusma"}}