Is it possible to do this without any server-side code... simply store a movie file on the server and 'link' to it on the HTML page? I'd like to hope Flash would make this possible, is there any other easy option other than something like embedding a youtube video?
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
What's the easiest way to put a video in an HTML page?
Collapse
X
-
What's the easiest way to put a video in an HTML page?
Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishing -
The HTML5 <video> element is the way of the future, with Flash fallback for older browsers.
If you don't want to deal with the codec/container problems, you could just use the Flash fallback for everything. Although then it won't work for people who block Flash...
Anyway, that chapter should tell you everything you need to know about video on the web, including links to and instructions for open source encoding tools and a Flash player -
HTML5 is kind of pointless as far as I'm concerned, since they can't even agree a codec. I'd be doing it to be modern, rather than practical. Flash is probably the easiest right now. True, some corporate environments will not allow it - but then they are almost certainly the kind of environments who won't be using HTML5 browsers either so I'm probably just as stuck either way
As always, thanks for the high-quality information though.Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishingComment
-
Originally posted by d000hg View PostHTML5 is kind of pointless as far as I'm concerned, since they can't even agree a codec. I'd be doing it to be modern, rather than practical. Flash is probably the easiest right now. True, some corporate environments will not allow it - but then they are almost certainly the kind of environments who won't be using HTML5 browsers either so I'm probably just as stuck either way
As always, thanks for the high-quality information though.Comment
-
Originally posted by lightng View PostYou're going down the flash route? Think of all the poor Ipad users!Comment
-
Originally posted by d000hg View PostHTML5 is kind of pointless as far as I'm concerned, since they can't even agree a codec. I'd be doing it to be modern, rather than practical. Flash is probably the easiest right now. True, some corporate environments will not allow it - but then they are almost certainly the kind of environments who won't be using HTML5 browsers either so I'm probably just as stuck either way
As always, thanks for the high-quality information though.
Code:<video width="320" height="240" controls> <source src="NewOrleans2006.ogv" type='video/ogg; codecs="theora, vorbis"'> <source src="NewOrleans2006.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> <!-- the next bit will only be used by browsers that don't support <video> --> <object type="application/x-shockwave-flash" data="http://s.ytimg.com/yt/swf/watch_as3-vfl144654.swf" width="100%" id="movie_player" height="100%"> <!--[if IE]><param name="movie" value="http://s.ytimg.com/yt/swf/watch_as3-vfl144654.swf"><![endif]--> <!-- and a bunch of other <param> stuff for Flash... --> </object> </video>
As it is, you already have to muck around with different stuff for different browsers in the <object> element, as IE (surprise) has a non-standard implementation thereof, so the extra markup isn't too much additional work. Also, if you don't want the hassle of encoding for the two codecs, I believe Firefox's implementation of <video> would, if it couldn't find an encoding it liked, also fall back to the Flash version using the H.264 file that both Flash and WebKit browsers would use if you go with the free Flash player recommended above.
If you just want to encode as FLV then this doesn't apply, but I don't know what free FLV players are available for embedding.Comment
-
What's wrong with just a link to an .AVI file ?
Ok, not very sophisticated, but should work, n'est pas?Comment
-
I've had to do this quite a lot recently for various clients and after trying loads of free and trial products and techniques i shelled out my hard-earned for: http://www.sothink.com/product/flash...oder/index.htm
Yes, it is Flash, and yes, i hate Flash BUT for the moment that is definately your best bet and is simple to do and pretty much universally supported (except on iPads).Comment
-
Code:<a href="my_video.mpeg">download my homemade porn here</a>
While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'Comment
-
Originally posted by doodab View PostCode:<a href="my_video.mpeg">download my homemade porn here</a>
There is a reason why YouTube and a million other websites have chosen Flash to stream the video.
There's your answer.
Sorry ipod, iphone, ipad, ipants users.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Gary Lineker and HMRC broker IR35 settlement on the hush Today 09:10
- IT contractor jobs market sinks to four-year low in November Yesterday 09:30
- Joke of the Day Dec 9 14:57
- How company directors can offset employer NIC rising to 15% Dec 9 10:30
- Contractors, seen Halifax’s 18-month fixed rate remortgage? Dec 5 09:59
- Contractors, don’t be fooled by HMRC Spotlight 67 on MSCs Dec 4 09:20
- HMRC warns IT consultants and others of 12 ‘payroll entities’ Dec 3 09:15
- How you think you look on LinkedIn vs what recruiters see Dec 2 09:00
- Reports of umbrella companies’ death are greatly exaggerated Nov 28 10:11
- A new hiring fraud hinges on a limited company, a passport and ‘Ade’ Nov 27 09:21
Comment