These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:10 pm Advanced search

HTML5 and Web Kit identification

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

HTML5 and Web Kit identification

Postby tamparrc » Sun Jun 19, 2011 3:40 am

New to HTML5 and have a question that as of yet nobody (including "the google") has had an answer for. So here goes:

When <video> is used to embed, the server has to ID the web kit (mobile, chrome, ie, safari, etc) a given device is using in order to extract the proper format to match the given devices media player.

For example if I request to view an embedded video from my iPhone while using Mercury the server has to somehow know to deliver a device compatible (H.264) video format.

How is this done on the server side? Can anyone give me an example of the code fed from the device to the server that contains the web kit ID?
tamparrc
<h6>
 
Posts: 2
Joined: Sun Jun 19, 2011 3:29 am

Re: HTML5 and Web Kit identification

Postby zcorpan » Mon Jun 20, 2011 5:47 am

tamparrc wrote:When <video> is used to embed, the server has to ID the web kit (mobile, chrome, ie, safari, etc) a given device is using in order to extract the proper format to match the given devices media player.

No. That's not the right way to do it. The right way it to provide all your formats and let the client choose one it can play.
Code: Select all
<video controls>
<source src="foo.webm" type="video/webm">
<source src="foo.mp4" type="video/mp4">
</video>
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Re: HTML5 and Web Kit identification

Postby tamparrc » Mon Jun 20, 2011 8:27 pm

Okay, so where I'm wrong is in the heirarchy...the server delivers a menu of files and the device decides which it'd like to order? I had it backward then...

Is the server ever given the web kit information or is that device only?
tamparrc
<h6>
 
Posts: 2
Joined: Sun Jun 19, 2011 3:29 am

Re: HTML5 and Web Kit identification

Postby zcorpan » Tue Jun 21, 2011 12:56 pm

tamparrc wrote:Okay, so where I'm wrong is in the heirarchy...the server delivers a menu of files and the device decides which it'd like to order? I had it backward then...
Yeah.

tamparrc wrote:Is the server ever given the web kit information or is that device only?

I don't know what "web kit information" is. Are you referring to WebKit the rendering engine? Or something else?
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest