• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Stream .m4v video files from Server using Plesk

R

ringoya

Guest
I have had a tough time finding how to stream videos from my server. Which control should I use to configure the server to read video files as video files, not text?

One suggestion was to create an .htaccess file for the folder where the videos are located. So far, it has not worked. Can someone give me a suggestion on how to do this using Plesk? I have no idea how to add MIME properly to allow .m4v and .mp4 because everything I;ve done is not working.

What I've done through Plesk:
1.created a .htaccess file on notepad
2.added

AddType video/x-m4v m4v
AddType audio/x-m4a m4a
AddType video/mp4 mp4

3.uploaded to file to /httpdoc
4.erased the .txt file ending so that it is just .htaccess
5.no change -- itunes and feedburner do not pick up the video
 
This doesn't really have anything to do with Plesk, this is just Apache configuration. Assuming those types are correct (I found video/mp4 for .m4v and audio/mp4 for .m4a when googling) I think you need something like this:

Code:
AddType video/x-m4v .m4v
AddType audio/x-m4a .m4a
AddType video/mp4 .mp4

I believe you just need to add dots in front of the extensions. Whether you put these in a .htaccess file, a vhost.conf file, a separate file in /etc/httpd/conf.d/ or your httpd.conf shouldn't really matter (just different scopes).
 
Thank you!

Dear Bruen,

Thank you so much for answering my question. It worked like a charm. Just forgot the dots and all of a sudden my feeds were readable. I am doing cartwheels around my office! I thought there might be a way to configure everything in Plesk, but I guess it's just something simple that I missed. I am new and learning quickly about working with my own server. Anyway, I really appreciate your help!

Regards, John
 
Back
Top