Commit graph

284 commits

Author SHA1 Message Date
Bill Thornton
4937f2d60c Add random int utility function 2023-03-14 01:32:36 -04:00
Bill Thornton
0cec50c6aa
Merge pull request #4401 from thornbill/add-plugin-types
Add plugin types
2023-03-10 15:23:06 -05:00
Bill Thornton
3a784ad928
Merge pull request #4403 from thornbill/eslint-radix
Add eslint radix rule for parseInt
2023-03-10 15:22:32 -05:00
Dmitry Lyzo
2c4d065e0e Backport pull request #4362 from jellyfin/release-10.8.z
Fix subtitle offset reset when seeking progressive stream

Original-merge: af27e084d5fd6d7f0372b8f10a5eff339c73866c

Merged-by: Bill Thornton <thornbill@users.noreply.github.com>

Backported-by: crobibero <cody@robibe.ro>
2023-03-09 19:43:07 -05:00
Bill Thornton
082a8319fd Remove redundant inline eslint rules 2023-03-09 00:20:46 -05:00
Bill Thornton
329cf77c81 Add eslint radix rule for parseInt 2023-03-09 00:20:11 -05:00
Bill Thornton
64ecc3eae7 Add plugin types 2023-03-08 11:08:19 -05:00
Pier-Luc Ducharme
cf5d65d86e
Simplify code with object shorthand syntax 2023-03-07 23:24:12 -05:00
Pier-Luc Ducharme
6544b7c698
Refactor playbackmanager to follow max-params rule 2023-03-07 23:19:16 -05:00
James Raspass
bd9d3e5f65 Remove old Emby (3.x) version checks
As per https://trello.com/c/sA25wd46/8-remove-old-emby-3x-version-checks
2023-03-06 19:23:47 +00:00
Ivan Schurawel
0ebf6c6899 chore: simplify valid secondary track checks 2023-02-21 09:16:32 -05:00
Ivan Schurawel
ab75013d60 Revert "fix: ensure secondary index is valid"
This reverts commit 01dfad4996d2bdc96a8506b6d0c4542bfd15bc3b.
2023-02-21 09:16:32 -05:00
Ivan Schurawel
698abb929b Revert "fix: check if primary supports secondary track"
This reverts commit e3e0348daeded50ed641c8def9a2619aff4f49bf.
2023-02-21 09:16:32 -05:00
Ivan Schurawel
3d3a0c43b3 chore: ensure check has valid track 2023-02-21 09:16:32 -05:00
Ivan Schurawel
50eb5f277d fix: check if primary supports secondary track 2023-02-21 09:16:32 -05:00
Ivan Schurawel
3c0ace3386 fix: ensure secondary index is valid 2023-02-21 09:16:32 -05:00
Ivan Schurawel
95a705a893 Update src/components/playback/playbackmanager.js
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
2023-02-21 09:16:32 -05:00
Ivan Schurawel
89ec4cf9cf chore: implement feedback 2023-02-21 09:16:32 -05:00
Ivan Schurawel
c74c0cddde chore: clear and set secondary track for continued plays 2023-02-21 09:16:32 -05:00
Ivan Schurawel
2a1ff26ad9 clean up code
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
2023-02-21 09:16:32 -05:00
Ivan Schurawel
5a217ca084 set secondary sub index after player succeeds
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
2023-02-21 09:16:32 -05:00
Ivan Schurawel
e5c05b4ebc Update error logging in src/components/playback/playbackmanager.js src/components/playback/playbackmanager.js
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
2023-02-21 09:16:32 -05:00
Ivan Schurawel
c68d01a0f0 Update error logging in src/components/playback/playbackmanager.js
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
2023-02-21 09:16:32 -05:00
Ivan Schurawel
69265e2118 Update src/components/playback/playbackmanager.js
Update error logging

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
2023-02-21 09:16:32 -05:00
Ivan Schurawel
a50fae3b7d chore: simplify/refactor to reuse existing method 2023-02-21 09:16:32 -05:00
Ivan Schurawel
b1e397c4bc fix: use correct stream, code safety, race conditions, update css 2023-02-21 09:16:32 -05:00
Ivan Schurawel
abc663f6f6 fix: update ssa/ass checks, custom track location, offsets 2023-02-21 09:16:32 -05:00
Ivan Schurawel
9ddafb063b fix: limit secondary to non-SSA/ASS subtitles 2023-02-21 09:16:32 -05:00
Ivan Schurawel
348de5ac7f feat: resume secondary track for current session 2023-02-21 09:16:32 -05:00
Ivan Schurawel
145aea184f feat: add native secondary subtitle support 2023-02-21 09:16:32 -05:00
Dmitry Lyzo
abed235b50 Backport pull request #4263 from jellyfin/release-10.8.z
Fix change audio track

