Commit b3f9ccec authored by eric@webkit.org's avatar eric@webkit.org

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):

git-svn-id: svn://svn.chromium.org/blink/trunk@54056 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 0f2e99b7
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):
2010-01-29 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Timothy Hatcher.
......@@ -150,6 +150,11 @@ void mediaPlayerPrivateSourceChangedCallback(GObject *object, GParamSpec *pspec,
SoupURI* uri = soup_uri_new(location);
g_free(location);
// Let Apple web servers know we want to access their nice movie trailers.
if (g_str_equal(uri->host, "movies.apple.com"))
g_object_set(element, "user-agent", "Quicktime/7.2.0", NULL);
char* cookies = soup_cookie_jar_get_cookies(cookieJar, uri, FALSE);
soup_uri_free(uri);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment