{"action":"created","issue":{"url":"https://api.github.com/repos/eXon/videojs-vimeo/issues/15","labels_url":"https://api.github.com/repos/eXon/videojs-vimeo/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/eXon/videojs-vimeo/issues/15/comments","events_url":"https://api.github.com/repos/eXon/videojs-vimeo/issues/15/events","html_url":"https://github.com/eXon/videojs-vimeo/issues/15","id":29090017,"number":15,"title":"Switching between Vimeo and Youtube.","user":{"login":"massivebam","id":6906719,"avatar_url":"https://avatars.githubusercontent.com/u/6906719?v=3","gravatar_id":"","url":"https://api.github.com/users/massivebam","html_url":"https://github.com/massivebam","followers_url":"https://api.github.com/users/massivebam/followers","following_url":"https://api.github.com/users/massivebam/following{/other_user}","gists_url":"https://api.github.com/users/massivebam/gists{/gist_id}","starred_url":"https://api.github.com/users/massivebam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massivebam/subscriptions","organizations_url":"https://api.github.com/users/massivebam/orgs","repos_url":"https://api.github.com/users/massivebam/repos","events_url":"https://api.github.com/users/massivebam/events{/privacy}","received_events_url":"https://api.github.com/users/massivebam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-03-10T12:08:53Z","updated_at":"2015-05-13T14:18:32Z","closed_at":null,"body":"Hi eXon,\r\nThis is not really and issue but more of a question.\r\nI'm using your videojs-vimeo and videojs-youtube plugins together and I'm trying to switch between Vimeo and Youtube videos.\r\nI tried several ways and short of disposing of it and re-initializing it, I haven't been very successful.\r\n\r\nAmong other things, I've tried to set the techOrder in the <video> tag to [\"vimeo\", \"youtube\"] and that didn't work (only the first type would play).\r\n\r\nI also tried several variations of:\r\n          _V_(\"projects_video\").options.techOrder = [newType];\r\n          _V_(\"projects_video\").src(newURL);\r\nand\r\n          _V_(\"projects_video\").src({ type: \"video/\"+newType, src:newURL });\r\n\r\nWhere newType is \"vimeo\" or \"youtube\".\r\n\r\nSo my question is, how would I go about changing the techOrder to load the Vimeo or Youtube videos short of disposing/reinitialize .\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/eXon/videojs-vimeo/issues/comments/101681767","html_url":"https://github.com/eXon/videojs-vimeo/issues/15#issuecomment-101681767","issue_url":"https://api.github.com/repos/eXon/videojs-vimeo/issues/15","id":101681767,"user":{"login":"pgtaboada","id":1474196,"avatar_url":"https://avatars.githubusercontent.com/u/1474196?v=3","gravatar_id":"","url":"https://api.github.com/users/pgtaboada","html_url":"https://github.com/pgtaboada","followers_url":"https://api.github.com/users/pgtaboada/followers","following_url":"https://api.github.com/users/pgtaboada/following{/other_user}","gists_url":"https://api.github.com/users/pgtaboada/gists{/gist_id}","starred_url":"https://api.github.com/users/pgtaboada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgtaboada/subscriptions","organizations_url":"https://api.github.com/users/pgtaboada/orgs","repos_url":"https://api.github.com/users/pgtaboada/repos","events_url":"https://api.github.com/users/pgtaboada/events{/privacy}","received_events_url":"https://api.github.com/users/pgtaboada/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T14:18:32Z","updated_at":"2015-05-13T14:18:32Z","body":"Same here. It was my understanding, that a plugin should only try to play if it matches the url. But both youtube and vimeo plugins play the source no matter what url.\r\n\r\nBroken by design?"}}