HTML5 IMA running on Samsung Tizen CE devices

936 views
Skip to first unread message

Dirk Rudolf

unread,
Jul 4, 2016, 9:16:48 AM7/4/16
to Interactive Media Ads SDK
Hi,

we have integrated HTML5 IMA SDK in our app running on Samsung Orsay devices (Orsay is the platform Samsug used from 2010 to 2014) via the custom playback option. Although this is not officially supported it works pretty well via an HTML5 adapter we wrote. As it seems the HTML5 IMA SDK uses custom playback on Samsung Orsay devices as default and does not try to create an iframe which would not work because the app is running via the file system.

As it seems on Samsung Tizen CE devices (Tizen is the platform Samsung uses since 2015) the HTML5 IMA SDK is not using the custom playback option and tries to create an iframe which is failing because of the reasons stated above. Is it possible to enable the custom playback option for Samsung Tizen CE devices as well as it seems it is for Samsung Orsay devices?

We read that custom playback is enabled via user agent. Our Samsung Tizen TV has the following user agent:
Mozilla/5.0 (Linux; Tizen 2.3) AppleWebKit/538.1 (KHTML, like Gecko)Version/2.3 TV Safari/538.

Please consider enabling custom playback for Samsung Tizen CE devices because iframes with different protocols are prohibited by the browser engine.

Thanks for the support. 

Best regards,

Dirk Rudolf

Binny Patel (IMA SDK Team)

unread,
Jul 6, 2016, 5:34:43 PM7/6/16
to Interactive Media Ads SDK
Hi there,

Thanks for getting in touch. Which Android version are the Samsung devices on? Custom playback has been disabled on Android 4.0+ devices. If you see mixed content issue, make sure your resources are served via HTTPS.

Thanks,
Binny Patel
IMA SDK Team

Dirk Rudolf

unread,
Jul 7, 2016, 5:12:51 AM7/7/16
to Interactive Media Ads SDK
Hi,

Samsung CE devices like TVs and BluRay players dont use Android. The platform from 2010 till 2014 is called Orsay, the platform from 2015 is called Tizen. Both platforms are Linux based, apps are coded in HTML/CSS and JavaScript.

Iframes are not working because the app is served locally via the file system on these devices. So we need custom playback to be enforced on these devices to get the IMA SDK working there. As it seems this is already the case for Orsay devices but not for Tizen. So we would like you to enable custom playback for Samsung Tizen CE devices like TVs and BluRay players too.


Thanks for the support.

Best regards,

Dirk Rudolf

Binny Patel (IMA SDK Team)

unread,
Jul 7, 2016, 9:58:47 AM7/7/16
to Interactive Media Ads SDK
Hi Dirk,

We understand your concerns. I will share your recommendation with the rest of the team.

Thanks,
Binny Patel
IMA SDK Team

Dirk Rudolf

unread,
Aug 4, 2016, 10:31:18 AM8/4/16
to Interactive Media Ads SDK
Hi,

is there any feedback from the IMA team regarding enabling custom playback for Samsung Tizen CE devices yet?

The IMA is currently still trying to open an iframe which is not working cause the HTML/CSS app on Samsung Tizen CE devices is running on the file system and has therefor protcol file://.

Please enable custom playback for this kind of devices or perhaps for every case when protocol is file://.


Thanks for the support.

Best regards,

Dirk Rudolf

--

Binny Patel (IMA SDK Team)

unread,
Aug 4, 2016, 4:12:59 PM8/4/16
to Interactive Media Ads SDK
Hi Dirk,

Our team is looking into this issue. Can you provide me your user agents?

Thanks,
Binny Patel
IMA SDK Team

Dirk Rudolf

unread,
Aug 7, 2016, 12:43:31 PM8/7/16
to Interactive Media Ads SDK
HI Binny,


Our Samsung Tizen TV has the following user agent:

Mozilla/5.0 (Linux; Tizen 2.3) AppleWebKit/538.1 (KHTML, like Gecko)Version/2.3 TV Safari/538.

