Languages

Menu
Sites
Language
[TV] Error when running a tizen based samsung smart tv project

Hello,

I recently installed the Tizen based smart tv Sdk (1.2 version), and I started testing it by creating a new "Tizen Web Project", then I created a new Tizen tv emulator using the Emulator manager, but when I tried to run my application, I got this warning message:

 

 

What does this mean? how could I resolve it?

P.S: In deed, I have this code into my main.js file:

// add eventListener for keydown
    document.addEventListener('keydown', function(e) {
        //alert("test");
    	//alert(e.keyCode);
    	switch(e.keyCode){
    	
    	case 37: //LEFT arrow
    		alert("aaaa");
    		break;
    	case 38: //UP arrow
    		break;
    	case 39: //RIGHT arrow
    		break;
    	case 40: //DOWN arrow
    		break;
    	case 13: //OK button
    		break;
    	case 10009: //RETURN button
    		break;
    	default:
    		alert("code: "+e.keyCode);
    		console.log("Key code : " + e.keyCode);
    		break;
    	}
    });

I got the (aaaa) alert, but when I click on other button on the remote control, nothing happen... I mean this instruction didn't work

alert("code: "+e.keyCode);
Edited by: John Ixion on 02 Apr, 2015

Responses

3 Replies
karray gargouri

Hello,

is there any relation between the remote control buttons and the error message that it is shown before running my app?

karray gargouri

Hi,

Does anybody tested the code above? I tested it many times, I got only the (aaaa) alert !

Any answer?

thx

Vikram

Hello,

I would suggest you to visit this link for Tizen TV.

http://samsungdforum.com/SamsungDForum/ForumDashBoard/cd10341507013d28