Jump to content

Play Videos In Local Video Player When Clicked On The Link.


Recommended Posts

Hello Everyone,


I am doing a project where I am uploading user videos to amazon. On a page, user see titles of all the videos uploaded by him/her. These titles are clickable links(linked to amazon cloud). When clicked, it asks for "Open with" or "Save" in firefox. I want to play video in local player(which is available to user in his local machine) when link is clicked. I hope, it makes sense.


Thanks in advance.

Link to comment
Share on other sites

I believe this would have to be done by setting the appropriate Content-Disposition header, either with server configurations or, if you are serving the files by PHP, by setting that header field. It will then be up to the browser to display the video using whatever video players are available on the local machine.

Link to comment
Share on other sites

  • 4 weeks later...

If you're getting a direct download to the video file, you should use JS to create an element to embed the player. JW Player is a common and easy choice.


If you meant to have it download to their PC and then playing it automatically, that's not something you can control. You could maybe try using a vlc:// link or something for common players, but not everyone uses it. Personally, I use SMPlayer .. so it would be a pain in the ass to someone like me. Many "common people" use Windows and their media player, which there's a plug-in for if you wanted to use that.


I think you may need to explain more. But you shouldn't try to control software on the machine if you want it to be universal. If the first one was what you wanted, you should replace it each time so you don't end up embedding and buffering multiple videos, or you'll rape the bandwidth and most people can't handle that.


Maybe give us more info?

Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.