Perhaps it would be the best to check for "Tizen" and "TV" to target all Samsung Tizen TVs.

Bets regards,

Dirk Rudolf

Binny Patel (IMA SDK Team)

unread,
Aug 8, 2016, 10:15:41 AM8/8/16
to Interactive Media Ads SDK
Hi Dirk,

Thanks for the user agent. I have shared that with the rest of my team. We will let you know once we have further updates.

Thanks,
Binny Patel
IMA SDK Team

Margaret Kho

unread,
Nov 15, 2016, 5:18:38 AM11/15/16
to Interactive Media Ads SDK, ima-sdk-ad...@google.com
Hi Binny

Are there any updates on the IMA SDK for  the Samsung Tizen TV app.

Margaret

Chris Feldman (IMA SDK Team)

unread,
Nov 15, 2016, 9:59:15 AM11/15/16
to Interactive Media Ads SDK, ima-sdk-ad...@google.com
Hi Margaret,

There is currently nothing new to report, but we will let you know once we have further updates.

Thank you for reaching out to IMA Support.

Regards,
Chris Feldman
IMA SDK Team

Nikhil Khatter

unread,
May 18, 2017, 1:53:30 AM5/18/17
to Interactive Media Ads SDK, ima-sdk-ad...@google.com
Is there any support for google IMA on Samsung Tizen TV devices as well?

Because i am facing the issue of undefined' is not an object (evaluating 'adDisplayContainer.initialize')  while trying to play sample apps given.

thanks
Nikhil

Mahjuj Jasim Sourav

unread,
Jun 22, 2018, 10:20:01 AM6/22/18
to Interactive Media Ads SDK
Any update on this?


On Monday, July 4, 2016 at 9:16:48 AM UTC-4, Dirk Rudolf wrote:

ima-sdk-adv...@google.com

unread,
Jun 22, 2018, 3:28:55 PM6/22/18
to ima...@googlegroups.com
Hi there,

Are you looking for an update on support by IMA  SDK for Samsung Tizen TV devices? If yes, then we don't have any new update to share at this moment and we suggest that you keep an eye out on our blogpost for new updates.

Regards,
Deepika Uragayala
IMA SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
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.

Miguel J

unread,
Nov 29, 2018, 10:58:54 AM11/29/18
to Interactive Media Ads SDK
Hi,

Any updates on this? When do you plan to support Tizen TVs?

BR,
Miguel

ima-sdk-adv...@google.com

unread,
Nov 29, 2018, 2:57:53 PM11/29/18
to ima...@googlegroups.com
Hi Miguel,

We don't have any updates from the team and we don't have any ETA on when this will be made available. We would suggest that you monitor our blogpost for all updates.

Regards,
Deepika Uragayala
IMA SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

in...@tvgam.es

unread,
Mar 4, 2019, 7:36:17 AM3/4/19
to Interactive Media Ads SDK
Hello,

Is there any chance you will modify the IMA SDK and support Tizen TVs? This debate takes almost 3 years so far... The solution of the problem seems to be easy. We have worked on that - see our proposall.

During the integration of IMA HTML5 SDK on Samsung Tizen TVs we found following issue:

  1. Apps on Samsung Tizen are usually executed locally.
  2. SDK uses as transfer protocol for downloading video ads the protocol apps is launched from, which is in case of locally executed apps "file://".
  3. Note that this applies only to video ads (e.g. MP4) files, while the complete VAST communication is handled correctly with use of "http://" or "https:// " protocol.
  4. The SDK knows about that behavior for some platforms – it calls it "browserless" mode. There is a function for checking that, but it only checks if SDK runs on Apple TV, while there should be also check for Tizen TV:

Below is current implementation and suggested changes to IMA HTML5 SDK:

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;
};


Thanks a lot 

ima-sdk-fo...@google.com

unread,
Mar 4, 2019, 1:20:32 PM3/4/19
to ima...@googlegroups.com
Hello there,

