How to deploy AIR files to Samsung TV with SmartTV
Date : March 29 2020, 07:55 AM
To fix the issue you can do I figured out that you have to do following steps in order to get your AIR app running: Create your AIR project with air version 2.6 Compile and pack your AIR applications as an .airi file Unzip the .airi file Add a config.xml with your desired configuration to the unzipped folders <flashplayer>y</flashplayer>
<apptype>13</apptype>
|
Youtube api and Samsung SmartTV App resolutions
Date : March 29 2020, 07:55 AM
this one helps. Thx all for answering, in the end I used different approach which showed like best solution. I used 720p resolution, and youtube cue video functionality. Basically i cued video, and on "videoCued" event i called "playVideo" method.
|
How to play video on Samsung SmartTV App
Date : March 29 2020, 07:55 AM
I hope this helps you . I usually proceed by creating the apps with the basic project (scene) framework 2.0 (using SDK 5.0), And I can access the sf variable anywhere in my scene. And my code to play a HLS Stream is as follows: sf.service.VideoPlayer.setKeyHandler(sf.key.RETURN,function(){
sf.service.VideoPlayer.stop();
});
sf.service.VideoPlayer.play({
url: "http://example.com/app_name/stream_name/playlist.m3u8",
fullScreen: true // Sets Player to partial mode
});
|
Samsung SmartTV get current time
Date : March 29 2020, 07:55 AM
I wish this help you I had the same problem. new Date() on Samsung Smart TVs doesn't get the time according to the current setting, but instead gets the underlying system time. It always returns a UTC timestamp, too. Fortunately, there's an API function, GetEpochTime(), that allows you to (sort of) fix it. (function (OldDate) {
// Get a reference to Samsung's TIME API
var time = document.createElement('object');
time.setAttribute('classid', 'clsid:SAMSUNG-INFOLINK-TIME');
document.body.appendChild(time);
// Replace the existing Date() constructor
window.Date = function (a, b, c, d, e, f, g) {
switch (arguments.length) {
case 0:
return new OldDate(time.GetEpochTime() * 1000);
case 1: return new OldDate(a);
case 2: return new OldDate(a, b);
case 3: return new OldDate(a, b, c);
case 4: return new OldDate(a, b, c, d);
case 5: return new OldDate(a, b, c, d, e);
case 6: return new OldDate(a, b, c, d, e, f);
case 7: return new OldDate(a, b, c, d, e, f, g);
}
};
// Copy static function properties
Date.now = function () { return time.GetEpochTime() * 1000; };
Date.UTC = OldDate.UTC;
Date.parse = OldDate.parse;
})(Date);
|
Samsung SmartTV emulator from eclipse
Date : March 29 2020, 07:55 AM
it should still fix some issue FYI, no emulator available on mac version now. Samsung claims that they will support soon. At this stage, only window machine supports emulator.
|