Code Monkey home page Code Monkey logo

cordova-plugin-toast's Introduction

Build Status

cordova-plugin-toast

Cordova plugin that provides TV Specific functionalities.

About this project

This plugin defines a global toast object, which provides an API for TV specific functionalities that is based on Cordova project.

Although the object provides the global scoped toast object, it is not available until after the deviceready event which is provided by Cordova.

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
    console.log(toast);
}

TOAST references

If you want more details, please refer belows.

  • Guide
  • Youtube
    • Youtube link for 2016 SDC tech session : Write Once and Run Everywhere with TOAST for Smart TV.
  • TOAST introduce video
    • TOAST video contains introduce for TOAST briefly. It would help you understand easily.

Project Structure

    ./
     |-cordova-test-runner/ ... TestRunner/TestSuite Cordova application
     |-docs/ .................. Documents which are including API Specification
     |-sample/ ................ Sample applications using TOAST API
     |-src/ ................... Platform dependent modules for the plugin TOAST
     |  |-browser/ ............ Plugin implementation for the platform `browser`
     |  |-sectv-orsay/ ........ Plugin implementation for the platform `sectv-orsay`
     |  |-sectv-tizen/ ........ Plugin implementation for the platform `sectv-tizen`
     |  `-tv-webos/ ........... Plugin implementation for the platform `tv-webos`
     |-tasks/ ................. custom grunt tasks to build the toast.js
     |-www/ ................... Platform independent modules for the plugin TOAST
     |-Gruntfile.js ........... Gruntfile to build the toast.js
     '-plugin.xml ............. Cordova Plugin configuration for TOAST

Associated Projects

  • cordova-sectv-orsay is an application library that allows for Cordova-based projects to be built for the Legacy Samsung Smart TV Platform.(A.K.A Orsay)
  • cordova-sectv-tizen is an application library that allows for Cordova-based projects to be built for the Samsung Tizen TV Platform.
  • cordova-tv-webos is an application library that allows for Cordova-based projects to be built for the LG WebOS TV Platform.
  • grunt-cordova-sectv is a grunt task to prepare and build package from a cordova project for sectv-orsay and sectv-tizen and tv-webos platforms.

Supported platform

  • browser
  • Legacy Samsung Smart TV (sectv-orsay)
  • Tizen Samsung Smart TV (sectv-tizen)
  • WebOS LG Smart TV (tv-webos)
Feature Name Browser Legacy Samsung Smart TV Tizen Samsung Smart TV WebOS LG Smart TV
20122013201420152016201420152016
toast.MediaYesYesYesYesYesYesYesYesYes
toast.MediaPluginNoYesYesYesYesYesYesYesYes
toast.drminfoYesYesYesYesYesYesNoNoNo
toast.applicationPartlyYesYesYesYesYesYesYesYes
toast.inputdevicePartlyYesYesYesYesYesYesYesYes
toast.tvaudiocontrolYesYesYesYesYesYesYesYesYes
toast.tvwindowYesYesYesYesYesYesNoNoNo
toast.tvchannelYesYesYesYesYesYesNoNoNo
IMENoYesYesYesYesYesYesYesYes

Prepare to start

  • Prepare to start contains contents such as precondition, configuration or compile before using TOAST.

Precondition

First, TOAST needs the followings. Please install these.

git clone

  • For copying repositories, please mkdir a root directory.

    $ mkdir <root directory>
  • In the root directory, please git clone the following repositories.

    $ git clone https://github.com/apache/cordova-js.git
    $ git clone https://github.com/apache/cordova-browser.git
    $ git clone https://github.com/Samsung/cordova-plugin-toast.git
    $ git clone https://github.com/Samsung/cordova-sectv-orsay.git
    $ git clone https://github.com/Samsung/cordova-sectv-tizen.git
    $ git clone https://github.com/Samsung/cordova-tv-webos.git
    $ git clone https://github.com/Samsung/grunt-cordova-sectv.git

Configuration

  • Please npm install to install dependencies in cordova-js, cordova-plugin-toast, cordova-sectv-orsay, cordova-sectv-tizen, cordova-tv-webos, grunt-cordova-sectv.

    $ npm install
  • In cordova-js/Gruntfile.js, please add compile tasks.

    module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        compile: {
            ...
            "sectv-orsay": {},
            "sectv-tizen": {},
            "tv-webos": {}
        },
  • In cordova-js/package.json, please add the platforms to cordova-platforms like below.

    "cordova-platforms" : {
          ...
      "cordova-sectv-orsay"   : "../cordova-sectv-orsay",
      "cordova-sectv-tizen"   : "../cordova-sectv-tizen",
      "cordova-tv-webos"   : "../cordova-tv-webos"
    }

Compile

  • In cordova-js, please grunt compile for packaging.

    $ grunt compile:sectv-orsay compile:sectv-tizen compile:tv-webos
  • In cordova-plugin-toast, please grunt compile for packaging.

    $ grunt compile:sectv-orsay compile:sectv-tizen compile:tv-webos

Create Project

How to create Toast project

  • recommended workspace

    ./
      |-cordova-js/ ............
      |-cordova-browser/ .......
      |-cordova-plugin-toast/ ..
      |-cordova-sectv-orsay/ ...
      |-cordova-sectv-tizen/ ...
      |-cordova-tv-webos/ ......
      `-grunt-cordova-sectv/ ...
    
  • create empty project

    # Create cordova project
    $ cordova create TestApp
    $ cd TestApp
    
    # Beware of hidden file
    $ cp -rf ../grunt-cordova-sectv/sample/. ./
    $ npm install ../grunt-cordova-sectv
    # Grunt task for build and package
    
    # Install dependency modules
    $ npm install
    
    # For toast browser simulator
    $ cordova platform add browser
    
    # Mandatory plugins for using browser simulator (not for other platforms)
    $ cordova plugin add cordova-plugin-device
    $ cordova plugin add cordova-plugin-network-information
    $ cordova plugin add cordova-plugin-globalization
    
    # Add toast plugin
    $ cordova plugin add ../cordova-plugin-toast
  • www/index.html

