Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tizen Update #77

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ee8e9aa
Now displays why it failed.
Oct 3, 2015
a96a7cc
Uniform quotation marks
Oct 3, 2015
ed4205c
tizen update
CazuzaCzz Jan 29, 2016
3c1f77d
Added Key 3 and 6
CazuzaCzz Feb 3, 2016
d5573d0
register key fix
CazuzaCzz Feb 3, 2016
20fe38a
fix for arrowup and arrowdown
CazuzaCzz Feb 3, 2016
ab8de5a
languague suport and some changes
CazuzaCzz Feb 4, 2016
e0f65e2
Changed version to 3.6.3
CazuzaCzz Feb 7, 2016
4aaae52
Create uk.js
PaulFurlet Feb 16, 2016
20262a1
Update es.js
Feb 17, 2016
2b85d8c
Change Return key behaivor
CazuzaCzz Feb 20, 2016
29ed3cd
Polish language
Szedar Feb 22, 2016
f99e7a2
Changed error dialog
CazuzaCzz Feb 22, 2016
bab774e
Changes to loadDataError and behaivor on connection lost
CazuzaCzz Feb 24, 2016
2692d62
Small Changes
CazuzaCzz Feb 25, 2016
77b47a0
Update version and README
CazuzaCzz Feb 25, 2016
f302764
Changed languages.js files
CazuzaCzz Feb 25, 2016
1d56a71
Merge branch 'patch-1' of https://github.com/Jiimiex/smarttv-twitch i…
CazuzaCzz Feb 25, 2016
ce0facc
Merge branch 'Jiimiex-patch-1' into tizen
CazuzaCzz Feb 25, 2016
aede987
Merge branch 'patch-1' of https://github.com/PaulFurlet/smarttv-twitc…
CazuzaCzz Feb 25, 2016
918666e
Merge branch 'PaulFurlet-patch-1' into tizen
CazuzaCzz Feb 25, 2016
33f2fc9
Changed uk .js file name and folder, add missing STR
CazuzaCzz Feb 25, 2016
7908bbe
Update README.md
CazuzaCzz Feb 25, 2016
c3f129d
Merge branch 'patch-1' of https://github.com/Szedar/smarttv-twitch in…
CazuzaCzz Feb 26, 2016
d58c6d6
Merge branch 'Szedar-patch-1' into tizen
CazuzaCzz Feb 26, 2016
c83c3eb
Changed lang\pl.js filename and folder
CazuzaCzz Feb 26, 2016
a9c8785
es language fiz
CazuzaCzz Feb 29, 2016
2f38879
Version 3.6.5
CazuzaCzz Mar 2, 2016
1ec7124
Minor changes to make app work on 2016 Tizen OS TVs
midN Aug 4, 2016
35cc287
Change initial quality to Source due to player not loading.
midN Aug 5, 2016
6aadf82
Remove forced 4K since some TVs might not support it.
midN Aug 9, 2016
1c18f8b
Take always 0 element from qualities array. ( Highest )
midN Aug 9, 2016
c02d02a
Update SceneBrowser.js
whitedragonLT Sep 19, 2016
0df74bd
Update SceneChannel.js
whitedragonLT Sep 19, 2016
941adb0
Update SceneChannel.js
whitedragonLT Sep 19, 2016
d6955f5
Revert "Take always 0 element from qualities array. ( Highest )"
CazuzaCzz Sep 20, 2016
dd8d946
Removed Quality Auto
CazuzaCzz Sep 21, 2016
77f81e3
Fix typo in pt-br language
pedrro Sep 16, 2016
03d47c6
Create language.js
pietrogalassi Apr 6, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions .gitignore
@@ -0,0 +1,21 @@
.sdk_delta.info
lang/ru.js
.sign/signature1.xml
.sign/author-signature.xml
.sign/.manifest.tmp
smarttv-twitch.wgt
app.json
index.html.old
*.old
lang/en.js
lang/en.js
lang.old/ru.js
lang.old/pt-br.js
lang.old/es.js
lang.old/en.js
lang.old/de.js
smarttv-twitch.zip
app/scenes/Copy of SceneBrowser.js
smarttvtwitch.wgt
app/scenes/bank.js
app/scenes/Copy of SceneChannel.js
20 changes: 16 additions & 4 deletions .project
@@ -1,18 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>TwitchTV</name>
<comment>SamsungSDKBasicProject</comment>
<name>smarttv-twitch</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<name>org.tizen.web.privilege.nature.PrivilegeBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>json.validation.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.tizen.web.project.builder.WebBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>tv.samsung.sdk.basicProjectNature</nature>
<nature>org.tizen.web.privilege.nature.PrivilegeNature</nature>
<nature>json.validation.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.tizen.web.project.builder.WebNature</nature>
</natures>
</projectDescription>
26 changes: 21 additions & 5 deletions .settings/.jsdtscope
@@ -1,7 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path=""/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
<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 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.tizen.web.project.initializer.W3CLibraryInitializer"/>
<classpathentry kind="con" path="org.tizen.web.project.initializer.HTML5LibraryInitializer"/>
<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.ExtraTizenLibraryInitializer"/>
<classpathentry kind="con" path="org.tizen.web.project.initializer.ext.RESTSupport"/>
<classpathentry kind="output" path=""/>
</classpath>
3 changes: 0 additions & 3 deletions .settings/org.eclipse.core.resources.prefs

