我想编写获取值流但是失败。
如何使用Jsoup获取价值流:http://123.30.215.65/hls/4545780bfa790819/5/3/d836ad614748cdab11c9df291254cf836f21144da20bf08142455a8735b328ca/dnR2MQ==_m.m3u8?
<html>
<head>
<style>html,body{margin:0;padding:0;background:#000;;}</style>
<meta charset="utf-8">
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/clappr/latest/clappr.min.js"></script>
<meta name="referrer" content="no-referrer">
</head>
<body>
<div style="width: 100%;">
</div>
<div id="player"></div>
<script>
player = new Clappr.Player({source: "http://123.30.215.65/hls/4545780bfa790819/5/3/d836ad614748cdab11c9df291254cf836f21144da20bf08142455a8735b328ca/dnR2MQ==_m.m3u8",
parentId: '#player',
width: '100%', height: "100%",
hideMediaControl: true,
autoPlay: true
});
</script>
</body>
</html>
&#13;
Java代码我:
Elements script = doc.select("script");
Pattern p = Pattern.compile("player = new Clappr.Player(\\(\"source:{\", \"(.*)\", false\\)");
// ^^ is the capturing group
String url = "";
for (Element element : script) {
Matcher m = p.matcher(element.data());
if (m.find()){
url = m.group(1);
}
}
System.out.println(url);
答案 0 :(得分:0)
您可以在代码中尝试此操作,
Select * from
(
select t1.idT1,t1.Name,t2.OptionDescription,selected from t1
inner join t3 on t1.idT1=t3.idT2
inner join t2 on t2.idT2=t3.idT3
)x
pivot
(
max(selected)
FOR x.OptionDescription in ([Available On Monday],[Available On Tuesdey],[Available all Nights])
) pvt
这就像一个魅力..! :)