<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://developers.smarttv-alliance.org/forum/feed.php?f=7&amp;t=142" />

<title>developers.smarttv-alliance.org</title>
<subtitle>Developers forum</subtitle>
<link href="https://developers.smarttv-alliance.org/forum/index.php" />
<updated>2015-02-20T10:35:37-07:00</updated>

<author><name><![CDATA[developers.smarttv-alliance.org]]></name></author>
<id>https://developers.smarttv-alliance.org/forum/feed.php?f=7&amp;t=142</id>
<entry>
<author><name><![CDATA[dragan.obrenovic_1]]></name></author>
<updated>2015-02-20T10:35:37-07:00</updated>
<published>2015-02-20T10:35:37-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=407#p407</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=407#p407"/>
<title type="html"><![CDATA[Identifying  device and hls streaming]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=407#p407"><![CDATA[
Here is a code snippet that works on my LG Smart TV (32LB580V)<br /><br />Somewhere in your HTML code:<br /><object<br />   type=\"application/x-netcast-info\"<br />   id=\"deviceInfo\"<br />   width=\"0\"<br />   height=\"0\"<br />   style=\"float: left\"><br /></object><br /><br />In JavaScript&#058;<br />device = document.getElementById('deviceInfo');<br />deviceInfo = device.manufacturer + ' ' + device.modelName;<br />serialNo = device.serialNumber;<br />version = device.swVersion + ' (HW Ver: ' + device.hwVersion + ')';<br />mac = device.net_macAddress;<br />ip = device.net_ipAddress;<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=6656">dragan.obrenovic_1</a> — Fri Feb 20, 2015 10:35 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dsver_1]]></name></author>
<updated>2014-12-19T01:56:15-07:00</updated>
<published>2014-12-19T01:56:15-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=378#p378</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=378#p378"/>
<title type="html"><![CDATA[Identifying  device and hls streaming]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=378#p378"><![CDATA[
localStorage is definitely the best solution; I too store the device serial in localStorage and it works like charms on LG and on some other brand's device.<br />As for expiration date of localStorage, I read that it's \"forever\", we'll see about that :)<br />However, about your general question - regarding MAC or serial number of the device; how do you retrieve it? What's the value that you store in localStorage/cookie?<br />(As I read, WebOS doesn't have a support to read MAC nor any device identification)<br />I generate a 32-bit GUID and store that value, since I don't have any other solution :/<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=6222">dsver_1</a> — Fri Dec 19, 2014 1:56 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[blagojco.0712_1]]></name></author>
<updated>2014-06-28T02:07:30-07:00</updated>
<published>2014-06-28T02:07:30-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=257#p257</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=257#p257"/>
<title type="html"><![CDATA[Identifying  device and hls streaming]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=257#p257"><![CDATA[
Hi,<br />thanks for the answer. I solved with the local storage. Here is my example for someone else<br /><br />var userId = localStorage.getItem(\"userId\");<br /> <br /> if(userId === null)<br /> {<br />  localStorage.setItem(\"userId\", \"user_\" + new Date().getTime()); <br />  userId = localStorage.getItem(\"userId\");<br /> }<br /><br />Regards,<br />Blagojco<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=6666">blagojco.0712_1</a> — Sat Jun 28, 2014 2:07 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2014-06-22T23:38:52-07:00</updated>
<published>2014-06-22T23:38:52-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=247#p247</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=247#p247"/>
<title type="html"><![CDATA[Identifying  device and hls streaming]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=247#p247"><![CDATA[
Hi,<br /><br />I didn't try cookie before, so I'm not sure about that.<br />Did you try localStorage of HTML5? Just like below:<blockquote class="uncited"><div><br />if(typeof(Storage) !== \"undefined\") {<br />  //Do anything you want<br />  //var abc =localStorage.getItem(\"dataStored\");<br />  //localStorage.setItem(\"dataStored\", \"Test Data\")<br />} else { //Log something}<br /></div></blockquote>I have a quick try with localStorage and it worked on both TV models and emulator.<br />I didn't find any official document about expiring of localStorage, maybe you should keep a json object (contain expire property or something like that) to control expiring.<br /><br />Besides that, emulator can't replace all TV features, you can't depend on it much.<br /><br />Hope this help!<br /><br />Regards,<br />STA Support<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Sun Jun 22, 2014 11:38 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[blagojco.0712_1]]></name></author>
<updated>2014-06-21T07:12:43-07:00</updated>
<published>2014-06-21T07:12:43-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=246#p246</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=246#p246"/>
<title type="html"><![CDATA[Identifying  device and hls streaming]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=246#p246"><![CDATA[
Hi,<br />thanks for your answer. I tried with cookie and everything is ok when I try to reload the app, but when I close the app and restart again, the cookie not exist anymore. I set the cookie with jquery with expiries date for 10 years:<br /><br />$.cookie(\"userId\", 123456, {expiries:3650});<br /><br />I'm working with simulator.<br /><br />P.S. Running on real device is possible only when the app is ready for publishing?<br /><br />Regards,<br />Blagojco<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=6666">blagojco.0712_1</a> — Sat Jun 21, 2014 7:12 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2014-06-15T18:54:25-07:00</updated>
<published>2014-06-15T18:54:25-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=244#p244</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=244#p244"/>
<title type="html"><![CDATA[Identifying  device and hls streaming]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=244#p244"><![CDATA[
Hi,<br /><br />The current STA spec does not include a function to retrieve an unique device ID or the TV's MAC address.<br />Maybe you can do it by cookie or [/color]HTML5 Web Storage[color=#222222]. Did you try it?<br /><br />Regards,<br />STA Support<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=2056">Support_STA</a> — Sun Jun 15, 2014 6:54 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[blagojco.0712_1]]></name></author>
<updated>2014-06-14T02:48:12-07:00</updated>
<published>2014-06-14T02:48:12-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=241#p241</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=241#p241"/>
<title type="html"><![CDATA[Identifying  device and hls streaming]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=142&amp;p=241#p241"><![CDATA[
Hi,<br /><br />I'm working on SmartTv app for live streaming and I need to identify the device. As I read that is imposible to get mac address or serial number of the device. What is best solution for identifying the device? I was thinking of generating my own id, but I don't know hot to store that.<br /><br />Also I want to know what is best solution for hls and vod streaming? I'm using html <video> element, but its not working well. I'm trying on virtual machine.<br /><br />Thanks,<br />Blagojco<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=6666">blagojco.0712_1</a> — Sat Jun 14, 2014 2:48 am</p><hr />
]]></content>
</entry>
</feed>