rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: bmartino1 on June 11, 2014, 01:44:03 AM

Title: Information: (mime types)-embed pdfs/video and audio
Post by: bmartino1 on June 11, 2014, 01:44:03 AM
I will put instruction to setup files in html and have a base example ready to download latter...

Using live template version 3.0.1

you will need:
adobe reader installed
vlc installed (this should fix browser plugins)
live template 3.0.1 / (or other compatible html video player)

here is a help full site of some of many "mime types" that will need to be added or changed!
http://help.encoding.com/knowledge-base/article/correct-mime-types-for-serving-video-files/

hfs > menu > Other options > mime types

put a check mark in the box ("Open directly in browser when MIME type is defined")
added/change (see picture of the mime types)

**************
Video Player
to use the embed video a client(a machine that will connect to hfs) machine needs a working "codec video player such as "vlc"
http://filehippo.com/download_vlc_32

Password protected resource
create a "new empty folder" (!NOT A REAL FOLDER!)
Create user accounts and assign them to this folder (Only IF you don't want this open to the "Public")

Add the real folder to where you want your music/movie files to be at...
(using live template)- the tpl has a java/flash based video player that will auto play and have download link...

html code:
!!!NEW: Just found this link very help ful for "beginer in embending video files!!!
http://sandbox.thewikies.com/vfe-generator/

(unknown as it depends on client machine and don't feel like programming and/or sharing)
Google it plenty of helpful places.... and or use a "M3U" playlist file....

*******************
PDF:
To use a pdf in a web browser you will need this software:
http://filehippo.com/download_adobe_reader/

now for the html code:
a real folder with your "*.pdf" file in it
right mouse click "properties" the pdf folder > different templates tab

put this html code in:

-------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>PDF SAMPLE</title>
</head>
<body>
<br />
<embed width="100%" height="700" name="plugin" Title="Resume" src="http://192.168.1.254/pdf/sample.pdf" type="application/pdf">
<br />
</body>
</html>
--------

You will need to setup the pdf document to be view able in a web page:
-----
http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html

http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7f52.w.html

Edit > Prefference > Documents > (make sure htis box is checed)! Save as optimizes for Fast Web View

File > save as > same file it enables the web code in the pdf...
-----
now open http://192.168.1.254/pdf/sample.pdf
(assume you have adobe reader installed... the pdf is now displayed in the browser...)

***************

A download link of a pre set up version will be available shortly...
username and password if asked:
username: test
password: test

hfs mime types.zip
https://drive.google.com/file/d/0B9u5dgydfOEuMkEtcWVtdGdOYTA/view?usp=sharing

*it is better to put the zip files in this path:
C:\hfs\*"contents of zip"
continents:
 hfs 2.3
(sample pdf and movie/musi files (randomly download from google...))

Good luck and have fun! :)
Title: Re: Information: (mime types)-embed pdfs/video and audio
Post by: bmartino1 on June 12, 2014, 12:58:19 AM
information to help on theses possible topics:

template and code design
http://www.rejetto.com/forum/html-templates/music-before-anything-else-mp3-jukebox-video-player/

http://www.rejetto.com/forum/hfs-~-http-file-server/video-(-avi-or-other)-preview-doesn't-work-on-folder-lock-11213/

https://code.google.com/p/rawrmodulemod/downloads/list

http://www.rejetto.com/forum/hfs-~-http-file-server/serving-video-files/msg1059463/?topicseen#msg1059463
Title: Re: Information: (mime types)-embed pdfs/video and audio
Post by: bmartino1 on September 09, 2014, 02:53:04 PM
see html code and example on new post:
http://www.rejetto.com/forum/hfs-~-http-file-server/serving-video-files/msg1059473/?topicseen#msg1059473
Title: Re: Information: (mime types)-embed pdfs/video and audio
Post by: bmartino1 on July 23, 2019, 08:29:12 PM
the sand box wiki is no longer a working site:

here are some other sites that can hel beginers code a html 5 video player

https://coolestguidesontheplanet.com/videodrome/vfe/

https://www.bauer.uh.edu/parks/h5_10.htm

http://camendesign.com/code/video_for_everybody