<body>
    ...
    <script type="text/javascript" src="cordova.js"></script>
    
    <!-- Add toast.js to use toast api -->
    <script type="text/javascript" src="toast.js"></script>
    ...
</body>
```

Prepare and Build

  • Prepare and Build contains how to prepare and build TOAST project for each platforms. "Prepare" task could help to compose necessary components of TOAST project for each platforms. "Build" task could help to package TOAST project as format for each platforms.

How to prepare

  • browser

    $ cordova build browser
  • sectv-orsay

    $ grunt sectv-prepare:sectv-orsay
  • sectv-tizen

    $ grunt sectv-prepare:sectv-tizen
  • tv-webos

    $ grunt sectv-prepare:tv-webos

How to build and package

  • browser

    # Test on browser platform
    $ cordova emulate browser
  • sectv-orsay

    # Test on sectv-orsay platform
    $ grunt sectv-build:sectv-orsay
    # Run the application on target by using SDK
  • sectv-tizen

    # Test on sectv-tizen platform
    $ grunt sectv-build:sectv-tizen
    # Run the application on target by using SDK
  • tv-webos

    # Test on tv-webos platform
    $ grunt sectv-build:tv-webos
    # Run the application on target by using SDK
  • For more details, please refer the tizen package

How to Test with TestRunner

  • You can test on each platforms with Test Runner cordova application which is located at 'cordova-test-runner' directory of this project.

  • Please refer to below for running the tests: (Assuming that the grunt-cordova-sectv project is cloned at the same level with this project)

    # Create cordova project
    $ cordova create TestRunner --template=cordova-plugin-toast/cordova-test-runner
    $ cd TestRunner
    
    # Beware of hidden file
    $ cp -rf ../grunt-cordova-sectv/sample/. ./
    $ npm install ../grunt-cordova-sectv
    # Grunt task for build and package
    
    # Install dependency modules
    $ npm install
    
    # For toast browser simulator
    $ cordova platform add browser
    
    # Mandatory plugins for using browser simulator (not for other platforms)
    $ cordova plugin add cordova-plugin-device
    $ cordova plugin add cordova-plugin-network-information
    $ cordova plugin add cordova-plugin-globalization
    
    # Add toast plugin
    $ cordova plugin add ../cordova-plugin-toast

Converting Tizen to Toast

Converting Orsay to Toast

API Reference

Sample App

Contribution Guideline

Known Issues

Not yet

Analytics

cordova-plugin-toast's People

Contributors

cravaterouge avatar darangkim avatar heonie avatar minjung978 avatar prozanne avatar pwsses avatar shikolay avatar yongjuyoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-toast's Issues

No mouse cursor.

Try to use video elemet and play a video.
But no mouse cursor. (Using sectv-orsay plugin on my Smart tv)
The video is playing well on using autoplay attr.

GlobalizationError not found null

Hi samsung cordova developers,

I followed instructions described here:
https://github.com/Samsung/cordova-plugin-toast
then
https://github.com/Samsung/cordova-plugin-toast/wiki/Prepare-and-Build

created WGT package, and after deploying on tizen emulator v. 2.4.0 build 20151013-1137

got this issue:

cordova.js (59) :module cordova/plugin/globalizatio.GlobalizationError not found
null
null
TypeError: 'undefined' is not a function (evaluating 'this.elPlugin.postMessageAndAwaitResponse(cmdObj)')
HelloCordova.zip

could you please suggest if I missing something.

Local Storage or FileSystem

Hi guys,
I've been working with toast and I had to use local storage for tizen application and File System for orsay app because local storage hast not been released the data when the app is uninstalled.

So I was wondering if you could add a feature to lead with this problem and that's will be pretty cool.

Cheers!

Can't find variable: toast

Hi, when I try to debug my app on the OrsayTV emulator I get the following error:

Can't find variable: toast

I've followed all the steps in the wilki, and in the browser it just works fine, but in the emulator it just won't work.

What am I missing?

verimatrix

Hi,
Is verimatrix supported? I didn't find any reference in docs and not in the source code.
Thank you!

App for 2012 E-Series Test Install Error

I've got a 2012 E-Series Samsung tv and wanted to try building an app for it as I came across this plugin. I've put together an app and everything emulates in the browser. Having perfomed the build/package step, I then went to install the app on my tv.

The smarthub is connecting and picking up the widgetlist.xml, starting the download of my app. After a few seconds I get this message:
Failed to install. For more information, visit http://www.samsungdforum.com/Support/TVAppsSecurity.

That page doesn't exist.

Here's my widgetlist.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <rsp stat="ok"> <list> <widget id="****"> <title>****</title> <type>user</type> <compression size="728" type="zip"/> <description/> <download>http://***.***.*.*/******.zip</download> </widget> </list> </rsp>

I didn't know what to put in the compression size field, so that is the zip file size in kb.

I can connect to the same place with a separate laptop and both view the xml file and access the zip, so I know that's not the problem. My apache log isn't showing any messages or errors.

I'm running os x mavericks, building the app with phpStorm and using mamp to run the apache server.

Any help would be greatly appreciated. Cheers.

app zip caching

I'm not sure if this is a toast issue but I have a 2014 UN55H6203AF TV and it keeps caching my app zip file. I end up having to unplug my tv and then re-sync to get the tv to accept the new app.

any thoughts?

Cannot stream video with media plugin

When i give a *.ts or *.m3u8 file as a source to media.open() i get the following error on my browser:

undefined:1 Uncaught (in promise) DOMException: Failed to load because no supported source was found.
media.js:107 MediaError is occured: {"type":"ERROR","data":{}}

toast media player doesn't emit "ENDED" event

Toast media player works fine in the browser emulator. Doesn't work in the TIZEN Studio version 1.1.0 (from 2016-12-21?!) emulator that comes with it.

When I load a video in the toast browser emulator, the media player is properly updated with the duration of the file being loaded and then I can use that.

When I load a video in the tizen studio emulator, the media player is not updated with the duration (the duration is, however, for some reason, put in to the _currentPosition variable. Which then seems to result in the ended event not being emitted, so I can't even use the events properly.

Supported Orsay Platforms. Which ones?

Hello,

in the Wiki somewhere i read supported Devices for Orsay and i only saw 2014 mentioned as also for the examples.
I have a 2012 Device Smart TV. Will this work with TOAST too or will we have some limitations or even no Support?

Greetings

its works on ORSAY?

Hi,
I build the app with TOAST and it works great on tizen (has to add manualy cordova_plugins.js and plugins folder), but on orsay it refuses to load.
device ready event is never fired.
also when I compile the project it doesn't add plugins folder and cordova_plugins.js is missing.
also I need manualy to copy toast.js to the project (I'm on windows)

for example, in cordova-orsay.js on line 1389 there is a window.onShow = function (..
which is never been called (it very hard to debug on orsay..)

maybe somebody can upload working example with all files needed (that I wont need to biuld orsay corodva and toast localy)?

No sound on Samsung TV off/on

Hi,

my Samsung app failed on testing because the sound play normally but when TV is turned off and then turned on, only the video keeps playing, but without any sound.

Is this an issue or is there anything I have do to solve this?

Thanks!

Applications can't be installed on the Tizen emulator

After following the guidelines to make a media application demo, I can't install the application on the Tizen emulator, but it does work on the Tizen simulator.

The emulator doesn't give any description where it has failed.

Media inputDevice

Hello, I'm trying to mapping the keys around the media(MediaPlayPause, MediaStop, MediaPlay, ... )

But I noticed that in Orsay(tvKeyCode.MediaPlay) and Tizen(tvKeyCode.KEY_PLAY) the keys are different. There is any abstraction from toast for this difference be transparent for me and I do not have to use "If this platform use this key".

media POSITION event is not fired in WebOS emulator

Hello,

I'm trying to play m3u8 file on WebOS emulator. The problem is that POSITION event is not fired during video playback.
Is this error related to WebOS emulator or maybe I missed something?

Thanks in advance.

cordova_plugin.js missing for webos 3.0 app

Hi there,

I have built a simple player app using the toast api to play a smoothstream.
The app works great when I package and test for tizen. I am attempting to build the same player for webos.
When I run the webos app in debug mode, I get this error:
Failed to load resource: net::ERR_FILE_NOT_FOUND file:///media/developer/apps/usr/palm/applications/com.yourdomain.app/cordova_plugins.js

I've checked my project files and the cordova_plugins.js is indeed missing. Where can I get this missing file or is there a way to workaround the issue. Any help is much appreciated.

Thanks!

Uncaught ReferenceError: toast is not defined

Emulating the app in broswer works perfeclty but when I tried to deploy in Samsumg Emulator i got this error in Web Inspector:

Uncaught ReferenceError: toast is not defined
at registerKey (VM458 index.js:55)
at Object.onDeviceReady (VM458 index.js:33)
at Channel.fire (VM457 cordova.js:801)
at VM457 cordova.js:1401

Changes related to the cordova project creation with template. ( for sample app )

Hello,

I notify about change points related to the "create cordova project with template".

When you create the cordova project for sample apps, untill now, we recommand the option, "--src".

But, after cordova v6.x.x, the cordova guide related to this, was changed.
(Refer the related content under url)
http://cordova.apache.org/docs/en/6.x/guide/cli/template.html#page-toc-source

So we converted to the template form which they stipulate in order to use that option.
(They recommend "--template" option in place of "--src")

Accordingly, if you want to create the cordova project for sample apps,
first, you have to check the cordova version ( requires 'cordova >= 6.0.0' ).

If the version is under than @6.0.0, you have to upgrade the cordova version.

In other words, when you create the project, follow under steps.

step 1. check the cordova version
        $ cordova -version

step 2. if 'cordova < v6.0.0',
            $ npm install -g cordova
        else, go to the step 3.

step 3. create project using "--template" option. (you can use "--src" option, not recommanded)
        $ cordova create sampleApp --template=cordova-plugin-toast/sample/media

「The reference url : https://github.com/Samsung/cordova-plugin-toast/wiki/Create-Project#how-to-create-toast-project

Related Issues.

Case 1.
< 'cordova > v6.0.0' >
probably you will see the error message as below if you use "--src" option.
--src error message
⇒ This error is not serious but we recommand to use "--template" option.

Case 2.
< 'cordova < v6.0.0' >
probably it will not be used as you intend if you use "--src" option,
because we converted to the template form which cordova stipulate.
⇒ Please update to latest cordova version.

Case 3.
< 'cordova < v6.0.0' >
probably it will not be used as you intend if you use "--template" option, because not supported.
⇒ Please update to latest cordova version.

"Failed to install" error message.

I tried to upload to my Samsung tv a Toast app that using AngulaJs and Jquery,
By just keep and get the same error message : "Failed to install. For more information, visit http://www.samsungdforum.com/Support/TVAppsSecurity".

I tried and the following steps :

1 - Following step by step on the 'Toas't instructions in this GitHub project and create Cordova project.
2 - Login using the developer user on my Samsung tv.
3 - Enter my computer ip.
4- Create 'widgetlist.xml' file , packing my project and successfully upload a 'hello world' app to my tv, using the sync app option.
5 - Create a new cordova project that using AngularJs and Jquery framework, try and upload the new app , using the sync app option , get an error saying :
"Failed to install. For more information, visit http://www.samsungdforum.com/Support/TVAppsSecurity".

I am using Samsung UA46F6400.

Elad

Tizen build error

My app was building fine for Tizen and even submitted it to the app store but now I'm getting this error when I run "grunt sectv-build:sectv-tizen".

�[4mRunning "sectv-build:sectv-tizen" (sectv-build) task�[24m

Start packaging Samsung Tizen TV Platform......
Tizen CLI 1.3.5

Setting configuration is succeeded....

Build Web Application: 10% ( 1/10)
Build Web Application: 20% ( 2/10)
Build Web Application: 40% ( 4/10)
Build Web Application: 50% ( 5/10)
Build Web Application: 60% ( 6/10)
Build Web Application: 70% ( 7/10)
Build Web Application: 80% ( 8/10)
Build Web Application: 100% (10/10)
Build Web Application: 100% (10/10)

BUILD SUCCESSFUL

Output path:/samsung/laze-life/platforms/sectv-tizen/www/.buildResult
Excluded: [.build/, .build, .sign/, .sign, webUnitTest/, webUnitTest, .externalToolBuilders/, .externalToolBuilders, .buildResult/, .buildResult, .settings/, .settings, .package/*, .package, .tproject, .project, .sdk_delta.info, .rds_delta, *.wgt, .tizen-ui-builder-tool.xml]
Total time: 00:00:00.432
Author certficate: /tizen-studio-data/keystore/author/lazelife.p12
Distributor1 certificate : /tizen-studio/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12
Excludes File Pattern: {.manifest.tmp, .delta.lst}
Ignore File: /samsung/laze-life/platforms/sectv-tizen/www/.buildResult/.manifest.tmp
Package File Location: /samsung/laze-life/platforms/sectv-tizen/www/.buildResult/LazeLife.wgt
�[31mFatal error: Path must be a string. Received [ 'Package File Location: /samsung/laze-life/platforms/sectv-tizen/www/.buildResult/LazeLife.wgt',
'/samsung/laze-life/platforms/sectv-tizen/www/.buildResult/LazeLife.wgt',
index: 435,
input: 'Author certficate: /tizen-studio-data/keystore/author/lazelife.p12\nDistributor1 certificate : /tizen-studio/tools/certificate-generator/certificates/distributor/tizen-distributor-signer.p12\nExcludes File Pattern: {.manifest.tmp, .delta.lst}\nIgnore File: /samsung/laze-life/platforms/sectv-tizen/www/.buildResult/.manifest.tmp\nPackage File Location: /samsung/laze-life/platforms/sectv-tizen/www/.buildResult/LazeLife.wgt\n' ]��[39m

Can't run sample applications

When i run $ cordova build browser on one of the sample apps after copying it besides the folder cordova-js like shown in the recommended workspace section i get the following error:
Error: Current working directory is not a Cordova-based project.

Request contribution for regular release until February 29

Dear Developers,

Regular release of TOAST is scheduled as v1.1.0 in March 14.
We will include source code which is contributed until February 29.
If you are in preparation for contribution, please apply your source code on time.

Thank you.

Media is a singleton?

If Media is a singleton then how do we play more than one video at once? (e.g. two SD videos on an HD capable decoder)

I would wish to preload the next video while the current one is playing.

node.js

안녕하세요 node js 와 socket.io를 이용한 tizen tv app을 개발을 하고있는 개발자입니다.
simulator에서는 클라이언트(tizen tv)와 서버가 socket 통신이 문제없이 되지만,
emulator에서는 app 시작하자마자 종료가 되는 현상이 나타납니다.

현재 tizen sdk2.4를 사용하고 있는 중입니다. socket.io가 tizen에서 지원이 되는지 궁금합니다.
감사합니다.

Use this plugin to control smart-tv from local machine

Hi,

I created a plugin for Homebridge that allows me to control the volume, channel and on/off state of my samsung tv running Orsay over siri. The plugin currently uses the old unofficial network protocol that seems not to exist on the newer Tizen tv's anymore. Therefore I would like to exchange this component with a solution that fits both, the old Orsay based smart tv's and the newer Tizen based samsung tv's. My concrete question is now if this plugin is just for developing smart tv apps or if it would also be possible to divert the plugins intended use to control smart tv's in the same network from another machine.

Thanks in advance.

TestRunner0607_Orsay.zip - Not Work Orsay 2014

Hi,

we triedto install the TestRunner0607_Orsay.zip and it failed on device:

Samsung Smart TV Orsay
Model UE55F7000
Software version : T-FXPDEUC-1118.0

We hope in your help
Thank you ad best regards

TOAST on samsung hospitality TV

Hi, I am trying to run a default testapp on samsung hospitality TV which just detects deviceready event.
By design the widget is loaded from server url in hospitality TVs.

But apparently cordova is not firing deviceready event. It was also looking for cordova_plugins.js file.
The app was running fine on emulator and browser.

How to test application with an HLS(m3u8) stream

Hello.

Please, could you tell how to test application with an HLS(m3u8) stream?
I use the toast.MediaPluginHLS:

var drmOptions = window.getMediaOption();
var mediaPlugin = new toast.MediaPluginHLS(drmOptions);

media.resetPlugin();
media.attachPlugin(mediaPlugin);
media.open(' http://.../playlist.m3u8');
Thanks.
Alina

Errors while setting process

Hi there. I used shell file for preparing. In process of compiling I got errors:

Fatal error: cordova.js, toast.js file are not exist.
================ Prepare for sectv-tizen platform
Running "sectv-prepare:sectv-tizen" (sectv-prepare) task

Fatal error: cordova.js, toast.js file are not exist.
================ Prepare for tv-webos platform
Running "sectv-prepare:tv-webos" (sectv-prepare) task

And after it finished I noticed weird 'nnnt' in Gulpfile.js, package.json.. I think it's partials of \n\n\n\t in strings from shell file. I use Mac 10.11.6

Failed to load resource on toast.js

When i try to debug my app using browser i get the error Failed to load resource: the server responded with a status of 404

I followed every instruction on the github page when setting up the enviroment but i still get this.

Media Playback causes errors

On one app, I create an instance of the player to play audio files (songs). On certain occasions, on both platforms the app will fail to play the files.

On orsay I only get the error MediaError occured: {"type":"ERROR","data":"0"}

On tizen, it specifies MediaError occured: {"type":"ERROR","data":"PLAYER_ERROR_NOT_SUPPORTED_FILE"}

The thing is, that if I retry with the file it sometimes does play it without issues.

Is this an error on toast or is this a platform error? I doubt it could be a platform error seeing it occur on both.

I can't debug with Tizen Studio when testing on a real tv

Hi,

I am currently developing a TOAST application. I made it able to run it on an actual tv with some work-arounds(had to upload my certificates through the old Samsung TV IDE). So it runs good now, but the problem is that I can't debug my application. This is possible with the simulator/emulator. Just not with the device. The TOAST application is built from scratch with the guide how you provided it on this GitHub page.

What I get is an uninstall package failed error message without any details. If I open up the log files from the Tizen Studio IDE this is what I get:

01:58:07 E/sdb: sdb rejected shell command (0 list "/"): closed
01:58:07 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
01:58:07 E/sdb: sdb rejected shell command (0 list "/opt"): closed
01:58:07 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
01:58:07 E/sdb: sdb rejected shell command (0 list "/opt/usr"): closed
01:58:07 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
01:58:07 E/sdb: sdb rejected shell command (0 list "/opt/usr/apps"): closed
01:58:07 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
01:58:07 E/sdb: sdb rejected shell command (0 list "/opt/usr/apps/tmp"): closed
01:58:07 E/sdb: excute doLS failed:org.tizen.sdblib.exception.SdbCommandRejectedException: closed
01:58:09 E/sdb: sdb rejected shell command (0 vd_appuninstall ; echo cmd_ret:$?;): closed

and:

[2017.05.09 13:58:05][ERROR] ProfileInfo.java(408) - Failed to get a device information from '192.168.225.163:26101' (model: UJ6240, platform: Tizen, version: unknown¶� � � `Ý/¶@�� �¸� �æ� �ò� pò� ôú� dN, profile: unknown �´� �¦-¾Xª-¾� �.¶ � �)
java.lang.Exception: Failed to get a device's profile version
at org.tizen.common.core.application.ProfileInfo.getProfileInfo(ProfileInfo.java:395)
at org.tizen.common.util.LaunchUtil.checkProfile(LaunchUtil.java:157)
at org.tizen.web.zimlaunch.deployer.ZimLaunchDelegate.preLaunchCheck(ZimLaunchDelegate.java:130)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:840)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I am running on Windows 10 Professional with the following specs:
Processor: Intel(R) Xeon(R) CPU E5-1603 0 @ 2.80 GHz 2.80 GHz
Installed memory (RAM): 16.0 GB
System type: 64-bit Operation System, x64-based processor

