Jump to content


Photo

Adding a quicktime video to my web page


  • Please log in to reply
6 replies to this topic

#1 ginerjm

ginerjm
  • Members
  • PipPipPip
  • Handball player
  • 4,016 posts
  • LocationVoorheesville NY

Posted 04 January 2017 - 04:47 PM

I've posted many webpages with pictures on them and they are pretty easy. Now I want to post a couple iphone videos that I uploaded to my server. These are .MOV files and I have searched quite a bit for recent posts about how this is done. I know nothing about this and some of the stuff I have found is beyond me. Is there a simple way of doing this? And if not, how about the hard way although not too hard. I don't want to do anything complex like using Youtube or other file converters. I would think it would be possible to just take my own videos and upload them and place them on my own web pages.

I have tried the following snippets:

#1

echo "<video controls='controls' width='300' height='200' name='$name' src='$href'></video>";

And:
#2

echo "<embed src='$href' width='150' height='100' scale='tofit' autoplay='false' controller='true' loop='false'  bgcolor='#C0C0C0' type='video/quicktime' pluginspage='http://www.apple.com/quicktime/download/'>
</embed>";

But neither do anything than display a sized box on my screen. Clicking on them does nothing.

The only reference I found on this forum is from 2007, so I discounted that.

Any help will be appreciated.
JG
PS - If you're posting here you should be using:
        error_reporting(E_ALL);
        ini_set('display_errors', '1');

at the top of ALL php code while you develop it!

#2 benanamen

benanamen
  • Members
  • PipPipPip
  • Master Coder
  • 1,501 posts

Posted 04 January 2017 - 05:09 PM

You might be interested in Flowplayer or Jplayer

 

https://flowplayer.org/

 

http://jplayer.org/


To save time, let's just assume I am never wrong.

The XY Problem
The XY problem is asking about your attempted solution (X) rather than your actual problem (Y). This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.


Make A Donation https://www.paypal.me/KevinRubio

 

"This text has been encoded with ROT26. If you can read this you must have found a backdoor. Congratulations!"


#3 ginerjm

ginerjm
  • Members
  • PipPipPip
  • Handball player
  • 4,016 posts
  • LocationVoorheesville NY

Posted 04 January 2017 - 05:46 PM

Thanks Benanamen but that is exactly what I don't want to do. Don't want to upload my vids to other sites to view them and in the other choice it doesn't support .mov files. Really looking for the simple approach to uplaode it to MY site and rely on a downloaded plugin(?) that is called by the browser if the client doesn't already have the proper tool. Is that not possible? Kinda like how PDF files work when one clicks on the link.
JG
PS - If you're posting here you should be using:
        error_reporting(E_ALL);
        ini_set('display_errors', '1');

at the top of ALL php code while you develop it!

#4 benanamen

benanamen
  • Members
  • PipPipPip
  • Master Coder
  • 1,501 posts

Posted 04 January 2017 - 06:39 PM

I have not used anything else recently to be able to tell you another way. Looks like Flowplayer has changed their model since I used it last.


Edited by benanamen, 04 January 2017 - 06:47 PM.

To save time, let's just assume I am never wrong.

The XY Problem
The XY problem is asking about your attempted solution (X) rather than your actual problem (Y). This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.


Make A Donation https://www.paypal.me/KevinRubio

 

"This text has been encoded with ROT26. If you can read this you must have found a backdoor. Congratulations!"


#5 ginerjm

ginerjm
  • Members
  • PipPipPip
  • Handball player
  • 4,016 posts
  • LocationVoorheesville NY

Posted 04 January 2017 - 07:02 PM

Ok - I have found this to work.


<a><video preload='none' controls='controls' width='300' height='200' name='$file' src='$href' ></video></a>

Have to experiment with other clients to see if something needs to be loaded since my machine has already loaded some things. Buffering too.
JG
PS - If you're posting here you should be using:
        error_reporting(E_ALL);
        ini_set('display_errors', '1');

at the top of ALL php code while you develop it!

#6 Stielle

Stielle
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 06 January 2017 - 01:08 PM

I found this snippet of code and it is working for me without issue.

<EMBED SRC="file.mov" WIDTH=240 HEIGHT = 180 AUTOPLAY=true CONTROLLER=false LOOP=false HREF="mymovie.mov" TARGET="myself" PLUGINSPAGE=http://www.apple.com/quicktime/">



#7 ginerjm

ginerjm
  • Members
  • PipPipPip
  • Handball player
  • 4,016 posts
  • LocationVoorheesville NY

Posted 06 January 2017 - 02:14 PM

The code that I posted prior is working almost perfect. I'd like to find a way to get it to pre-load in order to avoid the buffering, but that isn't working that well.

Thanks for sharing.
JG
PS - If you're posting here you should be using:
        error_reporting(E_ALL);
        ini_set('display_errors', '1');

at the top of ALL php code while you develop it!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users