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

Forums » Dev.Opera » Archived Article Discussions

This topic has been closed. No new entries allowed.

Reason: You can now post comments on articles on Dev Opera

Forum rules and guidelines

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

7. November 2007, 18:29:15

operadev

Posts: 3

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 )

7. November 2007, 19:11:24

GreyWyvern

Here there be puffins...

Posts: 309

1) 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.
Virtual Keyboard User Javascript :: My Opera widgets - Useful tools and fun classic console games! :: star starPlanetWerks 2star star - A planetarium on your desktop! :: The Puffin Archive: Opera's unofficial mascot? wink :: Opera rendering bug list
Sniffles is my hero...

7. November 2007, 19:50:23 (edited)

Opera Software

hzr

Posts: 204

Thankfully it works in Wine.

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

<blockquote>This build of Opera also supports video in SVG, and the 3d <canvas></blockquote>
Any chance you'll put up <a href="http://my.opera.com/WebApplications/blog/show.dml/261474">p01's 3D snake</a> then wink
Opera Dragonfly developer / @hzr / Popup statusbar extension / CSSFrag extension

7. November 2007, 20:18:44

JeroenH

Posts: 434

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.

7. November 2007, 20:34:09

Opera Software

hzr

Posts: 204

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

[1] http://www.svgopen.org/papers/abstract3/
Opera Dragonfly developer / @hzr / Popup statusbar extension / CSSFrag extension

8. November 2007, 02:38:42

IceArdor

Posts: 328

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" /> 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.
Whoever said nothing could exceed the speed of light obviously didn't know about Opera

8. November 2007, 08:30:28

moo

Posts: 965

Great 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.
~~ Joel Nothman ~~
Using the latest beta in SuSE Linux or maybe XP.

8. November 2007, 08:38:27

lockoom

Posts: 836

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".

8. November 2007, 10:56:42

mattie

Doodiedoodiedooo

Posts: 385

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

8. November 2007, 12:54:00

JeroenH

Posts: 434

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.

8. November 2007, 15:02:33 (edited)

grafio

Posts: 166

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

8. November 2007, 15:46:55

johnoyler

Posts: 36

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.

8. November 2007, 16:03:12

Opera Software

hzr

Posts: 204

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.
Opera Dragonfly developer / @hzr / Popup statusbar extension / CSSFrag extension

8. November 2007, 16:26:57

zarlino

Posts: 2

Why 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?

9. November 2007, 01:17:21

xErath

javascript guru

Posts: 6587

zarlino, 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
For a collection of user scripts visit
http://my.opera.com/xErath/blog/

9. November 2007, 02:53:52

IceArdor

Posts: 328

I hope that music becomes a first-class citizen some time soon.
Whoever said nothing could exceed the speed of light obviously didn't know about Opera

9. November 2007, 11:09:05 (edited)

grafio

Posts: 166

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

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

(thanks JeroenH for finding the Opera demos)

9. November 2007, 12:37:29

JeroenH

Posts: 434

Nice 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] }

9. November 2007, 13:03:34

grafio

Posts: 166

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

9. November 2007, 21:19:59

Opera Software

p01

Posts: 65

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

12. November 2007, 01:44:21

Tangent128

Posts: 31

Wow. 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...

12. November 2007, 13:14:23

zarlino

Posts: 2

@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.

30. December 2007, 15:41:58

duncanbrown

Posts: 11

I 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.

5. February 2008, 19:17:40

smil4me

Posts: 1

Good 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

7. February 2008, 01:26:07

mathiastck

Posts: 3

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.

3. July 2008, 06:30:37

Jzarecta

Posts: 207

I wonder if the Linux/Unix release is already out? Where can I get it?
The JZA
My twitter: http://www.twitter.com/jza

3. August 2008, 12:30:27 (edited)

roytam1

Posts: 3

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

4. August 2008, 10:35:27

ashyanbhog

Posts: 1

I 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.

27. January 2010, 01:33:39

pcdemon82

Posts: 6

This Opera build don't work on Win9x systems... sad

No Html5 browsers on those systems then?

27. January 2010, 09:11:29

Opera Software

chrismills

Posts: 378

Originally posted by pcdemon82:

This Opera build don't work on Win9x systems...



This is interesting - I was under the impression that we were continuing to support Win 9x. Have you tried the new <video> builds available at http://labs.opera.com/news/2009/12/22/?
Chris Mills
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com

Forums » Dev.Opera » Archived Article Discussions