HTML5 <video> or <object> tag?

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
MCPBecker
Propeller Head
Posts: 64
Joined: Tue Feb 26, 2013 6:12 pm

HTML5 <video> or <object> tag?

Post by MCPBecker »

:flare: I am using HTML5 as my output. I have about 500 little video clips in my project. They were .swf format, but I am converting them (at great pain and suffering) to .mp4 since we are releasing a Mac version of our product. (The .swf format isn't popular on Macs.) The way I interpret http://www.w3schools.com/tags/tag_object.asp documentation, the <object> tag isn't the right tag to use. For HTML5, they say to use the <video></video> tag to insert .mp4 files. Flare doesn't accept this. If I use Flare's Insert menu > Multimedia > HTML5 Movie, Flare puts in <object></object> tags. If I manually put in <video> tags, I get an " Invalid syntax" error even though the uncompiled page displays just fine in my browsers. In fact, if I open the raw .htm pages, the content with the <video></video> tags plays the video, and the content with the <object></object> tags displays nothing at all. The project won't compile with <video> tags. What gives? Is Flare output HTML5 compliant or not? Why won't Flare accept <video> tags? :( How do I resolve this issue? Any ideas?
~M Becker
kathryngz
Propeller Head
Posts: 76
Joined: Wed May 14, 2014 11:31 am

Re: HTML5 <video> or <object> tag?

Post by kathryngz »

I was having similar issues. Today I got my mp4 to work by inserting it normally in Flare (which of course created object tags). Then I went into the text editor, replaced the object tags with video tags. Flare wouldn't accept the simple addition of the controls parameter, but when I put controls = "true" the output was built correctly and the controls were displayed.

Oh, and I built from the text editor, not XML view. I don't know if that made a difference, because I didn't try building from XML view :) Anyway, hope that helps!

Kathryn
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: HTML5 <video> or <object> tag?

Post by NorthEast »

You don't need to insert mp4s by hand using a video tag.

Just insert it using Insert > Multimedia > HTML5 Movie.

Flare inserts it as an object tag in the source (XML editor), but it converts that to a video tag in the built output.
Post Reply