Bug 34420 - [Gtk] can't play ref mov file containing a redirect to another domain
Summary: [Gtk] can't play ref mov file containing a redirect to another domain
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://stream.qtv.apple.com/events/ja...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-01 05:15 PST by Philippe Normand
Modified: 2010-02-18 07:27 PST (History)
5 users (show)

See Also:


Attachments
Removed the origin check (3.38 KB, patch)
2010-02-10 01:17 PST, Philippe Normand
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2010-02-01 05:15:32 PST
Linked url doesn't play because it contains a single redirect (to a rtsp stream) but our player manages redirects only if multiple locations are available.
Comment 1 Philippe Normand 2010-02-01 05:26:04 PST
The redirect fails because of the security origin check...
Comment 2 Philippe Normand 2010-02-10 01:17:29 PST
Created attachment 48472 [details]
Removed the origin check
Comment 3 Eric Seidel (no email) 2010-02-17 15:44:49 PST
Removing security origin checks seems like a bad thing.
Comment 4 Philippe Normand 2010-02-18 06:56:15 PST
(In reply to comment #3)
> Removing security origin checks seems like a bad thing.

I found one example where the redirect is done to a totally different server.

http://stream.qtv.apple.com/events/jan/1001q3f8hhr/1001908r5ft6dswz_1_350_ref.mov

redirects to:

rtsp://a2047.v1412b.c1412.g.vq.akamaistream.net/5/2047/1412/1_h264_350/1a1a1ae555c531960166df4dbc3095c327960d7be756b71b49aa1576e344addb3ead1a497aaedf11/1001908r5ft6dswz_1_350.mov
Comment 5 Eric Carlson 2010-02-18 07:12:34 PST
(In reply to comment #3)
> Removing security origin checks seems like a bad thing.

I agree that removing the security origin check is a bad idea. On OSX and Windows we configure QuickTime to never follow cross-site redirects, which is why the media element fails to open the linked url in these ports.
Comment 6 Eric Carlson 2010-02-18 07:15:23 PST
(In reply to comment #4)
> (In reply to comment #3)
> > Removing security origin checks seems like a bad thing.
> 
> I found one example where the redirect is done to a totally different server.
> 
> http://stream.qtv.apple.com/events/jan/1001q3f8hhr/1001908r5ft6dswz_1_350_ref.mov
> 
> redirects to:
> 
> rtsp://a2047.v1412b.c1412.g.vq.akamaistream.net/5/2047/1412/1_h264_350/1a1a1ae555c531960166df4dbc3095c327960d7be756b71b49aa1576e344addb3ead1a497aaedf11/1001908r5ft6dswz_1_350.mov

1001908r5ft6dswz_1_350_ref.mov is a reference movie with a single data reference, appropriate for a connection speed of 38400 or higher:

'moov'  size: 239  offset: 0   - Movie

    'rmra'  size: 231  offset: 8   - Reference Movie Record

        'rmda'  size: 223  offset: 16   - Reference Movie Descriptor

            'rdrf'  size: 199  offset: 24   - Reference Movie Data Reference
              flags: 0
              dateref type: 'url '
              dataref size: 179
              dataref:  72747370 3A2F2F61 32303437 2E763134     rtsp://a2047.v14
                        3132622E 63313431 322E672E 76712E61     12b.c1412.g.vq.a
                        6B616D61 69737472 65616D2E 6E65742F     kamaistream.net/
                        352F3230 34372F31 3431322F 315F6832     5/2047/1412/1_h2
                        36345F33 35302F31 61316131 61653535     64_350/1a1a1ae55
                        35633533 31393630 31363664 66346462     5c531960166df4db
                        63333039 35633332 37393630 64376265     c3095c327960d7be
                        37353662 37316234 39616131 35373665     756b71b49aa1576e
                        33343461 64646233 65616431 61343937     344addb3ead1a497
                        61616564 6631312F 31303031 39303872     aaedf11/1001908r
                        35667436 6473777A 5F315F33 35302E6D     5ft6dswz_1_350.m
                        6F7600                                  ov.


            'rmdr'  size: 16  offset: 223   - Reference Movie Data Rate
              flags: 0
              data rate: 38400
Comment 7 Philippe Normand 2010-02-18 07:26:56 PST
Oh well closing then. Sorry for the noise :(