This file was deleted.

2 changes: 2 additions & 0 deletions .settings/org.eclipse.wst.css.core.prefs
@@ -0,0 +1,2 @@
css-profile/<project>=org.eclipse.wst.css.core.cssprofile.css3
eclipse.preferences.version=1
11 changes: 11 additions & 0 deletions .tproject
@@ -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-public-2.4</name>
</platform>
</platforms>
<package>
<blacklist/>
</package>
</tproject>
72 changes: 67 additions & 5 deletions README.md
@@ -1,17 +1,79 @@
smarttv-twitch
==============

This is an app for Samsung SmartTV's designed to watch twitch.tv broadcasts.

About this fork
===============

This is a try to upgrade smarttv-twitch so i can use it on my UN48j6300AGXZD Samsung TV, that has a Tizen OS.
I didn't know anything about the SmartTV app. Lots of things i still don't know what they do, so i left then alone :) .
It's not the best way, but its working for me. Almost everything is working on the emulator and on my TV.
Some handlers for errors on connections need to be fix (onConnectionFailed, onAuthenticationFailed, onStreamNotFound, onNetworkDisconnected, onRenderError);
Changed languages files, to work in Tizen.
Put SceneBrowser.html and SceneChannel.html inside index.html, each one inside a div, and i toggle visibility off then when the app change betwen them.
Moved CSS inside index.html too.
On tizen every time you scroll the window, it will show a ScrollBar.
When you keep pressed UP and DOWN the screen don't update correctly, but if you press Left or Right it fix.

Bug
==============
- Everytime the app scroll to much content, it will make a white flicker. This happens only on TV. Dont happen on TV Emulator.
- So when the app will start loading 100 more streams to show on the screen. It will scroll to the top of the window, making the white flicker, to show the loading msg. And when the loading finish, it will scroll to the bottom of page to focus on the current selected stream, making the screen flicker again.

Installation
==============
On your TV, go to Menu->Smart Features->Samsung Account and type name "develop".

Then go to SmartHUB, click "More Apps" button, then click "Options" button and choose "IP Setting", enter '188.226.130.26' and finally choose "Start App Sync" option. TwitchTV app has to be installed now.
How to install and run App in the TV
http://107.22.233.36/TizenGuide/tizen3511/index.html

[@sparkozos](https://github.com/sparkozos) made this guide
https://github.com/mkvd/smarttv-twitch/issues/53#issuecomment-183156136


Change Log
==============
3.6.0
- Added a timer on stream info.
- Added Game name on stream info.
- Added key_up and key_down to change quality of stream.

3.6.1
- Fixed KEY_UP and KEY_DOWN. Stopped them from doing default.
- Added language support.(RU localization need test).
- Added logo 512x423 - GlitchIcon_WhiteonPurple512x423.jpg
- Started to add support for Follower
- Added license to config.xml <license xml:lang="en-gb" href="http://www.gnu.org/licenses/gpl.html">GNU GENERAL PUBLIC LICENSE</license>
- Changed organization on index.html. Used Code Beautifier.

For 2014 models "More apps" button might be absent, if so try: long press the enter button on any app, then the menu will pop up, select IP Settings, put in the IP, then long press enter again and then Start User Apps Sync.
3.6.3
- Changed version to 3.6.3
- Changed to Required version 2.3 on config.xml
- Added some STR for languages changes. Used what twitch use on their site, don't know if its the better translation
- Didn't test DE and RU languages on my TV. It should work.
- Added support to follower.
- Added KEY_TOOLS to open window to input username and open follower window.
- Added KEY_0 to open follower window with saved username. If there is no username save, it will open window to input username.
- You can input username on the app, and see list of streams, live hosts, and live games which that that user is following.
- The username should save on WebStorage, so when you close and open the app, it should still be there.
- You can press the key TOOLS to open interface where you can input the username, and save/open.
- if there there is already a username you can pres the KEY_0 to open the list whithout typing again the username.
3.6.4
- Change Return key behaivor:
- on main window, close app
- on other windows return to main window.
- Fixed refresh key, to work on follower window
- Added Network.public privilege to get network changes.
- Changed behaivor when connection lost, stream will play until finish then close player returning to streams list
- Changed error dialog when Channel or Username does not exist.
- Added Message error when stream is offline
- Added addNetworkStateChangeListener();
- It will check when the network is disconnected and show it to the user. But it will not work when only internet turn off, and network keep online)
- Added some languages STR.
- Changed jQuery to new version and to min.js

For models released before 2013 you might want to use these instructions instead:
From the SmartHUB main screen, click the "Tools" button on the remote. Only from the "Tools" menu, navigate to "Settings", and from there to "Development". (You still have to be logged in as 'develop')
-TODO:
- Save Quality on WebStorage.

Contribution
==============
Expand Down
10 changes: 0 additions & 10 deletions app.json

This file was deleted.