{"action":"opened","issue":{"url":"https://api.github.com/repos/ArdiArtani/Google-Drive-Player-Script/issues/15","repository_url":"https://api.github.com/repos/ArdiArtani/Google-Drive-Player-Script","labels_url":"https://api.github.com/repos/ArdiArtani/Google-Drive-Player-Script/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/ArdiArtani/Google-Drive-Player-Script/issues/15/comments","events_url":"https://api.github.com/repos/ArdiArtani/Google-Drive-Player-Script/issues/15/events","html_url":"https://github.com/ArdiArtani/Google-Drive-Player-Script/issues/15","id":238376213,"number":15,"title":"How to toggle different resolution for the same video file on jwplayer.","user":{"login":"kamran-tahir","id":29511058,"avatar_url":"https://avatars2.githubusercontent.com/u/29511058?v=3","gravatar_id":"","url":"https://api.github.com/users/kamran-tahir","html_url":"https://github.com/kamran-tahir","followers_url":"https://api.github.com/users/kamran-tahir/followers","following_url":"https://api.github.com/users/kamran-tahir/following{/other_user}","gists_url":"https://api.github.com/users/kamran-tahir/gists{/gist_id}","starred_url":"https://api.github.com/users/kamran-tahir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamran-tahir/subscriptions","organizations_url":"https://api.github.com/users/kamran-tahir/orgs","repos_url":"https://api.github.com/users/kamran-tahir/repos","events_url":"https://api.github.com/users/kamran-tahir/events{/privacy}","received_events_url":"https://api.github.com/users/kamran-tahir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-25T11:53:47Z","updated_at":"2017-06-25T11:53:47Z","closed_at":null,"body":"Hi, I just want to toggle different resolutions for the same file like on youtube.\r\nThis is what I mean\r\nI have a file of 1080p and it is playing then I need to provide the toggle resolution options below then 1080 like 720p,480p,360p . I have been exploring this and I found that we have to provide different sources for each resolution but I think it can be done using the same file. I am working hard and tried so many things but still no success.\r\nThis is what I am doing\r\n\r\n$file = '[{\"type\": \"video/mp4\", \"label\": \"360p\", \"file\": \"test.mp4\"}]';\r\n$file2 = '[{\"type\": \"video/mp4\", \"label\": \"480p\", \"file\": \"test.mp4\"}]';\r\n<script type=\"text/javascript\">\r\n\t\tjwplayer(\"myElement\").setup({\r\n\t\t\tplaylist: [{\r\n\t\t\t\t\"sources\":<?php echo $file?>,\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"sources\":<?php echo $file2?>,\r\n\t\t\t\t\r\n\t\t\t}],\r\n\t\t\tallowfullscreen: true,\r\n\t\t\twidth: '100%',\r\n\t\t\taspectratio: '16:9',\r\n\t\t});\r\n\t</script>\r\n```\r\nFile is playing but not showing any resolution toggle option.any solution?"}}
{"actor":{"display_login":"kamran-tahir"}}