Streaming Audio/Video on Your Site
InMotion Hosting's servers fully support the implementation of streaming media on your website. This can be done manually or through a script, which are both explained here. The best way to utilize this feature without eating your bandwidth or inconveniencing your visitors is to download a third party MP3/video player and embedding it into the HTML code of your site. I have a few suggestions here on software that is very easy to integrate into your site, with little to no configuration:
You can always do a manual audio/video stream, but we don't prefer this over the embed method, as it tends to load files slowly and use a lot of bandwidth.
To stream an MP3:
Upload your mp3 file to your public_html directory (or to a subdirectory of your public_html directory) in BINARY format. Then create a text file with a .m3u extension. The .m3u file should contain only the URL to your mp3 file, and it should be uploaded in ASCII format.
- Create a subdirectory (e.g., media) in your public_html directory.
- Then, upload your mp3 file named (e.g., mysongfile.mp3 into that directory. Be sure to upload The mp3 file in BINARY format.
- Finally, create a text file (e.g., mysong.m3u) that contains only one line of text: the fully-qualified URL of your mp3 file (e.g., http://yourdomainname.com/media/mysongfile.mp3).
- Then point your browser to the URL of the m3u file (using the above examples, http://yourdomainname.com/mysong.m3u) and the .mp3 file will buffer and play.
Note that if you bypass the m3u file and point your browser directly to the mp3 file, the file will not stream -- the visitor will have to download the entire mp3 file before the media will play. In the case of mp3 media, the buffering is determined by the media player on the listener's computer -- it's not a server-side function.
Thank you for your feedback!