我正在尝试制作一个视频应用程序,以 JSON iframe 的格式从 JSON格式的api获取视频。该iframe没有来自我自己的付费服务器的youtube视频。一切正常,但是当我单击视频的海报时,它会显示 videoError 并停止。
String yourData = "<!DOCTYPE html><html><head><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" media="screen" href="main.css" /><script type="text/javascript" src="https://crickethighlights9.com/services.brid.tv/player/build/brid.min.js"></script></head><body><iframe style="border: 0px #ffffff none;" src="https://services.brid.tv/services/iframe/video/378439/12215" name="CricketHighlights9" width="600px" height="400px" frameborder="1" marginwidth="0px" marginheight="0px" scrolling="no" allowfullscreen="allowfullscreen" __idm_frm__="424" __idm_id__="1052194817"></iframe></body></html>
答案 0 :(得分:0)
我已经在小提琴中尝试过,它似乎正在起作用:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<script type="text/javascript"
src="https://crickethighlights9.com/services.brid.tv/player/build/brid.min.js"></script>
</head>
<body>
<iframe style="border: 0px #ffffff none;" src="https://services.brid.tv/services/iframe/video/378439/12215"
name="CricketHighlights9" width="600px" height="400px" frameborder="1" marginwidth="0px" marginheight="0px"
scrolling="no" allowfullscreen="allowfullscreen" __idm_frm__="424" __idm_id__="1052194817">
</iframe>
</body>
</html>