Commit 5f3dac83 authored by Bastien Nocera's avatar Bastien Nocera

Bug 580973 – Unable to play videos in http://www.apple.com/trailers/paramount/startrek/hd/

2009-05-01  Bastien Nocera  <hadess@hadess.net>

	* browser-plugin/totemPlugin.cpp:
	* browser-plugin/totemPlugin.h: Add support for autohref,
	makes trailers on the Apple website work again
	(Closes: #580973)
parent 9d356777
2009-05-01 Bastien Nocera <hadess@hadess.net>
* browser-plugin/totemPlugin.cpp:
* browser-plugin/totemPlugin.h: Add support for autohref,
makes trailers on the Apple website work again
(Closes: #580973)
2009-04-29 Bastien Nocera <hadess@hadess.net> 2009-04-29 Bastien Nocera <hadess@hadess.net>
* src/backend/video-utils.c * src/backend/video-utils.c
......
...@@ -815,6 +815,8 @@ totemPlugin::ViewerReady () ...@@ -815,6 +815,8 @@ totemPlugin::ViewerReady ()
G_TYPE_STRING, mTarget ? mTarget : "", G_TYPE_STRING, mTarget ? mTarget : "",
G_TYPE_INVALID); G_TYPE_INVALID);
} }
if (mHref && mAutoHref)
ViewerButtonPressed (0, 0);
#endif /* TOTEM_NARROWSPACE_PLUGIN */ #endif /* TOTEM_NARROWSPACE_PLUGIN */
} }
...@@ -2025,16 +2027,20 @@ totemPlugin::Init (NPMIMEType mimetype, ...@@ -2025,16 +2027,20 @@ totemPlugin::Init (NPMIMEType mimetype,
#endif /* TOTEM_GMP_PLUGIN */ #endif /* TOTEM_GMP_PLUGIN */
#ifdef TOTEM_NARROWSPACE_PLUGIN #ifdef TOTEM_NARROWSPACE_PLUGIN
/* Target */ const char *href = (const char *) g_hash_table_lookup (args, "href");
if (href) {
SetHref (href);
}
/* Target, set it after SetHref() call, otherwise mTarget will be empty */
value = (const char *) g_hash_table_lookup (args, "target"); value = (const char *) g_hash_table_lookup (args, "target");
if (value) { if (value) {
mTarget = g_strdup (value); mTarget = g_strdup (value);
} }
const char *href = (const char *) g_hash_table_lookup (args, "href"); /* http://www.apple.com/quicktime/tutorials/embed2.html */
if (href) { mAutoHref = g_hash_table_lookup (args, "autohref") != NULL &&
SetHref (href); GetBooleanValue (args, "autohref", false);
}
/* http://developer.apple.com/documentation/QuickTime/QT6WhatsNew/Chap1/chapter_1_section_13.html */ /* http://developer.apple.com/documentation/QuickTime/QT6WhatsNew/Chap1/chapter_1_section_13.html */
const char *qtsrc = (const char *) g_hash_table_lookup (args, "qtsrc"); const char *qtsrc = (const char *) g_hash_table_lookup (args, "qtsrc");
......
...@@ -284,6 +284,7 @@ class totemPlugin { ...@@ -284,6 +284,7 @@ class totemPlugin {
char* mHref; char* mHref;
char* mHrefURI; char* mHrefURI;
char* mTarget; char* mTarget;
bool mAutoHref;
#endif #endif
#if 0 //defined(TOTEM_COMPLEX_PLUGIN) && defined(HAVE_NSTARRAY_H) #if 0 //defined(TOTEM_COMPLEX_PLUGIN) && defined(HAVE_NSTARRAY_H)
......
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