Too many https requsets when web Rqeusting just a single MP4 Video - spring-boot

as you can see in the picture, the chrome has download too many clips of a video when playing a video online.
In rear end, I use springboot WebMvcConfiguer to filter the requests, when request url has '/files/**', it will let the request get the video directly
how can i solve this request problem , and just make the request like this below
Many thanks

I think this is due to the browser loading the video over time versus all at one time. This is typically done for performance reasons and it doesn't seem like chrome likes people working around it. Here is a link to another post about the same thing.

Related

Play SHOUTcast DNAS without entering admin panel

I need URL of a SHOUTcast streaming to be played in browser without entering administration panel and without adding "/;" Nor "/stream" at the end of the URL.
I give you the example of 2 SHOUTcast streaming URLs where one does what I want and the other does not.
If you open this streaming A in Mozilla Firefox you will see that a player appears and plays the sound. Now if you open this streaming B in the same browser you will see that it goes to the Shoutcast administration panel.
(I advise you to watch it in Mozilla because if they do it in Chrome or any Chromium based browser, the player will not be seen because these last browsers download streaming instead of showing the player.)
To achieve the same thing as streaming A, it would be enough to add a slash and a semicolon at the end of streaming B or "/stream" and this would result.
But that solution does not work for a project I'm testing, I need the streaming URL to end in the port with nothing later, just like streaming A.
I've been searching the internet for information for over a week and haven't found anything on how to accomplish this.
Someone help me please.
Best regards
Juan
I have fixed the problem in another way.
I have created independent variables for sound URLs and metadata.
To get metadata I have used https://host:port
And for the sound https://host:port/stream
This way I avoid that the browser recognizes my streaming as html and it plays without problems and I get the metadata correctly . :)

Setting AJAX response as <video> src

For reasons beyond my paygrade, I'm stuck with determining the feasibility of performing an AJAX request to our backend and using its response as the src of a <video> tag. The primary reason for having to perform an AJAX request is that we're adding some mandatory headers that are verified on the backend.
So far, I've come across several StackOverflow posts, 1 2 3 4, that are on the same lines and don't really provide a solution. However, the following MDN link regarding MediaSource looks promising although I believe it attempts to download the entire video before it can play it. It also looks like WebTorrent achieves something very similar to this albeit in a streaming (and preferred) fashion.
Is there a simple approach for playing a video from an AJAX response stream?

Monitoring AJAX requests between a Flash applet and a server via a Google Chrome extension

I am playing a Flash-only game that uses AJAX to communicate with the server. The problem is that all the data is "drawn" and most of it not copy/pastable, so I end up retyping URLs and similar stuff from parts of it (i.e., from the chat).
I thought I'd make a simple page action extension for Chrome that would intercept all the AJAX communication between the game and the server, the way Developer tools can do it, and display only the data I'm interested in (parsing URLs and similar stuff is a no-brainer).
However, looking around the internet, I've found no info on how to do this. Many sites (including answers to some questions here) mention using Developer Tools (I'd prefer having a page action extension, simple enough to share with other players, but any other automation is welcome as well), some mention chrome.webRequest (which seems to be able to provide only the headers),...
I also thought of making a content script along the lines of this answer, but since I'm trying to read the data between a Flash applet (not a web page) and a server, I don't think injecting a JavaScript code is possible.
So, my question is: can this be done and, if yes, how?
In case anyone got the wrong idea, the aim of this is only to monitor the communication and extract the parts I'd want to be able to copy/paste, not change any data (i.e., the purpose is simplification of the game play, not cheating).

Stress test on website contains video

I was using jmeter to stress test my website. But there is website containing videos played by jwplayer. When i send requests it only loads page not playing video. Is there any way to test the page with video?
I'm not an expert on jwplayer (only just heard of it) but I'll take a guess that it is loading the video through some sort of JavaScript/jquery/AJAX mechanism.
From what I understand Jmeter does not process these requests when you fire of a GET request to a page as it is NOT a real browser! If you want to force one of these elements to load * then you must make another GET request with the URL to that element only. On the site I test we have several AJAX elements that I have to test in this way, extracting the dynamic URL from the previous page and using that to load the next one.
*is your website actually hosting the videos, or just linking to a service hosting them? If the latter, there is no point to load testing the videos.

Bootstrap Carousel to play mp4 with ajax

I'd like to stream and play videos from my django site, I've already converted them to mp4 and was thinking about using the carousel widget with bootstrap to play them. Of course I would like to only load the current video and lazy load the rest, as there could be serveral.
I've been scouring the net to find good examples with ajax functionality, not going well, thoughts?
Thanks in advance
You could use $.get() to load data from the server whenever the previous or back arrows are triggered.
api.jquery.com/jQuery.get

Resources