I have a website URL, when I browse it on the chrome a web page appears which has a streaming video. How can I know the stream URL of the video using java? Its format is .m3u8.By inspecting the chrome elements we can find the URL but I need to send the website URL to the server and know the stream URL.
if you are sending the url from browser to your controller with something like:
$.ajax({
type:'POST',
url: 'your/url/to/yourController',
data:{streamUrl:getItSomehow}
})
then in the controller:
@PostMapping("yourController")
public void processUrl(HttpServletRequest request){
String sentUrl = request.getParameter("streamUrl")
//now you have the url and do whatever you need to do with it
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.