Bug 31782 - HTML5 audio tag request happens twice
Summary: HTML5 audio tag request happens twice
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-22 00:28 PST by kain
Modified: 2023-10-15 06:50 PDT (History)
5 users (show)

See Also:


Attachments
Packet Dump (4.69 KB, text/plain)
2010-02-14 20:20 PST, Nick Young
no flags Details
Packet Dump - Round 2 (13.28 KB, text/plain)
2010-02-14 20:27 PST, Nick Young
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description kain 2009-11-22 00:28:32 PST
I was trying to nail down a problem I'm having with Safari 4 on Snow Leopard, when using the <audio> tag a request is issued to the src server, but it does happen twice.

This problem got my attention because we pay per hit on the remote storage where we keep files.
Comment 1 Eric Carlson 2009-11-25 11:20:57 PST
A test case is needed here - does this happen with every <audio> element or does it depend on the content type; does it happen with <video> as well, etc.
Comment 2 kain 2009-11-25 15:55:18 PST
(In reply to comment #1)
> A test case is needed here - does this happen with every <audio> element or
> does it depend on the content type; does it happen with <video> as well, etc.

hi Eric,
I'm on a tight schedule, will post back a test case and some other findings soon.
thanks for the attention.
Comment 3 kain 2009-12-02 11:45:28 PST
after conducting other tests the same behaviour can be observed even with the video tag.

steps to reproduce are simple: consult the log file of an http server and use the server address as src, upon page load webkit will call src twice, sometimes even three times.

it doesn't matter what media is being played.
Comment 4 Nick Young 2010-02-14 19:36:52 PST
Actually, I've observed this too.

The multiple requests are issued by the CoreMedia User Agent.
In my case - User-Agent: Apple Mac OS X v10.6.2 CoreMedia v1.0.0.10C540.
Each request has a different "Range" header, and each request is on a different (sequential, consecutive) port. Looks like parallel/progressive downloading to me :)

I have a packet dump here, will provide on request.
Comment 5 Eric Carlson 2010-02-14 20:15:59 PST
(In reply to comment #4)
> 
> I have a packet dump here, will provide on request.

That would be very helpful, thanks!
Comment 6 Nick Young 2010-02-14 20:20:56 PST
Created attachment 48739 [details]
Packet Dump

Generated with Wireshark.

Hopefully there isn't anything personally identifiable in the cookies, etc. If there is, keep it to yourself ;)
Comment 7 Nick Young 2010-02-14 20:27:07 PST
Created attachment 48740 [details]
Packet Dump - Round 2

Whoops. I was a little overzealous when filtering out those packets.
Here's the extended version ;)
Comment 8 Ahmad Saleem 2023-10-15 06:50:04 PDT
There are some stackoverflow post (but old) with mention of this issue but unable to find recent one.

Is this still applicable?