--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.
During the integration of IMA HTML5 SDK on Samsung Tizen TVs we found following issue:
Current implementation:
module$contents$ima$common$HostUtils_HostUtils.getProtocol_ = function() {
return ima.common.PlatformUtils.isBrowserless() ? "https" : window.location.protocol;
};
ima.common.PlatformUtils.isBrowserless = function() {
return ima.common.PlatformUtils.isAppleTV();
};
ima.common.PlatformUtils.isAppleTV = function() {
var userAgentString = goog.userAgent.getUserAgentString();
return goog.string.caseInsensitiveContains(userAgentString, "AppleTV") || goog.string.caseInsensitiveContains(userAgentString, "tvOS");
};Suggested change:
ima.common.PlatformUtils.isBrowserless = function() {
return (ima.common.PlatformUtils.isAppleTV() || ima.common.PlatformUtils.isSamsungTizenTV());
};
ima.common.PlatformUtils.isSamsungTizenTV = function() {
var userAgentString = goog.userAgent.getUserAgentString();
return (goog.string.caseInsensitiveContains(userAgentString, "SMART-TV") && goog.string.caseInsensitiveContains(userAgentString, "Tizen"));
}; Alternatively you can use method isSamsungSmartTv, which is already part of SDK:
ima.common.PlatformUtils.isBrowserless = function() {
return (ima.common.PlatformUtils.isAppleTV() || ima.common.PlatformUtils.isSamsungSmartTv());
};
ima.common.PlatformUtils.isSamsungSmartTv = function() {
var userAgent = goog.userAgent.getUserAgentString();
return userAgent ? goog.string.caseInsensitiveContains(userAgent, "SMART-TV") || goog.string.caseInsensitiveContains(userAgent, "SmartTV") : !1;
};--