PDA

View Full Version : Adding my own video in Dreamweaver CS5


murj
01-10-2011, 09:39 PM
Sorry to bother you all again. I need some help inserting a video into CS5. The video is in my folder along with everything else, so it's not like a youtube link. I saw a tutorial showing the video tag in HTML5 but it didn't exactly work.

Are there any sort of file type restrictions with it? And how exactly do I do it?

Many thanks

DWcourse
01-10-2011, 10:11 PM
Video tag isn't supported by all browsers. What file format is your video?

murj
01-10-2011, 10:39 PM
It was an MP4, I managed to get an FLV in it but I don't know whether it would work on both mac and pc?

DWcourse
01-10-2011, 10:44 PM
An FLV should work as long as the user has the flash plugin (most do). menu: Insert>Media>FLV

Ricky55
01-10-2011, 11:32 PM
IMO you should be using HTML5 video either as your first option with a Flash fall back or the the other way around flash first with an HTML5 fall back.

Two excellent resources for both methods:

Flash with HTML5 Fall Back
http://www.gotoandlearn.com/play.php?id=128

HTML5 with Flash Fall Back
http://camendesign.com/code/video_for_everybody

Using either of these methods will ensure your video not only plays in all browsers on both Mac and PC but also on many mobile devices including Apples iPad and iPhone.

The file formats you need are MP4 and OGG.

Lets move the web forward a bit rather than just sticking up some flash content by clicking an icon in Dreamweaver.

Ricky55
01-10-2011, 11:34 PM
If you need to create mp4 use handbrake.

http://handbrake.fr/

If you need to create ogg theres an excellent Firefox extension called firefogg

https://addons.mozilla.org/af/firefox/addon/216804/

DWcourse
01-10-2011, 11:53 PM
Having to server two version of your video file and a bunch of special code doesn't seem like moving the web forward to me. Personally I prefer to host my videos offsite and let someone else deal with the issues. I'll catch up with the web when it settles on a standard.

Ricky55
01-11-2011, 02:30 AM
Hardly special code it's actually very simple code, that's provided for you just copy and paste. If you are waiting for technologies like css3 and html5 to be fully standardised you'll be waiting a very long time and that to me is a real shame.

I view the web a lot on my iPad and it really annoys me when web designers don't bother to offer up a flash alternative.