{"action":"created","issue":{"url":"https://api.github.com/repos/kmoskwiak/videojs-resolution-switcher/issues/3","labels_url":"https://api.github.com/repos/kmoskwiak/videojs-resolution-switcher/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/kmoskwiak/videojs-resolution-switcher/issues/3/comments","events_url":"https://api.github.com/repos/kmoskwiak/videojs-resolution-switcher/issues/3/events","html_url":"https://github.com/kmoskwiak/videojs-resolution-switcher/issues/3","id":109075334,"number":3,"title":"Not Switching source with flash","user":{"login":"tahirawan4","id":6524024,"avatar_url":"https://avatars.githubusercontent.com/u/6524024?v=3","gravatar_id":"","url":"https://api.github.com/users/tahirawan4","html_url":"https://github.com/tahirawan4","followers_url":"https://api.github.com/users/tahirawan4/followers","following_url":"https://api.github.com/users/tahirawan4/following{/other_user}","gists_url":"https://api.github.com/users/tahirawan4/gists{/gist_id}","starred_url":"https://api.github.com/users/tahirawan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahirawan4/subscriptions","organizations_url":"https://api.github.com/users/tahirawan4/orgs","repos_url":"https://api.github.com/users/tahirawan4/repos","events_url":"https://api.github.com/users/tahirawan4/events{/privacy}","received_events_url":"https://api.github.com/users/tahirawan4/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kmoskwiak/videojs-resolution-switcher/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-30T12:21:02Z","updated_at":"2015-10-20T07:33:01Z","closed_at":null,"body":"This plugin does not from techtype=Flash."},"comment":{"url":"https://api.github.com/repos/kmoskwiak/videojs-resolution-switcher/issues/comments/149462884","html_url":"https://github.com/kmoskwiak/videojs-resolution-switcher/issues/3#issuecomment-149462884","issue_url":"https://api.github.com/repos/kmoskwiak/videojs-resolution-switcher/issues/3","id":149462884,"user":{"login":"tahirawan4","id":6524024,"avatar_url":"https://avatars.githubusercontent.com/u/6524024?v=3","gravatar_id":"","url":"https://api.github.com/users/tahirawan4","html_url":"https://github.com/tahirawan4","followers_url":"https://api.github.com/users/tahirawan4/followers","following_url":"https://api.github.com/users/tahirawan4/following{/other_user}","gists_url":"https://api.github.com/users/tahirawan4/gists{/gist_id}","starred_url":"https://api.github.com/users/tahirawan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahirawan4/subscriptions","organizations_url":"https://api.github.com/users/tahirawan4/orgs","repos_url":"https://api.github.com/users/tahirawan4/repos","events_url":"https://api.github.com/users/tahirawan4/events{/privacy}","received_events_url":"https://api.github.com/users/tahirawan4/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T07:33:01Z","updated_at":"2015-10-20T07:33:01Z","body":"You have to load tech on case of flash, Here is the fix\r\nAdd following code in onclick\r\nif(this.player_.techName_ == \"Flash\"){\r\n        var source = '';\r\n//select source to load because this.player_.loadTech_ will take only one soure\r\n        for (var i = 0, l = this.src.length; i < l; i++) {\r\n            if(this.src[i].type == 'rtmp/mp4'){\r\n                source = {src:this.src[i].src,type:this.src[i].type};\r\n                break;\r\n            }\r\n        }\r\n\r\n       this.player_.loadTech_(this.player_.techName_,source);\r\n       if(!isPaused){ this.player_.play(); }\r\n      this.player_.one('loadeddata', function(){\r\n            this.player_.currentTime(currentTime);\r\n      });\r\n    }"}}