CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You need to create a web page that "points" to the video. That can be done several ways and the video needs to be in a format that supports the method.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
On my local network I just point my Apache server to the files then they play, in VLC, when opened with my browser.
You may need to describe the situation more clearly?
this plays as an embedded video on firefox and chrome but IE it asks me whether i want to open it or save it and when i choose open it opens up my default video player VLC
About your title: You cannot actually play videos in apache server: Web servers just send files and data to your browser. It is the browser that can actually play or render things or call 'helper' programs to do that.
A video is just a file. Make an HTML or XHTML properly formatted page that the browser can use to download your video and it will attempt then to render it. If it can, you are golden; if it cannot you may need to configure something (vlc?) to 'help' it with that final step or choose a different browser.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Perhaps you're referring to the ability of HTML5 to embed video? In which case you need suitably encoded files and an HTML5 page for each file with (I'm going from memory here) something like a video canvas or video object embedded.
Perhaps you're referring to the ability of HTML5 to embed video? In which case you need suitably encoded files and an HTML5 page for each file with (I'm going from memory here) something like a video canvas or video object embedded.
Actually, no, I was just referring to the older way of providing a file using a link and trust the browser to manage it on the client end. The HTML5 media extensions are nice, but not globally supported. Yet.
Frankly I had not thought of using the media extensions in HTML5, and that might be a good thing to try!
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by wpeckham
Actually, no, I was just referring to the older way of providing a file using a link and trust the browser to manage it on the client end. The HTML5 media extensions are nice, but not globally supported. Yet.
Frankly I had not thought of using the media extensions in HTML5, and that might be a good thing to try!
My apologies, my reply was to the OP rather than you but I am glad if it gave you some ideas to play with.
The behavior described by the OP seems to be IE specific so it's either a client problem for all clients using IE and the IE clients need a group policy applying or, if they're not under control of the page writer, they need nudging by something like HTML5 tags.
As others have pointed out, Apache doesn't "play" video; it serves a file. If a browser isn't "smart" enough to play the file, then the user ought to use an application that is meant to play that file type (such as vlc, which can play local or remote video quite happily).
If you want to use HTML5 magic, then something like this ought to do:
Code:
<video class="motionpicture" width="720" height="480" autobuffer
controls preload="auto">
<source src="/path/to/vid.webm" />
Your browser does not appear to support HTML5 media. Try updating
your browser or (if you are not already) using an open source
browser like Firefox." </video>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.