This is a freshly installed desktop with the new Tizen Studio 1.1.1 version.

The TV we're talking about is a Samsung 6-Series FHD TV UE55J6240 that runs on Tizen 2.3 and the latest software version.

I hope you can help me.

With kind regards

Call Orsay native API

I would like to access the Orsay native API, it is possible through a toast app ?

Black screen after switching between apps on Samsung TV

Hi,

my Samsung app failed on testing because the video plays normally but when user switch to another app and then switch back, the video stops playing and player area becomes black (black screen).

Is this an issue or is there anything I have do to solve this?

Thanks!

Question about the wgt artifact generated.

Hello, I did the prepare/build command for Tizen OS and a "HelloCordova.wgt" was generated. I'm not sure how to run this in the Tizen emulator, I tried a lot of things but I could not push the artifact.

Someone have some tip/link about the deploy in emulator?

My Http request just returns undefined on my tv while my emulator gives the result.

Hi,

I am currently developing a TOAST application. I made it able to run it on an actual tv with some work-arounds(had to upload my certificates through the old Samsung TV IDE). So it runs good now, but the problem is that my tv does not execute the http request properly. This is possible with the simulator/emulator. Just not with the device. The TOAST application is built from scratch with the guide how you provided it on this GitHub page.

I have looked alot online on tizen forums, this toast page, samsung developers portal. I can't find a working solution. I even added some config stuff to the config file after building the toast application to tizen.

