Cannot download the file from the server. The server provides status codes to the console in this order readyState, status : 2 - server responded 3 file downloads 4 - file download When you get the state 2, clear the timer, then wait for the status 4. But this code why it is not working.
What am I doing wrong? May asked September 24th 19 at Related questions 2 How to fix the layout for ie 8 and padding? Ronaldo answered on September 24th 19 at This means that when the readyState is equal to 4, the function performs a return. I mean the timeout is not needed?
Or you need to configure somehow? May commented on September 25th 19 at You can check for timeout instance. But given the surprises from Safari and setTimeout will do. It doesn't really matter but it would be nice to get only the links for the Now that I think, the way to get the links would be going to the end of the video and getting the last number and generating the links modifying the number from one to last. How would I generate the links?
And then when I have the links here's the way to download them but how do I merge the video parts? If the links are sequential generate the links like:. If there is an init link it has to be included at the beginning of the video-links. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Download streaming video with many xhr parts separated for audio and video Ask Question. Asked 2 years, 6 months ago. Active 1 year, 6 months ago. Viewed 16k times. How do I get the video links in one file and the audio ones in another? What should I do with the init links? Add them to the list? And when I have the audio and video how do I combine them in the final mp4?
Is there a way to get full video from these files? I tried Flash Player Downloader and it downloads the file in. I don't have a real answer but I, too, tried to download such a fragmented stream.
It's a pain. All subsequent parts numbered Generating the download links for all the parts, downloading and merging them, can be easily scripted, as shown in the linked post:. You have to download all parts, including IS.
Sometimes you'll also need to download the audio track in such way, too. After you have the video and audio track, combine them in one container. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to download streaming video from xhr Ask Question. Asked 3 years, 10 months ago.
0コメント