{"action":"created","issue":{"url":"https://api.github.com/repos/webcompat/web-bugs/issues/3057","repository_url":"https://api.github.com/repos/webcompat/web-bugs","labels_url":"https://api.github.com/repos/webcompat/web-bugs/issues/3057/labels{/name}","comments_url":"https://api.github.com/repos/webcompat/web-bugs/issues/3057/comments","events_url":"https://api.github.com/repos/webcompat/web-bugs/issues/3057/events","html_url":"https://github.com/webcompat/web-bugs/issues/3057","id":172705443,"number":3057,"title":"app.kktv.me - video doesn't play","user":{"login":"MDTsai","id":5763237,"avatar_url":"https://avatars.githubusercontent.com/u/5763237?v=3","gravatar_id":"","url":"https://api.github.com/users/MDTsai","html_url":"https://github.com/MDTsai","followers_url":"https://api.github.com/users/MDTsai/followers","following_url":"https://api.github.com/users/MDTsai/following{/other_user}","gists_url":"https://api.github.com/users/MDTsai/gists{/gist_id}","starred_url":"https://api.github.com/users/MDTsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDTsai/subscriptions","organizations_url":"https://api.github.com/users/MDTsai/orgs","repos_url":"https://api.github.com/users/MDTsai/repos","events_url":"https://api.github.com/users/MDTsai/events{/privacy}","received_events_url":"https://api.github.com/users/MDTsai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webcompat/web-bugs/labels/browser-firefox","name":"browser-firefox","color":"FF4E00"},{"url":"https://api.github.com/repos/webcompat/web-bugs/labels/status-needstriage","name":"status-needstriage","color":"ff9900"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-23T13:54:08Z","updated_at":"2016-08-24T09:08:41Z","closed_at":null,"body":"<!-- @browser: Firefox 50.0 -->\r\n<!-- @ua_header: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:50.0) Gecko/20100101 Firefox/50.0 -->\r\n\r\n**URL**: https://app.kktv.me/play/02000027010001\r\n**Browser / Version**: Firefox 50.0\r\n**Operating System**: Mac OS X 10.11\r\n**Problem type**: Video doesn't play\r\n\r\n**Steps to Reproduce**\r\n1) Navigate to: https://app.kktv.me/play/02000027010001\r\n2) Screen shows Firefox is not supported. Only support Chrome and Safari now, suggest to download Google Chrome.\r\n\r\nExpected Behavior:\r\nVideo playing\r\n\r\nActual Behavior:\r\nShows Firefox not supported.\r\n\r\nIf I switch UA to Chrome on Mac OS X, video plays fine.\r\n\r\n![Screenshot Description](https://webcompat.com/uploads/2016/8/b995b3c9-0ab9-4244-8cd0-91daf0a80022.jpg)\r\n\r\n\r\n\r\n_From [webcompat.com](https://webcompat.com/) with ❤️_"},"comment":{"url":"https://api.github.com/repos/webcompat/web-bugs/issues/comments/242002405","html_url":"https://github.com/webcompat/web-bugs/issues/3057#issuecomment-242002405","issue_url":"https://api.github.com/repos/webcompat/web-bugs/issues/3057","id":242002405,"user":{"login":"MDTsai","id":5763237,"avatar_url":"https://avatars.githubusercontent.com/u/5763237?v=3","gravatar_id":"","url":"https://api.github.com/users/MDTsai","html_url":"https://github.com/MDTsai","followers_url":"https://api.github.com/users/MDTsai/followers","following_url":"https://api.github.com/users/MDTsai/following{/other_user}","gists_url":"https://api.github.com/users/MDTsai/gists{/gist_id}","starred_url":"https://api.github.com/users/MDTsai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDTsai/subscriptions","organizations_url":"https://api.github.com/users/MDTsai/orgs","repos_url":"https://api.github.com/users/MDTsai/repos","events_url":"https://api.github.com/users/MDTsai/events{/privacy}","received_events_url":"https://api.github.com/users/MDTsai/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T09:08:41Z","updated_at":"2016-08-24T09:08:41Z","body":"It's done in client side, https://app.kktv.me/assets/js/999d4e2f61e1cf250c2e.js\n\n```\nt.check = function() {\n    var t = {\n            isCapableToPlay: !1,\n            isMobile: !1\n        },\n        n = new e,\n        r = n.getDevice().type;\n    t.type = r, \"mobile\" !== r && \"tablet\" !== r || (t.isMobile = !0), t.OSName = n.getOS().name;\n    var i = n.getBrowser().name;\n    return /^(Chrome|Safari)/.test(i) && (t.isCapableToPlay = !0), t.browserName = n.getBrowser().name, t\n}\n\n```\n\nWhere n contains navigator.userAgent sent to server.\n\nSpecific a 'BrowserNotSupport' error type in https://app.kktv.me/assets/js/650e1cfd73e3645b9bd1-play.js\n```\n  }))  : void f({\n    status: {\n      subtype: 'BrowserNotSupport'\n    }\n  })\n```\n\nThen generate corresponding content in https://app.kktv.me/assets/js/999d4e2f61e1cf250c2e.js\n```\ncase \"BrowserNotSupport\":\n    e = [l({\n        className: \"warning\",\n        children: \"尚未支援此瀏覽器\"\n    }), c({\n        className: \"fixed-title short-title\",\n        children: [o(null, \"目前僅支援 Chrome 與 Safari\"), p(), o(null, \"即將支援更多瀏覽器\")]\n    }), s({\n        className: \"btn--kktv btn--lg\",\n        children: \"下載 Google Chrome\",\n        onClick: this.toDownloadChrome\n    })];\n    break;\n```\n\n"}}
{"actor":{"display_login":"MDTsai"}}