My request:

httpGetAsync("http://randomuser.me/api");

function httpGetAsync(url)
    {
    	$
    		.ajax({ url : url, type : "GET" })
    		.then( function( data, status, xhr ) {
    			console.log( data );
    			document.getElementById("error").innerHTML = String(data);
    		});
    }

My config file:

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/NetTVClient" version="1.0.7" viewmodes="maximized">
    <tizen:application id="qitg5q58xo.NetTVClient" package="qitg5q58xo" required_version="2.3"/>
    <content src="index.html"/>
    <feature name="http://tizen.org/feature/screen.size.all"/>
    <icon src="img/logo.png"/>
    <name>NetTVClient</name>
    <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
    <tizen:privilege name="http://developer.samsung.com/privilege/productinfo"/>
    <tizen:privilege name="http://developer.samsung.com/privilege/network.public"/>
    <tizen:privilege name="http://developer.samsung.com/privilege/drmplay"/>
    <tizen:privilege name="http://tizen.org/privilege/tv.inputdevice"/>
    <tizen:privilege name="http://tizen.org/privilege/tv.window"/>
    <tizen:privilege name="http://tizen.org/privilege/tv.channel"/>
    <tizen:privilege name="http://tizen.org/privilege/tv.audio"/>
    <tizen:privilege name="http://tizen.org/privilege/download"/>
    <tizen:privilege name="http://tizen.org/privilege/network.get"/>
    <access origin="*" subdomains="true"></access>
	<tizen:allow-navigation>https://randomuser.me/api</tizen:allow-navigation>
	<tizen:privilege name="http://tizen.org/privilege/internet"/>
    <tizen:profile name="tv"/>
