mcServer.updatePlaybackState("PLAY");
mcServerInfo = mcClient.getLatestServerInfo();
watcherId = mcServer.addCommandListener(commandReceiveListener);
- exampleCustomCommandData = {
- myFilter: "rock"
- };
+ exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB);
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
commandReceiveListener, exampleCustomCommandData;
t.step(function () {
- onsuccessCB = t.step_func(function (data){
+ onsuccessCB = t.step_func(function (data, code){
assert_type(data, "object", "data isn't an object");
+ assert_type(code, "number", "code isn't a number");
mcServer.removeCommandListener(watcherId);
t.done();
});
mcServer.updatePlaybackState("PLAY");
mcServerInfo = mcClient.getLatestServerInfo();
watcherId = mcServer.addCommandListener(commandReceiveListener);
- exampleCustomCommandData = {
- myFilter: "rock"
- };
+ exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB);
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
mcServer.updatePlaybackState("PLAY");
mcServerInfo = mcClient.getLatestServerInfo();
watcherId = mcServer.addCommandListener(commandReceiveListener);
- exampleCustomCommandData = {
- myFilter: "rock"
- };
+ exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
retValue = mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB);
});
assert_unreached("sendCommand() success callback invoked");
});
- conversionTable = getTypeConversionExceptions("object", false);
+ conversionTable = getTypeConversionExceptions("object", true);
for (i = 0; i < conversionTable.length; i++) {
data = conversionTable[i][0];
</script>
</body>
-</html>
\ No newline at end of file
+</html>
mcClient = tizen.mediacontroller.getClient();
mcServer.updatePlaybackState("PLAY");
mcServerInfo = mcClient.getLatestServerInfo();
- exampleCustomCommandData = {
- myFilter: "rock"
- };
+ exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
successCallback = t.step_func(function () {
assert_unreached("sendCommand() success callback invoked");
</script>
</body>
-</html>
\ No newline at end of file
+</html>
mcServer.updatePlaybackState("PLAY");
mcServerInfo = mcClient.getLatestServerInfo();
- exampleCustomCommandData = {
- myFilter: "rock"
- };
+ exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
incorrectCallback = {
onerror: t.step_func(function () {
</script>
</body>
-</html>
\ No newline at end of file
+</html>
tizen.mediacontroller.createServer();
mcClient = tizen.mediacontroller.getClient();
mcServerInfo = mcClient.getLatestServerInfo();
- exampleCustomCommandData = {
- myFilter: "rock"
- };
+ exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
conversionTable = getTypeConversionExceptions("functionObject", false);
for (i = 0; i < conversionTable.length; i++) {
</script>
</body>
-</html>
\ No newline at end of file
+</html>
mcServer.updatePlaybackState("PLAY");
mcServerInfo = mcClient.getLatestServerInfo();
- exampleCustomCommandData = {
- myFilter: "rock"
- };
+ exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
incorrectCallback = {
onsuccess: t.step_func(function () {
</script>
</body>
-</html>
\ No newline at end of file
+</html>
mcClient = tizen.mediacontroller.getClient();
mcServerInfo = mcClient.getLatestServerInfo();
mcServer.addCommandListener(commandReceiveListener);
- exampleCustomCommandData = {
- myFilter: "rock"
- };
+ exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
retValue = mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB, onerrorCB);
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
mcServer.updatePlaybackState("PLAY");
mcServerInfo = mcClient.getLatestServerInfo();
watcherId = mcServer.addCommandListener(commandReceiveListener);
- exampleCustomCommandData = {
- myFilter: "rock"
- };
+ exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB);
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
mcServer.updatePlaybackState("PLAY");
mcServerInfo = mcClient.getLatestServerInfo();
watcherId = mcServer.addCommandListener(commandReceiveListener);
- exampleCustomCommandData = {
- myFilter: "rock"
- };
+ exampleCustomCommandData = new tizen.Bundle({myFilter: "rock"});
mcServerInfo.sendCommand("myPlaylistFilter", exampleCustomCommandData, onsuccessCB);
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>