rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: bugmenot on July 09, 2016, 10:24:50 PM

Title: Replacing RAWR Templates' player with HTML 5 or VLC player?
Post by: bugmenot on July 09, 2016, 10:24:50 PM
Sorry for using bugmenot, but registration seems slightly broken; verification emails don't get sent out.

Anyway, as a new user of HFS, can anyone help me figure out how to replace the RAWR templates' video player with an HTML5 player? Chrome doesn't support Java anymore, so chrome users can't stream video from a server using them.   

I've seen bmartino's post here: http://www.rejetto.com/forum/html-templates/need-template-support-html5-on-iphone/msg1060855/#msg1060855

Unfortunately, I have no idea where to start if I want to force RAWR templates to use this player instead of their default, or how to force them to use a VLC plugin either.   I just want to get this working in chrome and firefox at the same time.
Title: Re: Replacing RAWR Templates' player with HTML 5 or VLC player?
Post by: bmartino1 on July 10, 2016, 04:59:34 AM
are you tying to play a video on a iPhone device?
or any device with the web browser?

for PC web browsers:
i would recommend the live template rarw design...

you can download the rarw templates here:
http://www.rejetto.com/forum/rawr-designs/latest-releases/

i recommend live for the html / hfs template and flash video built in support... the device you play will need a coded compatible player... (possible some "mime type" updates)

Instal example:
extract the zip file contents
C:/HFS folder path/hfs.exe
C:/HFS folder path/zip file contents:
    - template folder
    - filename.tpl

dir:
C:\webroot\templates
C:\webroot\hfs.exe

in hfs (expert mode) > menu > html > change file , select the tpl (the template is now active and live....
*it should auto add the template folder

Otherwise:
if you are want-ing to steam a single file, then i recommend html coding with help form :
http://v4e.thewikies.com/
http://www.w3schools.com/html/html5_video.asp

and see other thread for more forum info:
http://www.rejetto.com/forum/hfs-~-http-file-server/information-(mime-types)-embed-pdfsvideo-and-audio/
http://www.rejetto.com/forum/hfs-~-http-file-server/serving-video-files/msg1059473/#msg1059473


Title: Re: Replacing RAWR Templates' player with HTML 5 or VLC player?
Post by: dj on July 10, 2016, 08:23:57 AM
you can use the standard template for the supported formats

http://www.rejetto.com/forum/beta/downloaded-files/msg1052766/#msg1052766 (http://www.rejetto.com/forum/beta/downloaded-files/msg1052766/#msg1052766)

Menu > Other options > MIME types...   and open directly in browser
*.mp4   |video/mp4    (H.264 1 2)
*.ogg    |video/ogg     (Theora)
*.webm |video/webm (VP9)
*.mp3   |audio/mpeg
*.m3u8 |    3

update:  1H.265 in Edge 2in mkv in Chrome 3in Edge (HLS)

Title: Re: Replacing RAWR Templates' player with HTML 5 or VLC player?
Post by: bugmenot on July 10, 2016, 05:41:41 PM
Thanks for answering! I think that's my main problem, is I don't know how I can insert code into the templates; they only seem to have TPL and css files; are the TPL files just filled with html code? That would make it easier.

As for what I'm trying to do - trying to make mkvs streamable, since that's the easiest format for me to make HEVC/H265 stuff.
Title: Re: Replacing RAWR Templates' player with HTML 5 or VLC player?
Post by: rejetto on July 17, 2016, 02:46:20 PM
mostly HTML, broken in pieces, and some extra commands.
you can find an explanation here
http://www.rejetto.com/wiki/index.php?title=HFS:_Template
Title: Re: Replacing RAWR Templates' player with HTML 5 or VLC player?
Post by: Mercurious on July 18, 2016, 08:19:52 AM
Thanks for the info; I'm working on it now - if I can find a way to get html 5 viewing HEVC content, I'll post it here.
Title: Re: Replacing RAWR Templates' player with HTML 5 or VLC player?
Post by: bmartino1 on July 22, 2016, 09:39:19 PM
Thanks for the info; I'm working on it now - if I can find a way to get html 5 viewing HEVC content, I'll post it here.

hevc contect? is that the mkv code???
Title: Re: Replacing RAWR Templates' player with HTML 5 or VLC player?
Post by: LeoNeeson on July 23, 2016, 11:50:09 AM
HEVC (https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding) is a codec (https://en.wikipedia.org/wiki/Video_codec) (also known as H.265, and is the successor of the popular H.264) and MKV (https://en.wikipedia.org/wiki/Matroska) is a video container (https://en.wikipedia.org/wiki/Digital_container_format#Multimedia_container_formats), the same way an AVI (https://en.wikipedia.org/wiki/Audio_Video_Interleave) can be the container of a DivX (https://en.wikipedia.org/wiki/DivX) or XviD (https://en.wikipedia.org/wiki/Xvid) encoded video (DivX/XviD is a codec too). Files encoded with H265 are very small, but needs a powerful machine to play them.
Title: Re: Replacing RAWR Templates' player with HTML 5 or VLC player?
Post by: bmartino1 on July 23, 2016, 03:06:22 PM
ok... then i would recommend a vlc stream server:

ok h.265 is aviable via codec:
http://www.videolan.org/developers/x265.html

overview - setup:
http://www.videolan.org/vlc/streaming.html

http://www.howtogeek.com/118075/how-to-stream-videos-and-music-over-the-network-using-vlc/

you can also tie in the vlc web player into hfs.....

at that point hfs would need the codec defined...
mimetype info:
https://www.ietf.org/mail-archive/web/media-types/current/msg00588.html
https://mailman.videolan.org/pipermail/vlc-devel/2014-October/099806.html
https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format
https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding

etc file format > video/hevc
Code: [Select]
*.mkv > video/hevc
You may also need to call the source codec:
http://stackoverflow.com/questions/5672833/where-is-a-complete-list-of-mime-types-with-codecs-for-the-html5-source-attribut

Code: [Select]
<source src='url' type='mime/type; codec="codec-name"' />
will look into getting a file and test with the video player html and get back to you, this seems easily done with defining the mimetyoe and teling the html source to use x codec...


call html call vlc web plugin:
https://wiki.videolan.org/Documentation:WebPlugin/
https://wiki.videolan.org/Simple_Stream_VLC_to_Website/
http://stackoverflow.com/questions/14375767/embedding-vlc-plugin-on-html-page