From 1f9d11d007165bd70abd96d1ff2223c0db183345 Mon Sep 17 00:00:00 2001 From: Simone Manganelli Date: Thu, 17 Sep 2009 17:03:46 -0700 Subject: [PATCH] H.264 loading of embedded videos now works again; re-enabled video tag support for the correct WebKit versions now that it's fixed in nightlies again; added a preference key to disable video tag support entirely for testing purposes and in case the WebKit version number isn't granular enough (cherry picked from commit 125ec1aeb84a938a346f9c439d5d3534ada03cb2) --- Plugin/Plugin.m | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/Plugin/Plugin.m b/Plugin/Plugin.m index 42e46385..6ce85b1f 100755 --- a/Plugin/Plugin.m +++ b/Plugin/Plugin.m @@ -54,6 +54,7 @@ of this software and associated documentation files (the "Software"), to deal static NSString *sPluginEnabled = @"pluginEnabled"; static NSString *sApplicationWhitelist = @"applicationWhitelist"; static NSString *sDrawGearImageOnlyOnMouseOverHiddenPref = @"drawGearImageOnlyOnMouseOver"; +static NSString *sDisableVideoElement = @"disableVideoElement"; // Info.plist key for app developers static NSString *sCTFOptOutKey = @"ClickToFlashOptOut"; @@ -1300,6 +1301,9 @@ - (BOOL) _useH264Version - (BOOL)_isVideoElementAvailable { + if ( [[CTFUserDefaultsController standardUserDefaults] boolForKey:sDisableVideoElement] ) + return NO; + /*