Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/.metadata
.CustomProfile/
/tizen-demo-app/node_modules
/jw-tizen-demo-app/node_modules
/jw-tizen-demo-app/app/.sign
/jw-tizen-demo-app/app/dist
15 changes: 15 additions & 0 deletions jw-tizen-demo-app/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"indent": [1, 4, { "SwitchCase":1 }],
"quotes": [1, "single", { "allowTemplateLiterals": true }],
"eol-last": 1
}
}
24 changes: 24 additions & 0 deletions jw-tizen-demo-app/app/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>JWTizenDemoApp</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>json.validation.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.tizen.web.project.builder.WebBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>json.validation.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.tizen.web.project.builder.WebNature</nature>
</natures>
</projectDescription>
22 changes: 22 additions & 0 deletions jw-tizen-demo-app/app/.settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="">
<attributes>
<attribute name="provider" value="org.eclipse.wst.jsdt.web.core.internal.project.ModuleSourcePathProvider"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.tizen.web.project.initializer.WebLibraryInitializer"/>
<classpathentry kind="con" path="org.eclipselabs.jsdt.jquery.core.CoflictLibrary_2.0"/>
<classpathentry kind="con" path="org.tizen.web.project.initializer.TizenLibraryInitializer"/>
<classpathentry kind="con" path="org.tizen.web.project.initializer.HTML5LibraryInitializer"/>
<classpathentry kind="con" path="org.tizen.web.project.initializer.W3CLibraryInitializer"/>
<classpathentry kind="con" path="org.tizen.web.project.initializer.ext.RESTSupport"/>
<classpathentry kind="output" path=""/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
css-profile/<project>=org.eclipse.wst.css.core.cssprofile.css3
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Window
11 changes: 11 additions & 0 deletions jw-tizen-demo-app/app/.tproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tproject xmlns="http://www.tizen.org/tproject">
<platforms>
<platform>
<name>tv-samsung-4.0</name>
</platform>
</platforms>
<package>
<blacklist/>
</package>
</tproject>
Binary file added jw-tizen-demo-app/app/JWTizenDemoApp.wgt
Binary file not shown.
18 changes: 18 additions & 0 deletions jw-tizen-demo-app/app/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/JWTizenDemoApp" version="0.2.1" viewmodes="maximized">
<access origin="*" subdomains="true"/>
<tizen:application id="7x6pivhnQx.JWTizenDemoApp" package="7x6pivhnQx" required_version="2.3"/>
<content src="index.html"/>
<feature name="http://tizen.org/feature/screen.size.normal.1080.1920"/>
<feature name="http://tizen.org/feature/screen.size.normal.1440.2560"/>
<feature name="http://tizen.org/feature/screen.size.normal.2160.3840"/>
<icon src="jw-logo.png"/>
<tizen:metadata key="http://samsung.com/tv/metadata/prelaunch.support" value="true"/>
<name>JWTizenDemoApp</name>
<tizen:privilege name="http://developer.samsung.com/privilege/drminfo"/>
<tizen:privilege name="http://developer.samsung.com/privilege/drmplay"/>
<tizen:privilege name="http://tizen.org/privilege/internet"/>
<tizen:privilege name="http://tizen.org/privilege/tv.inputdevice"/>
<tizen:profile name="tv-samsung"/>
<tizen:setting screen-orientation="landscape" context-menu="enable" background-support="disable" encryption="disable" install-location="auto" hwkey-event="enable"/>
</widget>
33 changes: 33 additions & 0 deletions jw-tizen-demo-app/app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<!--
*
* Copyright (c) 2020, JW Player, All Rights Reserved
*
* This source code and its use and distribution, is subject to the terms
* and conditions of the applicable license agreement.
* https://www.jwplayer.com/tos/
*
-->
<html>
<head>
<meta charset="utf-8" />
<script src="dist/js/jw-tizen.js"></script>
<link rel="stylesheet" type="text/css" href="dist/css/jw-tizen.css"/>
<script src="setup.js"></script>
<!--
Add a link to a player library here
<script src="https://www.yourdomain.com/{player_folder}/jwplayer.js"></script>
<script>jwplayer.key='{player_key}'</script>

--OR--

<script src="{CLOUD-HOSTED_PLAYER_LIBRARY_URL}"></script>

See: https://developer.jwplayer.com/jwplayer/docs/jw8-add-a-player-library
-->
</head>

<body>
<div id="main"></div>
</body>
</html>
Binary file added jw-tizen-demo-app/app/jw-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions jw-tizen-demo-app/app/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Register remote keys that will be used
tizen.tvinputdevice.registerKeyBatch(['MediaPlay', 'MediaPause', 'MediaPlayPause']);
Loading