Commit c906bad1 authored by Felix Paul Kühne's avatar Felix Paul Kühne

mac: enable UI update timer for any Safari release

parent be6544ac
...@@ -316,11 +316,8 @@ NPError VlcPluginMac::get_root_layer(void *value) ...@@ -316,11 +316,8 @@ NPError VlcPluginMac::get_root_layer(void *value)
[(VLCPerInstanceStorage *)this->_perInstanceStorage browserRootLayer].cppPlugin = this; [(VLCPerInstanceStorage *)this->_perInstanceStorage browserRootLayer].cppPlugin = this;
const char *userAgent = NPN_UserAgent(this->getBrowser()); const char *userAgent = NPN_UserAgent(this->getBrowser());
if (strstr(userAgent, "Safari") && strstr(userAgent, "Version/5")) { if (strstr(userAgent, "Safari")) {
NSLog(@"Safari 5 detected, deploying UI update timer"); NSLog(@"Safari detected, deploying UI update timer");
[[(VLCPerInstanceStorage *)this->_perInstanceStorage browserRootLayer] performSelector:@selector(startUIUpdateTimer) withObject:nil afterDelay:1.];
} else if (strstr(userAgent, "Safari") && strstr(userAgent, "Version/9")) {
NSLog(@"Safari 9 detected, deploying UI update timer");
[[(VLCPerInstanceStorage *)this->_perInstanceStorage browserRootLayer] performSelector:@selector(startUIUpdateTimer) withObject:nil afterDelay:1.]; [[(VLCPerInstanceStorage *)this->_perInstanceStorage browserRootLayer] performSelector:@selector(startUIUpdateTimer) withObject:nil afterDelay:1.];
} else if (strstr(userAgent, "Firefox")) { } else if (strstr(userAgent, "Firefox")) {
NSLog(@"Firefox detected, deploying UI update timer"); NSLog(@"Firefox detected, deploying UI update timer");
......
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