{"action":"created","issue":{"url":"https://api.github.com/repos/Selz/plyr/issues/140","labels_url":"https://api.github.com/repos/Selz/plyr/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/Selz/plyr/issues/140/comments","events_url":"https://api.github.com/repos/Selz/plyr/issues/140/events","html_url":"https://github.com/Selz/plyr/pull/140","id":126520828,"number":140,"title":"Updated API function 'plyr.source()' to get media source","user":{"login":"gurupras","id":2933207,"avatar_url":"https://avatars.githubusercontent.com/u/2933207?v=3","gravatar_id":"","url":"https://api.github.com/users/gurupras","html_url":"https://github.com/gurupras","followers_url":"https://api.github.com/users/gurupras/followers","following_url":"https://api.github.com/users/gurupras/following{/other_user}","gists_url":"https://api.github.com/users/gurupras/gists{/gist_id}","starred_url":"https://api.github.com/users/gurupras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurupras/subscriptions","organizations_url":"https://api.github.com/users/gurupras/orgs","repos_url":"https://api.github.com/users/gurupras/repos","events_url":"https://api.github.com/users/gurupras/events{/privacy}","received_events_url":"https://api.github.com/users/gurupras/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-13T21:36:29Z","updated_at":"2016-01-13T22:06:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Selz/plyr/pulls/140","html_url":"https://github.com/Selz/plyr/pull/140","diff_url":"https://github.com/Selz/plyr/pull/140.diff","patch_url":"https://github.com/Selz/plyr/pull/140.patch"},"body":"Currently, there is no simple way of acquiring media source.\r\nThis commit updates the 'source' API function to allow developers\r\nto acquire the video source regardless of whether the video\r\nis a youtube-embed or HTML5 video.\r\n\r\nFuture embeds just need their respective URL fetching code added\r\nto this common function."},"comment":{"url":"https://api.github.com/repos/Selz/plyr/issues/comments/171452200","html_url":"https://github.com/Selz/plyr/pull/140#issuecomment-171452200","issue_url":"https://api.github.com/repos/Selz/plyr/issues/140","id":171452200,"user":{"login":"gurupras","id":2933207,"avatar_url":"https://avatars.githubusercontent.com/u/2933207?v=3","gravatar_id":"","url":"https://api.github.com/users/gurupras","html_url":"https://github.com/gurupras","followers_url":"https://api.github.com/users/gurupras/followers","following_url":"https://api.github.com/users/gurupras/following{/other_user}","gists_url":"https://api.github.com/users/gurupras/gists{/gist_id}","starred_url":"https://api.github.com/users/gurupras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurupras/subscriptions","organizations_url":"https://api.github.com/users/gurupras/orgs","repos_url":"https://api.github.com/users/gurupras/repos","events_url":"https://api.github.com/users/gurupras/events{/privacy}","received_events_url":"https://api.github.com/users/gurupras/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T22:06:32Z","updated_at":"2016-01-13T22:06:32Z","body":"In case of native media, can we use `player.media.currentSrc`?\r\nThis seems to work regardless of whether there is a `source` element below `media` or `media.src` is set directly.\r\nI tested this out a little bit. You can find the fiddle [here] (https://jsfiddle.net/gurupras/kp55x8k5/)"}}