</widget>

I am running on Windows 10 Professional with the following specs:
Processor: Intel(R) Xeon(R) CPU E5-1603 0 @ 2.80 GHz 2.80 GHz
Installed memory (RAM): 16.0 GB
System type: 64-bit Operation System, x64-based processor

This is a freshly installed desktop with the new Tizen Studio 1.1.1 version.

The TV we're talking about is a Samsung 6-Series FHD TV UE55J6240 that runs on Tizen 2.3 and the latest software version.

I hope you can help me.

With kind regards

deviceready has not fired after 5 seconds.

I have an app that have an index.html and it has a link to another page(detail.html).

When I open the detail page the deviceready event is not fired and after that nothing works.

Any idea?

Fatal error when running grunt sectv-build:sectv-tizen

I'm encountering an error when trying to build for Tizen with TOAST.

  • macOS 10.12.3-beta (16D17a)
  • Tizen Studio v1.0.2
  • Java 8 update 111 (build 1.8.0_111-b14)
  • Fresh install of TOAST by following the wiki here, here and here and using the shell file.
$ grunt sectv-build:sectv-tizen
Running "sectv-build:sectv-tizen" (sectv-build) task

Start packaging Samsung Tizen TV Platform......
Tizen CLI 1.3.5

Setting configuration is succeeded....

