I want to download a video on example.com, but it's "protected" by a flash player.
By inspecting the HTML code of the page, I've been able to get the direct URL to the mp4 video from the player's parameters, something like example.com/video.mp4.
When I try to go to example.com/video.mp4, I just get a blank page mentioning access denied. I figured that you need to do a specific request in order to get the video.
I analyzed traffic while reloading the page and playing the video through the player, and I've been able to get the right URL, which is along the lines of example.com/get_video.php?param1=some_hash¶m2=some_hash&filename=video.mp4
When I visit example.com/get_video.php?param1=some_hash¶m2=some_hash&filename=video.mp4, I do have the video playing alone, with no other content, in my browser's default player. But when I try to save it, the dialog box wants to save the PHP page...
How do I save the video now that I have it ?
Thanks.
Related
Can I hide the source URL in the HTML 5 audio player? I am using audiojs api to make my web audio player now, but I don't know how to hide the source URL. Should I use other way to make the audio player, I can use PHP, jQuery and javascript to do that. This is my assignment, please help me.
You can't hide the source URL.
The source URL is required for the browser to be able to get to the audio data. The URL must be available in some form. Now, you can redirect to it, load it with JS, etc., but at the end of the day anyone can look in the network tab and see that URL.
I am new to php. I am having anchor links each will play a video in new tab after clicking on it.
So the problem is: If anyone knows the exact url of video, they can paste that url in browser and can watch the video, which should not happen. But currently this is the issue I am having.
I knew that we can do this by checking with sessions, but not understanding in a programmatic approach. I tried in other way using html5 video links too, but has no luck that way either.
Kindly provide me some great solution for my above issue.
Below are the video anchor links :
MyVideo1
MyVideo2
MyVideo3
Some time ago I programmed a webpage which can stream videos for logged in users. I didn't made a direct link reference to the video file, I put the video files in a private directory not accessible via browser which is readable by the PHP files. Then the links to the video files were all looking like this: <a href='stream.php?id=[id]'>Video</a> where the id is a randomly generated string which is saved and valid for a limited time. So when someone has this link to the stream.php script he cannot use it as the id will be invalid at a later time. And the php script just takes the mp4 file out of the private directory and puts it to output. It's also possible to make the stream.php script able to handle jumps during watching the video.
This is a progress after the question Embedding Image/Video Stream into webpage that was answered for the picture only using curl, video is still an open issue.
Resuming, I need to avoid that the visitor of a web page see the real source of an image streming. So I want to embed the video a some wrapper php page that doesnt use any userid/password but is under my control. Embedding the video stream into any HTML page it's really easy:
<img src="http://5.246.77.89:8090/videostream.cgi?user=stack&pwd=overflow&resolution=32&rate=15" alt="">
For some time I'll give you the opportunity to test the source of the video streaming that I want to hide here
http://93.58.198.189:8090/videostream.cgi?user=stack&pwd=overflow&resolution=32&rate=15
Now all I need is a simple web page let say video.php that is able to stream the video without asking credentials and hiding the original source IP, something like
<img src='my.php'>
How can I obtain this behavior?
Note that despite the source is a video stream, the header is image/jpeg as you can see by yourself and it works with any browser. I've tried to use
<?php
header("content-type:image/jpeg");
passthru("http://93.58.198.189:8090/videostream.cgi?user=stack&pwd=overflow&resolution=32&rate=15");
?>
but for some reason doesn't work. Any idea?
Good question, i was also had a same problem.
Now its solved for me. just you can go to you tube video url where your video is stored and below the video there is share ad embed, you go to embed and there you will get a url which can be embeded to your video.php. it works.
I have a question and i don't know how to explain.
If i post an audio file on soundcloud (e.g.) the site is giving me a link. Facebook recognizes the link and is showing me a play button, and i can listen directly on the page, without having to go to the soundcloud. Also, is on soundcloud i upload an image, facebook will show my image.
Can someone explain how can i do that ?
I have a server and from time to time i want to post some audio file (link from my server) to facebook. I want facebook to recognize my links, so everyone who is accessing my page to be able to listen the audio file.
Thanks a lot for your answer.
You need something called Open Graphs Tags. This is meta data which lives in header of your page.
I noticed that on facebook, when you click on an image it opens up in their photo viewer. I understand that is done with javascript, but when you look at the url it says:
http://www.facebook.com/photo.php?fbid=3230830261587&set=a.1664092454121.85323.1591534315&type=1&theater
But, you can still see your profile/or news feed (wherever you were when you clicked on the image) behind the photo viewer. How? It appears (upon observation of the url) that you have been redirected to facebook.com/photo.php. Is that the case? And how are you redirected back to www.facebook.com/(previous).php when you close the viewer?
Facebook uses a new browser feature that can modify the browser's history. See http://badassjs.com/post/840846392/location-hash-is-dead-long-live-html5-pushstate for how Facebook changes the URL in the address bar. To display the photo, all that Facebook does is show a DIV over the document body at the same time.