We understand your concern. Thanks for sharing this with us. I will share this with the rest of the team and will provide you an update if I have any new information from the team.

Regards,
Deepika Uragayala
IMA SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

Victor Nascimento

unread,
Oct 31, 2019, 12:28:18 PM10/31/19
to Interactive Media Ads SDK
Hi!
Are you having any problems with google IMA SDK regarding ad loading times? I've seen too many mp4 videos taking ages to load on 2018 + 2019 models, while the IMA SDK works fine on 2015-2017 devices.

IMA SDK

unread,
Oct 31, 2019, 5:51:46 PM10/31/19
to vic...@twcapps.com, ima...@googlegroups.com
Hi Victor,

Can you provide more details on the issue you're facing and the IMA SDK platform you are using?

Regards,
Arnaud Casame
IMA SDK Team


ref:_00D1U1174p._5001UKPBxi:ref

Victor Nascimento

unread,
Oct 31, 2019, 6:16:13 PM10/31/19
to IMA SDK, ima...@googlegroups.com
Hi Arnaud,

Currently we are targeting Samsung Tizen 2.3 to 5.0 (2015 to 2019 devices). For the latest device groups (2018+) we noticed that some creatives will not load in time. Increasing the load timeout value makes it possible to load the video, but the overall user experience is very poor, as some videos take 12-20 seconds to play.


Further investigation shows that the creatives that fail to load have the "mp42" brand. Serving the file locally and logging requests showed that the devices are performing a Ton of requests before playing the content. Using ffmpeg to change the moov brand to mp41 and performing the same test lead to very positive results (normal behavior as seen in < 2017 devices).

The creatives are being served (and reencoded) by Google - pubads server - which is very strange that it will not work properly as IMO we can assume that Google is aiming to serve the most compatible content.

At the moment I'm even considering writing an abstraction layer to the native Tizen player compatible with the HTML5 video element API and pass that to IMA SDK just because the Video element created to play a simple mp4 is not working properly for 2018 and 2019 Tizen models.

Best,
Victor N
Lead Frontend Engineer at TWCapps


From: IMA SDK <imasdkfor...@gmail.com>
Sent: Thursday, October 31, 2019 10:51:40 PM
To: Victor Nascimento <vic...@twcapps.com>
Cc: ima...@googlegroups.com <ima...@googlegroups.com>
Subject: RE: HTML5 IMA running on Samsung Tizen CE devices
 

IMA SDK

unread,
Nov 1, 2019, 3:58:28 PM11/1/19
to vic...@twcapps.com, ima...@googlegroups.com
Hi Victor,

Thank you for providing additional details with regards to the behavior. Were you able to reproduce it on Android TV devices other than Tizen? Did you try reproducing the behavior using our Android sample apps?


Regards,
Arnaud Casame
IMA SDK Team


ref:_00D1U1174p._5001UKPBxi:ref

Victor Nascimento

unread,
Nov 1, 2019, 4:23:39 PM11/1/19
to IMA SDK, ima...@googlegroups.com
No, it's only seen on Samsung Tizen 2018 and 2019 devices, running Tizen 4.0 and 5.0 respectively. From our tests it runs fine on Android TV, LG webos, Tizen < 2017 and even Samsung Orsay 2014, no issues.

From: IMA SDK <imasdkfor...@gmail.com>
Sent: Friday, November 1, 2019 8:58:22 PM
Subject: Re: HTML5 IMA running on Samsung Tizen CE devices
 

IMA SDK

unread,
Nov 4, 2019, 2:16:41 PM11/4/19
to vic...@twcapps.com, ima...@googlegroups.com
Hi Victor,

I would expect the application to run as expected on all the Tizen devices. Were you able to reproduce the issue running our
HTML5 sample? If yes, can you provide a video recording and the steps to reproduce the behavior?


Regards,
Arnaud Casame
IMA SDK Team


ref:_00D1U1174p._5001UKPBxi:ref
Reply all
Reply to author
Forward
0 new messages