<?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=6&amp;t=166" />

<title>developers.smarttv-alliance.org</title>
<subtitle>Developers forum</subtitle>
<link href="https://developers.smarttv-alliance.org/forum/index.php" />
<updated>2014-07-10T01:25:02-07:00</updated>

<author><name><![CDATA[developers.smarttv-alliance.org]]></name></author>
<id>https://developers.smarttv-alliance.org/forum/feed.php?f=6&amp;t=166</id>
<entry>
<author><name><![CDATA[arainziliel_1]]></name></author>
<updated>2014-07-10T01:25:02-07:00</updated>
<published>2014-07-10T01:25:02-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=166&amp;p=281#p281</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=166&amp;p=281#p281"/>
<title type="html"><![CDATA[Youtube video don't stop]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=166&amp;p=281#p281"><![CDATA[
Implementig VK_STOP case:<br /><br />case VK_STOP:<br />   player.stopVideo();<br />   break;<br /><br />Doesn't work neither. Both cases, Pause and Stop video, have not effect.<br /><br />I have new info. Apparently, when pause or stop video, the player return state -1.<br /><br />is(status == -1) alert(\"Video has not started\");<br /><br />But I wait tofunction onPlayerReady(evt) execution. What I'm doing wrong?<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=6640">arainziliel_1</a> — Thu Jul 10, 2014 1:25 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Support_STA]]></name></author>
<updated>2014-07-10T00:31:09-07:00</updated>
<published>2014-07-10T00:31:09-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=166&amp;p=280#p280</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=166&amp;p=280#p280"/>
<title type="html"><![CDATA[Youtube video don't stop]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=166&amp;p=280#p280"><![CDATA[
Hi,<br /><br />Could you make it clearly? Did you implement VK_STOP case in your keydown handle function?<br />In your above code, I don't see VK_STOP case in your code.<br />Hope <a href="https://developers.google.com/youtube/js_api_reference#Playback_controls" class="postlink">this document</a> helpful.<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> — Thu Jul 10, 2014 12:31 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[arainziliel_1]]></name></author>
<updated>2014-07-09T04:43:59-07:00</updated>
<published>2014-07-09T04:43:59-07:00</published>
<id>https://developers.smarttv-alliance.org/forum/viewtopic.php?t=166&amp;p=279#p279</id>
<link href="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=166&amp;p=279#p279"/>
<title type="html"><![CDATA[Youtube video don't stop]]></title>

<content type="html" xml:base="https://developers.smarttv-alliance.org/forum/viewtopic.php?t=166&amp;p=279#p279"><![CDATA[
I'm doing an application that plays youtube videos.<br /><br />It works fine but key event don't.<br /><br />I have a js function that handle remote control key events:<br /><br />Main.keyDown = function()<br />{<br /> var keyCode = event.keyCode;<br /><br /> switch(keyCode)<br /> {<br /> case VK_PAUSE:<br />  player.pauseVideo();<br />  break;<br /> case VK_PLAY:<br />  player.playVideo();<br />  break;<br /> default:<br />  break;<br /> }<br />}<br /><br />With onkeydown in html:<br /><br /><body onload=\"Main.onLoad();\" onkeydown=\"Main.keyDown();\"></body><br /><br />Twice are handled but calling player.stopVideo has not effect (player.playVideo has).<br /><br />Please, help.<br />Thanks<p>Statistics: Posted by <a href="https://developers.smarttv-alliance.org/forum/memberlist.php?mode=viewprofile&amp;u=6640">arainziliel_1</a> — Wed Jul 09, 2014 4:43 am</p><hr />
]]></content>
</entry>
</feed>