Changeset 54056 in webkit


Ignore:
Timestamp:
Jan 29, 2010 5:29:04 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-29 Philippe Normand <pnormand@igalia.com>

Reviewed by Gustavo Noronha Silva.

[Gtk] Apple trailers don't play anymore
https://bugs.webkit.org/show_bug.cgi?id=34316

Fake QuickTime when accessing movie trailers.

  • platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp: (WebCore::mediaPlayerPrivateSourceChangedCallback):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r54053 r54056  
     12010-01-29  Philippe Normand  <pnormand@igalia.com>
     2
     3        Reviewed by Gustavo Noronha Silva.
     4
     5        [Gtk] Apple trailers don't play anymore
     6        https://bugs.webkit.org/show_bug.cgi?id=34316
     7
     8        Fake QuickTime when accessing movie trailers.
     9
     10        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
     11        (WebCore::mediaPlayerPrivateSourceChangedCallback):
     12
    1132010-01-29  Pavel Feldman  <pfeldman@chromium.org>
    214
  • trunk/WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp

    r54026 r54056  
    151151        SoupURI* uri = soup_uri_new(location);
    152152        g_free(location);
     153
     154        // Let Apple web servers know we want to access their nice movie trailers.
     155        if (g_str_equal(uri->host, "movies.apple.com"))
     156            g_object_set(element, "user-agent", "Quicktime/7.2.0", NULL);
     157
    153158        char* cookies = soup_cookie_jar_get_cookies(cookieJar, uri, FALSE);
    154159        soup_uri_free(uri);
Note: See TracChangeset for help on using the changeset viewer.