解析基于Flash Player的视频源

时间:2018-05-09 05:21:14

标签: java jsoup

我想解析网页并从src获取视频的网址。使用浏览器,div中的视频标签看起来像这个

<video style="width: 854px; height: 480px; left: 0px; top: 0px;" tabindex="-1" class="video-stream html5-main-video" controlslist="nodownload" src="blob:https://www.youtube.com/69bf4dd1-062f-487f-8ca7-6a2493f8dfc8"></video>

但是当我使用Jsoup时,它会显示此消息而不是视频标记

You are seeing this message either because your Flash Player is outdated or because your browser does not support HTML5 player

这是我的代码:

final Document doc = Jsoup.connect(this.url)
                                      .validateTLSCertificates(false)
                                      .get();

如何让视频src避免支持Flash Player?

0 个答案:

没有答案