{"action":"opened","issue":{"url":"https://api.github.com/repos/MoePlayer/DPlayer/issues/307","repository_url":"https://api.github.com/repos/MoePlayer/DPlayer","labels_url":"https://api.github.com/repos/MoePlayer/DPlayer/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/MoePlayer/DPlayer/issues/307/comments","events_url":"https://api.github.com/repos/MoePlayer/DPlayer/issues/307/events","html_url":"https://github.com/MoePlayer/DPlayer/issues/307","id":345506115,"node_id":"MDU6SXNzdWUzNDU1MDYxMTU=","number":307,"title":"If the cover image fails to load, dplayer will prompt the video to fail to load","user":{"login":"hifocus","id":30528433,"node_id":"MDQ6VXNlcjMwNTI4NDMz","avatar_url":"https://avatars2.githubusercontent.com/u/30528433?v=4","gravatar_id":"","url":"https://api.github.com/users/hifocus","html_url":"https://github.com/hifocus","followers_url":"https://api.github.com/users/hifocus/followers","following_url":"https://api.github.com/users/hifocus/following{/other_user}","gists_url":"https://api.github.com/users/hifocus/gists{/gist_id}","starred_url":"https://api.github.com/users/hifocus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hifocus/subscriptions","organizations_url":"https://api.github.com/users/hifocus/orgs","repos_url":"https://api.github.com/users/hifocus/repos","events_url":"https://api.github.com/users/hifocus/events{/privacy}","received_events_url":"https://api.github.com/users/hifocus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-29T06:30:12Z","updated_at":"2018-07-29T06:30:12Z","closed_at":null,"author_association":"NONE","body":"![image](https://user-images.githubusercontent.com/30528433/43363602-fdecbce6-933a-11e8-93b2-574d76fa0d62.png)\r\n\r\nOriginally, I thought `Bilibili` didn't have the hotlink protection, so I use the cover image from Bilibili to my site directly. Then I found Dplayer said \"Video fail to load\" (or something like that, can't remember), but I click the \"play\" button, and the video can still be loaded.\r\n\r\nI opened the Chrome console and spotted out the `403` error, it was from Bilibili's subdomain, but not from the video file. So I thought it might be better to use something like \"Cover Images Error\" to instead, it might confuse people and site developers.\r\n\r\nHere are the codes I've used.\r\n\r\n```\r\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/dplayer@1.24.0/dist/DPlayer.min.css\">\r\n<div id=\"dplayer\"></div>\r\n<script src=\"https://cdn.jsdelivr.net/npm/dplayer@1.24.0/dist/DPlayer.min.js\"></script>\r\n<script>\r\n    const dp = new DPlayer({\r\n        container: document.getElementById('dplayer'),\r\n        screenshot: true,\r\n        video: {\r\n            url: 'https://res.cloudinary.com/hxcdn/video/upload/v1532844722/Use_Chocolatey_Install_Python_and_FFmpeg.mp4',\r\n            pic: 'https://i0.hdslb.com/bfs/archive/9facbc87be436bfb49a8b2ae2b564d0648228fca.jpg',\r\n            thumbnails: 'https://i0.hdslb.com/bfs/archive/9facbc87be436bfb49a8b2ae2b564d0648228fca.jpg'\r\n        },\r\n    });\r\n</script>\r\n``` \r\n"}}
{"actor":{"display_login":"hifocus"}}