Original-merge: 9139153d16e39c40d068435fe642925a2d7a66a3

Merged-by: Bill Thornton <thornbill@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2023-01-22 14:08:02 -05:00
Dmitry Lyzo
5e6de2d7db Backport pull request #4243 from jellyfin/release-10.8.z
Fix HTML escaping in MediaSession and on remote page

Original-merge: ae907cd8a6d2114405f9f9d4d1ce502c10d6a0e8

Merged-by: Bill Thornton <thornbill@users.noreply.github.com>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2023-01-22 14:07:08 -05:00
Rob Farraher
6c4a3ec6f1 Add getAdditionalParts method to playbackmanager
Adds support for seamless playback of multipart Movies.
When a movie with an additional part is played,
enqueue the additional parts in the playlist.
2023-01-04 16:38:24 -05:00
Aimekram
832b9eaf4d fix: eslint no-shadow errors 2022-10-16 16:04:37 +02:00
Bill Thornton
0a0e45d155 Replace apiclient event bus with local version 2022-10-14 10:58:16 -04:00
Bill Thornton
e0013915fd Enable eslint sonar prefer-object-literal 2022-10-12 14:44:10 -04:00
Bill Thornton
b426b6e2bf Fix sonarjs prefer-single-boolean-return 2022-10-11 03:11:41 -04:00
Bill Thornton
5e4eca6ae9 Fix sonarjs no-redundant-jump 2022-10-08 02:50:20 -04:00
Bill Thornton
f20a0e447c Fix redundant assignment issue from sonar 2022-10-04 16:27:11 -04:00
Bill Thornton
b7b60e6bd0
Merge pull request #3987 from dmitrylyzo/fix-dialog-closing
Fix dialog closing flow
2022-10-04 09:35:53 -04:00
Dmitry Lyzo
aa2fd79e74 fix dialog closing flow 2022-10-04 14:23:39 +03:00
Bill Thornton
1f4e65822b Fix sonarjs no-collapsible-if 2022-10-03 14:26:16 -04:00
Ivan Schurawel
20fca0768a fix: set html player actionsheet to resolve on click 2022-09-13 18:12:32 -04:00
Joshua M. Boniface
5312358f91 Merge pull request #3721 from Shadowghost/fix-stream-autoselect
(cherry picked from commit d967ce860c1d7ef3ac97a9c1f3c45b4b02e38a06)
Signed-off-by: Bill Thornton <billt2006@gmail.com>
2022-06-29 01:05:05 -04:00
Joshua M. Boniface
e6b31e3e85 Merge pull request #3668 from dmitrylyzo/show-play-settings
(cherry picked from commit 0701c4dff395bde4e87b99155d2f8de74f82b71c)
Signed-off-by: crobibero <cody@robibe.ro>
2022-06-10 23:44:16 -04:00
Bill Thornton
0db3472cc6 Merge pull request #3614 from dmitrylyzo/fix-undefined-streaminfo-url
Check undefined streamInfo.url

(cherry picked from commit 76ca94094bc440838624bea6af104a2c75905d21)
Signed-off-by: crobibero <cody@robibe.ro>
2022-05-20 18:38:52 -04:00
Bill Thornton
c74712e13f Merge pull request #3543 from Shadowghost/strm-display-fix
(cherry picked from commit 4792631f065a169ff0c7cccc251577a2ecf2e9a7)
Signed-off-by: crobibero <cody@robibe.ro>
2022-05-20 18:36:37 -04:00
Ryan Hartzell
d895a4fc6a add eslint no-nested-ternary rule and fix violations 2022-04-27 16:06:24 -07:00
Dmitry Lyzo
93d3458fd0 Fix old streamInfo on stream change
When the client changes the stream (fail to play) `streamInfo`
contains the old play session and the next progress report
will update the wrong session. The server then responds with
the wrong playback method until the next progress report.

Update `streamInfo` before playback start so that the data
is up to date.
2022-03-15 23:40:12 +03:00
Dmitry Lyzo
59adbc348a Escape HTML 2022-03-06 13:29:14 +03:00