Build Web Application:  100% (10/10)

BUILD SUCCESSFUL

Output path:/Users/username/Documents/Apps/Tizen/toast/TestApp/platforms/sectv-tizen/www/.buildResult
Excluded: [.build/*, .build, .sign/*, .sign, webUnitTest/*, webUnitTest, .externalToolBuilders/*, .externalToolBuilders, .buildResult/*, .buildResult, .settings/*, .settings, .package/*, .package, .tproject, .project, .sdk_delta.info, .rds_delta, *.wgt, .tizen-ui-builder-tool.xml]
Total time: 00:00:00.989
Exception in thread "main" java.lang.NoClassDefFoundError: org/tizen/core/gputil/XMLUtil
	at org.tizen.ncli.subcommands.packages.WebProject.getDocument(WebProject.java:41)
	at org.tizen.ncli.subcommands.packages.PackageCLICommand.call(PackageCLICommand.java:118)
	at org.tizen.ncli.subcommands.packages.PackageCLICommand.call(PackageCLICommand.java:74)
	at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:85)
	at org.tizen.ncli.ide.shell.PackageCLI.doPackageForWgt(PackageCLI.java:710)
	at org.tizen.ncli.ide.shell.PackageCLI.execute(PackageCLI.java:858)
	at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:82)
	at org.tizen.ncli.ide.shell.Main.run(Main.java:145)
	at org.tizen.ncli.ide.shell.Main.main(Main.java:77)
Caused by: java.lang.ClassNotFoundException: org.tizen.core.gputil.XMLUtil
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 9 more
Fatal error: Exception in thread "main" java.lang.NoClassDefFoundError: org/tizen/core/gputil/XMLUtil
	at org.tizen.ncli.subcommands.packages.WebProject.getDocument(WebProject.java:41)
	at org.tizen.ncli.subcommands.packages.PackageCLICommand.call(PackageCLICommand.java:118)
	at org.tizen.ncli.subcommands.packages.PackageCLICommand.call(PackageCLICommand.java:74)
	at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:85)
	at org.tizen.ncli.ide.shell.PackageCLI.doPackageForWgt(PackageCLI.java:710)
	at org.tizen.ncli.ide.shell.PackageCLI.execute(PackageCLI.java:858)
	at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:82)
	at org.tizen.ncli.ide.shell.Main.run(Main.java:145)
	at org.tizen.ncli.ide.shell.Main.main(Main.java:77)
Caused by: java.lang.ClassNotFoundException: org.tizen.core.gputil.XMLUtil
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 9 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.