rejetto forum

Author Topic: Information: (mime types)-embed pdfs/video and audio  (Read 17152 times)

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
Information: (mime types)-embed pdfs/video and audio
« 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! :)
« Last Edit: January 09, 2016, 02:49:30 PM by bmartino1 »
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing

Follow members gave a thank to your post:


Thank-o-Matic 3.0 By Adk Team