stremiok 2.1.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +97 -0
- package/README.md +10 -9
- package/config.xml +1 -1
- package/css/style.css +27 -0
- package/index.html +34 -31
- package/js/app.js +25 -10
- package/js/epg.js +320 -0
- package/js/iptv.js +198 -25
- package/js/keys.js +2 -0
- package/js/player-controls.js +50 -8
- package/js/player-core.js +112 -12
- package/js/player-lang.js +66 -5
- package/js/player-store.js +23 -2
- package/js/player-subs.js +57 -13
- package/js/stremio.js +70 -6
- package/js/trakt.js +1 -0
- package/js/util.js +24 -13
- package/js/view-core.js +128 -55
- package/js/view-detail.js +1 -1
- package/js/view-guide.js +371 -0
- package/js/view-home.js +148 -33
- package/js/view-settings.js +241 -90
- package/js/views.js +4 -3
- package/js/ytplay.js +53 -5
- package/package.json +2 -1
- package/service/index.js +863 -46
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
What changed in each version of StremioK, newest first. How everything works is in the
|
|
4
|
+
[user guide](docs/USER-GUIDE.md).
|
|
5
|
+
|
|
6
|
+
## 2.2.1 — 2026-10-24
|
|
7
|
+
- **Every language OpenSubtitles uses** (94, Indonesian among them, #1) for subtitles and audio:
|
|
8
|
+
to pick as your default, second choice or second subtitle, listed by name, and each track
|
|
9
|
+
shown by its language's name ("Pan" is Punjabi).
|
|
10
|
+
- **Only my languages** (Settings › Playback › Subtitles, *Off* by default): the subtitle menu
|
|
11
|
+
lists just your languages, and tracks that don't say theirs; *Other languages* at its end has
|
|
12
|
+
the rest.
|
|
13
|
+
- **Shorter settings pages:** the subtitles' size, color, background, edge, position and font are
|
|
14
|
+
on a page of their own (*Appearance*); Source ranking keeps *Played before first* above its
|
|
15
|
+
order, with *Filters* and *When you press Play* as pages of their own.
|
|
16
|
+
- **Hold OK on a program in the Guide tab:** *▶ Watch now*, *★ Add to / Remove from favorites*
|
|
17
|
+
for its channel, and *Find in your addons* for that program.
|
|
18
|
+
- **Fixed:** back on the Guide tab after CH+ / CH− lands on the channel you ended on, at the time
|
|
19
|
+
now, instead of the first channel played.
|
|
20
|
+
|
|
21
|
+
## 2.2.0 — 2026-10-23
|
|
22
|
+
- **A TV guide for your IPTV channels:** what's on now and next on each channel's card, in
|
|
23
|
+
Home's details strip and while a channel plays, and its schedule when you hold OK on it. From
|
|
24
|
+
the guide a playlist names, an Xtream account's own, or a *Guide link* you set (Settings ›
|
|
25
|
+
Content › IPTV).
|
|
26
|
+
- **A Guide tab:** your channels as a grid across 2½ hours that follows the clock; OK on what's
|
|
27
|
+
on now plays it, and CH+ / CH− then go through the Guide's channels. The remote's GUIDE key
|
|
28
|
+
opens it.
|
|
29
|
+
- **Guide-only channels** (`tvg-type="guide"`): a channel you watch elsewhere (a cable box, say)
|
|
30
|
+
on the Guide tab with its schedule; OK on a film finds it in your addons.
|
|
31
|
+
- **Xtream accounts:** add one with its server, username and password (checked with the server
|
|
32
|
+
first). Its channels play as MPEG-TS; *Format* switches the account to HLS, or one channel
|
|
33
|
+
while it plays (the player's menu), kept for that channel.
|
|
34
|
+
- **★ Favorite channels:** hold OK on a channel card, *Add to favorites*: a row of their own,
|
|
35
|
+
first on the IPTV and Guide tabs.
|
|
36
|
+
- **Closed captions on live channels:** captions inside an HLS channel's picture (CC1–CC4, the
|
|
37
|
+
kind VLC shows) are offered in the subtitle menu, and turn into subtitles when you pick them.
|
|
38
|
+
On an Xtream channel, switch *Format* to HLS for them.
|
|
39
|
+
- **In the player:** picture mode kept per channel; *Reload* and a *Sleep timer* in the menu;
|
|
40
|
+
the time of day at the top right.
|
|
41
|
+
- **More channels play:** more ways a playlist gives a channel's User-Agent and Referer, Xtream
|
|
42
|
+
channels that lead to YouTube, and channel logos from the TV guide.
|
|
43
|
+
- **Put the top menu in your own order:** Settings › Appearance › *Menu*.
|
|
44
|
+
- **The IPTV tab has live TV only:** a catalog of films or series sits on Movies or Series.
|
|
45
|
+
- **Fixes:** USB downloads checked part by part; a broken subtitle file or TV guide can't hold
|
|
46
|
+
the remote; a first playlist shows the IPTV tab at once.
|
|
47
|
+
|
|
48
|
+
## 2.1.0 — 2026-10-20
|
|
49
|
+
- **Live channels reconnect** when their connection drops, as often as *Reconnect live channels*
|
|
50
|
+
says (Settings › Playback › Seeking & buffering): Off, A few times or Keep trying.
|
|
51
|
+
- **Trakt:** your whole watched history is read again (Trakt now sends it a page at a time, and
|
|
52
|
+
shows without their episodes unless asked), and an episode you left part-way no longer hides
|
|
53
|
+
the show's next one once you've watched past it, on any device.
|
|
54
|
+
- **Addons:** turn one off or on, as you can a playlist, each shown with its logo (Settings ›
|
|
55
|
+
Content › Addons); "No sources found" says why, addon by addon; an addon's error page is no
|
|
56
|
+
longer shown as a title.
|
|
57
|
+
- **A YouTube tab on Home:** StremioK's YouTube began as a way to watch TV channels that stream
|
|
58
|
+
on YouTube rather than through an M3U playlist, so its catalogs sat in the IPTV tab. Now that
|
|
59
|
+
it also covers channels, playlists, searches and other addons' YouTube catalogs, it has a tab
|
|
60
|
+
of its own, between Sports and Local.
|
|
61
|
+
- **Reordering:** ⇈ / ⇊, beside ▲ / ▼, move an item straight to the top or bottom of any list you
|
|
62
|
+
put in order: addons, playlists, YouTube catalogs, Home feeds, Search results and source
|
|
63
|
+
ranking.
|
|
64
|
+
- **Playback:** a source counts as started only once it plays, so one that fails right after
|
|
65
|
+
opening gives way to the next; video quality for streams that need their own headers; skip
|
|
66
|
+
times from TheIntroDB's new API.
|
|
67
|
+
- **A faster start:** your addons don't wait for the IPTV playlists, and Home's rows appear as
|
|
68
|
+
each is ready.
|
|
69
|
+
- **Security and privacy fixes:** USB drives and downloads; the TV itself off-limits to
|
|
70
|
+
downloads and live relays; AIOManager's key kept to its own server, and addons you added
|
|
71
|
+
yourself left alone by its sync.
|
|
72
|
+
|
|
73
|
+
## 2.0.0 — 2026-10-17
|
|
74
|
+
The first public version of StremioK, a Stremio-addon client for Samsung Tizen TVs (Tizen 3.0
|
|
75
|
+
and later). What it does is in the [README](README.md#highlights); installing it, in the
|
|
76
|
+
[installation guide](docs/INSTALL.md).
|
|
77
|
+
|
|
78
|
+
- **Your addons:** catalogs, title details, sources and subtitles from the Stremio addons you add
|
|
79
|
+
by link, or import from your Stremio account, AIOManager or a configuration file.
|
|
80
|
+
- **Finding something to watch:** Home with Watching, Calendar, Movies, Series, IPTV, Radio,
|
|
81
|
+
Sports and Local tabs; Discover; Search across every addon that can search, and people by
|
|
82
|
+
name.
|
|
83
|
+
- **Title pages:** ranked sources with ▶ Play best, filters by addon and resolution, trailers,
|
|
84
|
+
ratings, Cast & more, collections, episode pages and an episode ratings grid.
|
|
85
|
+
- **Playing:** resume, skip intros, recaps and credits, the next episode on its own, the next
|
|
86
|
+
source when one doesn't start, subtitles from addons, the file, YouTube and your USB drive,
|
|
87
|
+
with timing and sync by ear, audio tracks remembered, private viewing.
|
|
88
|
+
- **Trakt:** watched marks and viewing progress sync with Trakt; Up next and watchlist rows
|
|
89
|
+
are read from your account.
|
|
90
|
+
- **IPTV and radio** from your M3U playlists; **YouTube** channels, playlists, searches and live
|
|
91
|
+
streams, with SponsorBlock, DeArrow, chapters and captions; **a USB drive's** videos matched
|
|
92
|
+
to their titles, and downloads to it.
|
|
93
|
+
- **Documentation** for every reader: the [user guide](docs/USER-GUIDE.md), a
|
|
94
|
+
[settings reference](docs/SETTINGS.md), [troubleshooting](docs/TROUBLESHOOTING.md),
|
|
95
|
+
[privacy and data](docs/PRIVACY.md), a [technical reference](docs/TECHNICAL-REFERENCE.md)
|
|
96
|
+
and the [developer guide](docs/DEVELOPER-GUIDE.md). Settings' on-screen hints say the effect
|
|
97
|
+
in a sentence or two.
|
package/README.md
CHANGED
|
@@ -16,13 +16,14 @@ video through Samsung's AVPlay API.
|
|
|
16
16
|
- **[Changelog](CHANGELOG.md)**: what changed in each version.
|
|
17
17
|
- **[Developer guide](docs/DEVELOPER-GUIDE.md)**: how it's put together, and running it in a
|
|
18
18
|
browser.
|
|
19
|
+
- **[Security policy](docs/SECURITY.md)**: reporting a vulnerability, privately.
|
|
19
20
|
|
|
20
21
|
## Highlights
|
|
21
22
|
|
|
22
23
|
- **Your addons:** catalogs, details, sources and subtitles from the Stremio addons you add
|
|
23
24
|
(Cinemeta and OpenSubtitles to start with), in the order you choose.
|
|
24
25
|
- **Home** with Watching (Continue Watching, synced with **Trakt** if you connect it), Movies,
|
|
25
|
-
Series, IPTV, Radio, Sports and Local tabs; **Discover** to browse any catalog in full;
|
|
26
|
+
Series, IPTV, Guide, Radio, Sports, YouTube and Local tabs; **Discover** to browse any catalog in full;
|
|
26
27
|
**Search** across every addon that can search, and people by name.
|
|
27
28
|
- **Title pages:** ranked sources with **▶ Play best**, trailers, ratings (IMDb, Rotten
|
|
28
29
|
Tomatoes, Metacritic… with your own API keys), seasons and episodes with their own pages,
|
|
@@ -30,7 +31,7 @@ video through Samsung's AVPlay API.
|
|
|
30
31
|
- **The player:** resume where you stopped, skip intros, recaps and credits, next episode,
|
|
31
32
|
subtitles (addons', the file's own, and your own files on a USB drive) with your choice of look, audio
|
|
32
33
|
tracks remembered, switching source mid-playback, private viewing.
|
|
33
|
-
- **IPTV and radio** from your M3U playlists, with CH+ / CH−.
|
|
34
|
+
- **IPTV and radio** from your M3U playlists and Xtream accounts, with CH+ / CH−.
|
|
34
35
|
- **YouTube:** live channels, trailers, and your own YouTube channels, playlists and searches,
|
|
35
36
|
with SponsorBlock, DeArrow, chapters and captions.
|
|
36
37
|
- **Local:** the videos on a USB drive, matched to their titles.
|
|
@@ -55,7 +56,8 @@ Three ways, all covered step by step in the **[installation guide](docs/INSTALL.
|
|
|
55
56
|
2. **API keys**, optional: your own TMDB, OMDb and MDBList keys add ratings, *Cast & more*,
|
|
56
57
|
*where to watch* and episode trailers.
|
|
57
58
|
3. **Trakt**, optional: connect your account to share watched marks and Continue Watching.
|
|
58
|
-
4. **IPTV**, optional: your M3U playlist links
|
|
59
|
+
4. **IPTV**, optional: your M3U playlist links, or an Xtream account (its server, username and
|
|
60
|
+
password).
|
|
59
61
|
5. **A USB drive**, optional: plug it in and the Local tab appears.
|
|
60
62
|
|
|
61
63
|
[Getting started](docs/USER-GUIDE.md#getting-started) in the user guide walks through each.
|
|
@@ -73,17 +75,16 @@ a direct HTTP(S)/HLS/DASH URL, and this app embeds no torrent or debrid engine.
|
|
|
73
75
|
> shows that notice on it); its results are rent/buy/subscription *links to external
|
|
74
76
|
> services*, not video URLs. Add stream addons that return HTTP/HLS URLs for actual playback.
|
|
75
77
|
|
|
76
|
-
The **IPTV** feature likewise hosts no content: you supply your own M3U playlist URLs
|
|
77
|
-
YouTube entries, the bundled service finds the video's stream; the video itself
|
|
78
|
-
straight from YouTube. No video or audio is kept: everything plays straight from its
|
|
79
|
-
unless you download it to your own USB drive. What StremioK does keep, on the TV, is
|
|
80
|
-
progress, settings and copies that let it start faster (see
|
|
78
|
+
The **IPTV** feature likewise hosts no content: you supply your own M3U playlist URLs or Xtream
|
|
79
|
+
accounts. For YouTube entries, the bundled service finds the video's stream; the video itself
|
|
80
|
+
comes straight from YouTube. No video or audio is kept: everything plays straight from its
|
|
81
|
+
source, unless you download it to your own USB drive. What StremioK does keep, on the TV, is
|
|
82
|
+
your progress, settings and copies that let it start faster (see
|
|
81
83
|
[Privacy and data](docs/PRIVACY.md#what-stays-on-the-tv)).
|
|
82
84
|
|
|
83
85
|
## Known limitations
|
|
84
86
|
|
|
85
87
|
- AVPlay behavior varies by TV generation, codec and HLS provider.
|
|
86
|
-
- No TV guide (now / next) for IPTV channels yet.
|
|
87
88
|
- No torrent playback: sources need a direct HTTP(S)/HLS/DASH URL (e.g. through a debrid
|
|
88
89
|
addon).
|
|
89
90
|
- Home rows show a catalog's first page (up to 30 titles); Discover pages through the rest.
|
package/config.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"
|
|
3
|
-
id="http://stremiok.tizen/StremioKTizen" version="2.1
|
|
3
|
+
id="http://stremiok.tizen/StremioKTizen" version="2.2.1" viewmodes="maximized">
|
|
4
4
|
<tizen:application id="StremioK01.StremioK" package="StremioK01" required_version="3.0"/>
|
|
5
5
|
<content src="index.html"/>
|
|
6
6
|
<feature name="http://tizen.org/feature/screen.size.all"/>
|
package/css/style.css
CHANGED
|
@@ -513,3 +513,30 @@ html, body {
|
|
|
513
513
|
.src-s { background: #7b5bf5; }
|
|
514
514
|
.src-a { background: #0f9f8f; }
|
|
515
515
|
.src-c { background: #6b7280; }
|
|
516
|
+
/* an IPTV channel card: what's on now (its TV guide), and how far along it is, along its top (its name is at the bottom) */
|
|
517
|
+
.card-epg { position: absolute; left: 0; right: 0; top: 0; padding: 5px 8px 4px; background: rgba(10, 12, 18, 0.82); }
|
|
518
|
+
.card-epg-t { font-size: 15px; color: #e6e9ef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
519
|
+
.card-epg-bar { height: 3px; margin-top: 3px; background: rgba(255, 255, 255, 0.18); border-radius: 2px; overflow: hidden; }
|
|
520
|
+
.card-epg-fill { display: block; height: 100%; background: #818cf8; }
|
|
521
|
+
/* the Guide tab (js/view-guide.js): the hours along the top, then a row a channel; programs
|
|
522
|
+
placed by their time (left / width in %), what's on now lighter, a line at the time now */
|
|
523
|
+
.guide { padding: 0 60px 20px 60px; } /* (the same sides as Home's rows: .row-title, .row-scroller) */
|
|
524
|
+
.guide-head { display: flex; height: 34px; }
|
|
525
|
+
.guide-corner { width: 230px; flex: none; font-size: 17px; color: #8b93a5; line-height: 34px; }
|
|
526
|
+
.guide-hours { position: relative; flex: 1; }
|
|
527
|
+
.guide-time { position: absolute; top: 0; font-size: 17px; color: #aeb6c4; line-height: 34px; padding-left: 6px; border-left: 2px solid #2a3346; }
|
|
528
|
+
.guide-row { display: flex; height: 62px; margin-bottom: 6px; }
|
|
529
|
+
.guide-ch { width: 230px; flex: none; padding: 0 12px; font-size: 19px; font-weight: bold; line-height: 62px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #121722; border-radius: 8px 0 0 8px; }
|
|
530
|
+
.guide-track { position: relative; flex: 1; overflow: hidden; background: #0e1219; }
|
|
531
|
+
.guide-prog { position: absolute; top: 0; bottom: 0; padding: 0 10px; font-size: 18px; line-height: 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #161b26; border: 3px solid #0e1117; border-radius: 6px; color: #c7cbd4; }
|
|
532
|
+
.guide-prog.now { background: #222b3d; color: #fff; }
|
|
533
|
+
.guide-prog.guide-wait { color: #8b93a5; font-style: italic; } /* (a row whose programs are still being read) */
|
|
534
|
+
.guide-prog.focusable.focused { background: #818cf8; color: #0e1117; border-color: #fff; }
|
|
535
|
+
.guide-nowline { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #f87171; }
|
|
536
|
+
.guide-ch-logo { height: 34px; max-width: 56px; margin-right: 10px; vertical-align: middle; object-fit: contain; }
|
|
537
|
+
/* a program's picture (the TV guide), at the strip's right; its text kept clear of it */
|
|
538
|
+
.home-info-pic { position: absolute; right: 16px; top: 50%; height: 118px; width: 210px; margin-top: -59px; object-fit: cover; border-radius: 8px; }
|
|
539
|
+
.home-info.has-pic { padding-right: 240px; }
|
|
540
|
+
.home-info-pic.hidden { display: none; }
|
|
541
|
+
#osd-clock { position: fixed; top: 40px; right: 60px; font-size: 34px; font-weight: bold; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.9); } /* (the time of day, top right, while the bar shows) */
|
|
542
|
+
#osd-clock:empty { display: none; }
|
package/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=1920, height=1080, user-scalable=no">
|
|
6
6
|
<title>StremioK</title>
|
|
7
|
-
<link rel="stylesheet" href="css/style.css?v=2.1
|
|
7
|
+
<link rel="stylesheet" href="css/style.css?v=2.2.1">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<!-- CSS-applied sentinel (kept off-screen); app.js waits for its width before rendering -->
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
<div id="osd-chapter" class="hidden"></div>
|
|
33
33
|
<div id="osd-bar"><div id="osd-progress"></div><div id="osd-sponsor"></div><div id="osd-chapters"></div><div id="osd-buffer"></div><div id="osd-scrub-range" class="hidden"></div><div id="osd-scrub" class="hidden"><div id="osd-scrub-time"></div></div></div>
|
|
34
34
|
<div id="osd-times"><span id="osd-cur">00:00</span><span class="osd-right"><span id="osd-tags"></span><span id="osd-dur">00:00</span></span></div>
|
|
35
|
+
<div id="osd-clock"></div>
|
|
35
36
|
<div id="osd-hint">OK: Play/Pause ←/→: Seek RETURN: Back</div>
|
|
36
37
|
</div>
|
|
37
38
|
|
|
@@ -52,35 +53,37 @@
|
|
|
52
53
|
|
|
53
54
|
<!-- Load order matters: polyfills -> util -> iptv -> data -> input -> tvapps -> player parts -> player -> ytplay -> view parts -> views -> app -->
|
|
54
55
|
<!-- ?v= busts the TV webview cache on every release (keep in sync with package.json) -->
|
|
55
|
-
<script src="js/polyfills.js?v=2.1
|
|
56
|
-
<script src="js/util.js?v=2.1
|
|
57
|
-
<script src="js/iptv.js?v=2.1
|
|
58
|
-
<script src="js/
|
|
59
|
-
<script src="js/
|
|
60
|
-
<script src="js/
|
|
61
|
-
<script src="js/
|
|
62
|
-
<script src="js/
|
|
63
|
-
<script src="js/
|
|
64
|
-
<script src="js/
|
|
65
|
-
<script src="js/player-
|
|
66
|
-
<script src="js/player-
|
|
67
|
-
<script src="js/player-
|
|
68
|
-
<script src="js/player-
|
|
69
|
-
<script src="js/player-
|
|
70
|
-
<script src="js/player-
|
|
71
|
-
<script src="js/player.js?v=2.1
|
|
72
|
-
<script src="js/
|
|
73
|
-
<script src="js/
|
|
74
|
-
<script src="js/
|
|
75
|
-
<script src="js/
|
|
76
|
-
<script src="js/
|
|
77
|
-
<script src="js/view-
|
|
78
|
-
<script src="js/view-
|
|
79
|
-
<script src="js/view-
|
|
80
|
-
<script src="js/view-
|
|
81
|
-
<script src="js/view-
|
|
82
|
-
<script src="js/
|
|
83
|
-
<script src="js/
|
|
84
|
-
<script src="js/
|
|
56
|
+
<script src="js/polyfills.js?v=2.2.1"></script>
|
|
57
|
+
<script src="js/util.js?v=2.2.1"></script>
|
|
58
|
+
<script src="js/iptv.js?v=2.2.1"></script>
|
|
59
|
+
<script src="js/epg.js?v=2.2.1"></script>
|
|
60
|
+
<script src="js/youtube.js?v=2.2.1"></script>
|
|
61
|
+
<script src="js/stremio.js?v=2.2.1"></script>
|
|
62
|
+
<script src="js/trakt.js?v=2.2.1"></script>
|
|
63
|
+
<script src="js/keys.js?v=2.2.1"></script>
|
|
64
|
+
<script src="js/focus.js?v=2.2.1"></script>
|
|
65
|
+
<script src="js/tvapps.js?v=2.2.1"></script>
|
|
66
|
+
<script src="js/player-core.js?v=2.2.1"></script>
|
|
67
|
+
<script src="js/player-store.js?v=2.2.1"></script>
|
|
68
|
+
<script src="js/player-lang.js?v=2.2.1"></script>
|
|
69
|
+
<script src="js/player-quality.js?v=2.2.1"></script>
|
|
70
|
+
<script src="js/player-subs.js?v=2.2.1"></script>
|
|
71
|
+
<script src="js/player-audio.js?v=2.2.1"></script>
|
|
72
|
+
<script src="js/player-controls.js?v=2.2.1"></script>
|
|
73
|
+
<script src="js/player.js?v=2.2.1"></script>
|
|
74
|
+
<script src="js/ytplay.js?v=2.2.1"></script>
|
|
75
|
+
<script src="js/local.js?v=2.2.1"></script>
|
|
76
|
+
<script src="js/downloads.js?v=2.2.1"></script>
|
|
77
|
+
<script src="js/stremio-account.js?v=2.2.1"></script>
|
|
78
|
+
<script src="js/view-core.js?v=2.2.1"></script>
|
|
79
|
+
<script src="js/view-home.js?v=2.2.1"></script>
|
|
80
|
+
<script src="js/view-guide.js?v=2.2.1"></script>
|
|
81
|
+
<script src="js/view-detail.js?v=2.2.1"></script>
|
|
82
|
+
<script src="js/view-search.js?v=2.2.1"></script>
|
|
83
|
+
<script src="js/view-settings.js?v=2.2.1"></script>
|
|
84
|
+
<script src="js/view-discover.js?v=2.2.1"></script>
|
|
85
|
+
<script src="js/views.js?v=2.2.1"></script>
|
|
86
|
+
<script src="js/app.js?v=2.2.1"></script>
|
|
87
|
+
<script src="js/hubpreview.js?v=2.2.1"></script>
|
|
85
88
|
</body>
|
|
86
89
|
</html>
|
package/js/app.js
CHANGED
|
@@ -73,14 +73,17 @@ var App = (function () {
|
|
|
73
73
|
// Close a live player directly back to the screen/card that launched it. The
|
|
74
74
|
// originating screen stays mounted while the player is open, so restoring its
|
|
75
75
|
// saved focus node also preserves the grid's horizontal and vertical scroll.
|
|
76
|
-
// focusNode: the card to land on instead (the channel you switched to with CH+/CH−)
|
|
77
|
-
|
|
76
|
+
// focusNode: the card to land on instead (the channel you switched to with CH+/CH−); liveId:
|
|
77
|
+
// that channel, for the Guide tab, which lands on it at the time now (Views.guideBackOn: its
|
|
78
|
+
// cells from when it was played may be gone, or show hours long past).
|
|
79
|
+
function returnFromLive(focusNode, liveId) {
|
|
78
80
|
var f = _stack.pop();
|
|
79
81
|
if (!f) { goHome(); return; }
|
|
80
82
|
if (f.screen !== _current) { abandon(_current); }
|
|
81
83
|
showScreen(f.screen);
|
|
84
|
+
var guide = liveId && f.screen === 'home' && Views.guideBackOn ? Views.guideBackOn(liveId) : null;
|
|
82
85
|
var alt = focusNode && document.documentElement.contains(focusNode) ? focusNode : null;
|
|
83
|
-
Focus.setScope(screenEl(f.screen), alt || f.focus);
|
|
86
|
+
Focus.setScope(screenEl(f.screen), guide || alt || f.focus);
|
|
84
87
|
}
|
|
85
88
|
|
|
86
89
|
// After a screen is drawn, focus must be on it. A drawing path that doesn't put it there
|
|
@@ -181,6 +184,7 @@ var App = (function () {
|
|
|
181
184
|
if (nowb - _lastBackAt < 500) { return true; }
|
|
182
185
|
_lastBackAt = nowb;
|
|
183
186
|
}
|
|
187
|
+
if (action === 'GUIDE') { guideKey(); return true; }
|
|
184
188
|
if (Player.isActive()) { return Player.handleKey(action); } // (a held OK too: the player's Cast & more has a menu behind it)
|
|
185
189
|
if (Views.moveKey && Views.moveKey(action)) { return true; } // (a Continue Watching card being moved)
|
|
186
190
|
switch (action) {
|
|
@@ -213,16 +217,27 @@ var App = (function () {
|
|
|
213
217
|
}
|
|
214
218
|
}
|
|
215
219
|
|
|
216
|
-
//
|
|
217
|
-
// Not over a popup, nor
|
|
220
|
+
// The remote's GUIDE key: the Guide tab (once a TV guide is read: it's in the top menu), the
|
|
221
|
+
// player closed first. Not over a popup, nor while an addon's link is typed.
|
|
222
|
+
function guideKey() {
|
|
223
|
+
var on = (Views.menuItems ? Views.menuItems() : []).some(function (m) { return m.key === 'guide'; });
|
|
224
|
+
if (!on) { U.toast('No TV guide yet (Settings › Content › IPTV › Guide link)', 3000); return; }
|
|
225
|
+
if (Player.isActive()) { Player.exit(); }
|
|
226
|
+
else if (Views.isModalOpen() || _current === 'addaddon') { return; }
|
|
227
|
+
goHome('guide');
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Number keys away from the player: 0 Settings, 1–9 the top menu's items as they show (1:
|
|
231
|
+
// Watching, the rest in your order: Views.menuItems). Not over a popup, nor on a page where
|
|
232
|
+
// something's being typed.
|
|
218
233
|
function numberKey(n) {
|
|
219
234
|
if (Views.isModalOpen() || _current === 'addaddon') { return; }
|
|
220
235
|
if (n === 0) { if (_current !== 'settings') { openSettings(); } return; }
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
if (
|
|
224
|
-
else if (
|
|
225
|
-
else
|
|
236
|
+
var m = (Views.menuItems ? Views.menuItems() : [])[n - 1];
|
|
237
|
+
if (!m) { return; }
|
|
238
|
+
if (m.key === 'discover') { if (_current !== 'discover') { openDiscover(); } }
|
|
239
|
+
else if (m.key === 'search') { if (_current !== 'search') { openSearch(); } }
|
|
240
|
+
else { goHome(m.key); }
|
|
226
241
|
}
|
|
227
242
|
|
|
228
243
|
function actualStart() {
|