Author Topic: How can i make VLC work in HFS please?  (Read 3356 times)

0 Members and 1 Guest are viewing this topic.

Offline riadtaihi

  • Occasional poster
  • *
  • Posts: 1
    • View Profile
How can i make VLC work in HFS please?
« on: May 25, 2014, 10:37:18 AM »
Hi guys,

I have discovered HFS just yesterday and i have already installed my server and pointing it to the internet.
All working great, except streaming:

Mp3 files work fine but video files no.
I removed security for the folder ant it could play me AVI but not MKV.
Can anybody help me to keep security and be able to play common forms like: MKV, FLV, MP4 and XVID?

Thanks in advance.

PS: i have version 2.3 and RAWR-Template-0.1.3

Bye.

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 788
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: How can i make VLC work in HFS please?
« Reply #1 on: June 14, 2014, 02:23:37 PM »
see previous post:
http://www.rejetto.com/forum/hfs-~-http-file-server/information-(mime-types)-embed-pdfsvideo-and-audio/

(You may need to use a template!)....

You will have to modify your mime list to include them:
hfs > menu > Other options > mime types

http://help.encoding.com/knowledge-base/article/correct-mime-types-for-serving-video-files/

example:
*.mkv would be video/mkv
etc... (See post for more information)

----NOTE:
Some mime types you have to search for, example, search
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=mkv%20mime%20type

and possible result:
http://stackoverflow.com/questions/2912044/iis-directory-listing-doesnt-reconize-mkv-files

and answer for mime type:
use  .mka : Matroska audio audio/x-matroska. .mkv : Matroska video video/x-matroska.

(this will work too: *.mkv would be video/mkv)...
-----
« Last Edit: June 14, 2014, 02:38:24 PM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Follow members gave a thank to your post:


DSGJ

  • Guest
Re: How can i make VLC work in HFS please?
« Reply #2 on: September 04, 2014, 09:39:09 PM »
Your browser will require the vlc player plugin however i prefer the HTML 5 Players But Its Up To You.

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 788
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: How can i make VLC work in HFS please?
« Reply #3 on: September 07, 2014, 07:34:44 PM »
I perfer the live tpl that uses flash, flash makes it more seemless...(to me atleast...)

Your browser will require the vlc player plugin however i prefer the HTML 5 Players But Its Up To You.

http://www.w3schools.com/html/html5_video.asp

Google is your friend:
https://forum.videolan.org/viewtopic.php?f=14&t=34152
here...
------
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Simple VLC activeX page playing Nasa stream</title>
</head>

<body>
<!--
Insert VideoLAN.VLCPlugin.2
-->
<div>
<OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0"
width="640"
height="480"
id="vlc"
events="True">
<!--below you can put your url to the video the current one is the NASA stream-->
<param name="MRL" value="THIS IS YOU VIDEO PATH!!!" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="True" />
<param name="Volume" value="50" />
<param name="StartTime" value="0" />
<EMBED pluginspage="http://www.videolan.org"
type="application/x-vlc-plugin"
progid="VideoLAN.VLCPlugin.2"
width="640"
height="480"
name="vlc">
</EMBED>
</OBJECT>
</div>
<INPUT type=button id="Play" value=" Play " onClick='document.getElementById("vlc").playlist.play();'>
<INPUT type=button id="Stop" value="Stop" onClick='document.getElementById("vlc").playlist.stop();'>

<!--Script to detect if vlc 0.8.6a is installed-->
<script language="javascript">

try{
if (document.getElementById("vlc").VersionInfo!="0.8.6 Janus")
{
alert("Download and install the VLC player")
window.navigate("http://www.videolan.org")
}

}
catch(e)
{
alert("Download and install the VLC player")
window.navigate("http://www.videolan.org")
}   
</script>
</body>

</html>
------------
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1