Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » Article Discussions

Discuss the articles posted on Dev.Opera.

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By operadev anchor Wednesday, 7. November 2007, 18:29:15

A call for video on the web - Opera <video> release on Labs

To really make a splash on the Web, video needs an open solution that can easily be integrated into web pages without the need for proprietary plugins. The HTML 5 <video> element and Ogg Theora can provide this, and Opera is proud to announce an experimental build that suppports it. So read this article, and download and play with it today.


( Read the article )

By GreyWyvern anchor Wednesday, 7. November 2007, 19:11:24

avatar1) I am interested in the reasoning behind the push for a new HTML element at a time when browser developers are still putting the final pieces in place for cross-browser support of an element which *already* embeds video, namely <object>. What clear and explicitly technical advantages does <video> have which would be impossible to implement with <object type="video/theora"> ?


2) With the introduction of the <object> element in HTML4, developers were excited about a single element with the potential to replace a host of others used for separate types of external content, especially the disparate and badly cross-browser supported <applet> and <embed> elements. At the time, <object> was seen as the successor, not only to those elements, but to <img> and <iframe> as well.
Indeed, all of Opera, FF and IE7 already support <object type="text/html"> in an <iframe> fashion (Opera and FF even add it to the window.frames DOM object)...
Now, with the promotion of the media-specific <video> element, the original push for a Great Unification of all external media under one generic element seems to have been reversed. My question is this: The W3C originally created the <object> element to replace two very different means for embedding video; how do you plan to convince them to re-authorize co-existing methods for embedding video?


3) Building on my last question: How is the creation of a <video> element different in principle than the creation of, for example, <tif>, <tga> or <raw> elements to include specific image media types outside of the currently recommended <img> and <object>? I say "in principle", because the difference in scope is obvious.

By hzr O anchor Wednesday, 7. November 2007, 19:44:40

avatarThankfully it works in Wine.

GreyWyvern, I hope this post from Anne clears things up: http://annevankesteren.nl/2007/03/video

This build of Opera also supports video in SVG, and the 3d <canvas>

Any chance you'll put up p01's 3D snake then :wink:

Post edited Wednesday, 7. November 2007, 19:50:23

By JeroenH anchor Wednesday, 7. November 2007, 20:18:44

avatar

Originally posted by hzr:

3d <canvas>


There's a working 3D canvas demo in Erik Dahlström's SVG Open 2007 presentation titled: "Quick recipes for SVG Wow!" Unfortunately, I don't know where I've downloaded the slides from... Anyone?

It's not exactly fluent, but that might be my PC.

By hzr O anchor Wednesday, 7. November 2007, 20:34:09

avatarJeroenH, thanks, I found the presentation[1], but the links to the demos seems to be broken.

[1] http://www.svgopen.org/papers/abstract3/

By IceArdor anchor Thursday, 8. November 2007, 02:38:42

avatarI thought the W3C decided it didn't like truncated attributes (instead of using <input type="radio" checked />, they wanted people to use <input type="radio" checked="checked" /> This seems like a step backwards, and a bit counter-intuative (plus more difficult to manipulate with DOM, I'd think). Furthermore, it isn't as evident that it is a boolean value, or what the potential options for the controls attribute are. It seems like it'd be better to use controls="display" and control="hide", or controls="true" and controls="false".

I'm assuming this build is similar to Hakon's build, released on March 29, 2007, with quite a bit of work having been done to this build since the last <video> build.

By moo anchor Thursday, 8. November 2007, 08:30:28

avatarGreat demos!! Very exciting. Only, the video didn't stop when I changed the tab's address. (Also an indication of buffering status would be nice.)

GreyWyvern: Look at some of the demos and you'll see why <object> is inadequate and that there are characteristics of video that make it distinct from both <img> and <object>.

iceArdor: I'm sure controls="on" would work. And I doubt it's fixed.

By lockoom anchor Thursday, 8. November 2007, 08:38:27

avatar

Originally posted by IceArdor:

I thought the W3C decided it didn't like truncated attributes (instead of using <input type="radio" checked />, they wanted people to use <input type="radio" checked="checked" />


It's just XHTML vs HTML. Nothing wrong in using HTML syntax

Originally posted by IceArdor:

This seems like a step backwards, and a bit counter-intuative (plus more difficult to manipulate with DOM, I'd think).


You're wrong. There are no problem with DOM manipulations in HTML concerning shortened boolean attributes.

Originally posted by IceArdor:

Furthermore, it isn't as evident that it is a boolean value, or what the potential options for the controls attribute are. It seems like it'd be better to use controls="display" and control="hide", or controls="true" and controls="false".


For anyone who ever use HTML syntax it is quite evident :smile: Actually the only way to use boolean attributes in XHTML is in form controls="controls" which I'm pretty sure also works in this build. Anyway I also prefer XHTML syntax but there are nothing wrong in HTML one. It's only matter of taste.
To be specific HTML syntax is preferred for documents send as text/html. XHTML should not be send with that mime type.


BTW: These demos are awesome. Especially "video-reflect" and "video-filter".

By mattie anchor Thursday, 8. November 2007, 10:56:42

avatarwow, that's amazing! i didn't know something like that was in the pipeline. it sure seems like a good idea to me..

By JeroenH anchor Thursday, 8. November 2007, 12:54:00

avatar

Originally posted by hzr:

thanks, I found the presentation[1], but the links to the demos seems to be broken.


I found the demos.

It's quite amazing what Opera can put in just over 5mb by the way.

By grafio anchor Thursday, 8. November 2007, 14:02:49

avatarCool. I would like to read more about 3d canvas though...

Post edited Thursday, 8. November 2007, 15:02:33

By johnoyler anchor Thursday, 8. November 2007, 15:46:55

avatarI like this, I like it alot, but valueless attributes are generally icky. This is probably the wrong place to complain, but I don't feel like signing up for the mailing list just to point it out. What's wrong with controls="none" and controls="all" ?

My god, to be able to do away with crappy flash flv players though. It boggles.

By hzr O anchor Thursday, 8. November 2007, 16:03:12

avatar

Originally posted by JeroenH:

I found the demos.


Thank you very much :smile:

Originally posted by johnoyler:

I like this, I like it alot, but valueless attributes are generally icky. [...] What's wrong with controls="none" and controls="all" ?


Nothing wrong using the unminimized form (which is controls="controls" BTW), but the minimization is nice when hand authoring. The resulting DOM will look the same, so I don't see why so many people see this as a problem. It's just a shortcut.

By zarlino anchor Thursday, 8. November 2007, 16:26:57

avatarWhy a new "video" element? Wasn't "object" with right mime type perfectly appropriate for video too?

A standard javascript interface for video could be also defined to script the "object". So, again, what's the point for the new tag?

By xErath O anchor Friday, 9. November 2007, 01:17:21

avatarzarlino, did you read the article and see the videos ?
all plugins have the scripting problems, besides requiring different implementations between browser and operating systems.

That filters thing + svg left me drooled ! p:

By IceArdor anchor Friday, 9. November 2007, 02:53:52

avatarI hope that music becomes a first-class citizen some time soon.

By grafio anchor Friday, 9. November 2007, 10:59:48

avatarHere is a small demo of 3D canavs I made:

http://files.myopera.com/grafio/files/demo1.html

(thanks JeroenH for finding the Opera demos)

Post edited Friday, 9. November 2007, 11:09:05

By JeroenH anchor Friday, 9. November 2007, 12:37:29

avatarNice work grafio, how is your performance? I get like 2 frames/second...

By the way: these are the methods and properties of the 3d context.
blend:replace
color:#ffffff
farPlane:100
fov:90
nearPlane:0.1
texture:[object Canvas3DTexture]
ztest:lessequal
save:function save() { [native code] }
restore:function restore() { [native code] }
beginScene:function beginScene() { [native code] }
endScene:function endScene() { [native code] }
translate:function translate() { [native code] }
scale:function scale() { [native code] }
rotateX:function rotateX() { [native code] }
rotateY:function rotateY() { [native code] }
rotateZ:function rotateZ() { [native code] }
drawTriangle:function drawTriangle() { [native code] }
draw3DModel:function draw3DModel() { [native code] }
createTexture:function createTexture() { [native code] }
create3DModel:function create3DModel() { [native code] }
checkIntersection:function checkIntersection() { [native code] }

By grafio anchor Friday, 9. November 2007, 13:03:34

avatarWell on my PC it's at least 25 fps I think.

By p01 O anchor Friday, 9. November 2007, 21:19:59

avatarIt's great to finally see these builds in the wild!

By Tangent128 anchor Monday, 12. November 2007, 01:44:21

avatarWow. I am impressed. (I have a widget that can benefit from the new canvas context.)

Any chance these are going to make the final 9.5?
One can dream...

By zarlino anchor Monday, 12. November 2007, 13:14:23

avatar@xErath
you didn't get my opinion. A standard Javascript interface can be created for "Objects". Scripts can test if it is supported as they already do with other scripting features. Something like "if(videoElement.isStandardInterface)".

That said browsers could provide native player functionality for certain MIME types. Also plugins could implement that standard interface. And voilà you don't need to extend HTML in any way.

By duncanbrown anchor Sunday, 30. December 2007, 15:41:58

avatarI played with the build a bit and I quite enjoyed it. Html video element works pretty nice, hopefuly it will be there in the final build.

By smil4me anchor Tuesday, 5. February 2008, 19:17:40

avatarGood work there, very impressive :smile:

Only thing that can improve on that, is having SMIL Timesheets (when ready) integrate the video with the other elements on the page.

http://www.w3.org/TR/2008/WD-timesheets-20080110/

jose

By mathiastck anchor Thursday, 7. February 2008, 01:26:07

avatar

Originally posted by johnoyler:

I like this, I like it alot, but valueless attributes are generally icky. This is probably the wrong place to complain, but I don't feel like signing up for the mailing list just to point it out. What's wrong with controls="none" and controls="all" ?

My god, to be able to do away with crappy flash flv players though. It boggles.



Yeah I came to this forum specifically to find out what Opera Mobile's flash support was, largely to figure out it's true video support.

By Jzarecta anchor Thursday, 3. July 2008, 06:30:37

avatarI wonder if the Linux/Unix release is already out? Where can I get it?

By roytam1 anchor Sunday, 3. August 2008, 12:12:35

avatarWhat about <audio> tag? Fx3.1a2 even supports ogg vorbis in <audio> tag, although no control and showing alt. text in the tag.

Post edited Sunday, 3. August 2008, 12:30:27

By ashyanbhog anchor Monday, 4. August 2008, 10:35:27

avatarI dont see volume control on any of the demos nor timeline that allows going forward or backward. And does the <video> tag allow autoplay? If yes this will turn into yet another headache along the lines of unwanted flash and gif ads.

Great to have built-in ogg audio and video support though. Hope this gets quickly adopted by content sites.

Moderators: pepelsbey | dstorey | mcx | operadev | chrismills | shwetankdixit | brucelawson | iheni | andreasbovens | zibin | mollydotcom