mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
not needed rewind removed from player
This commit is contained in:
parent
a7feff9458
commit
53954876cd
1 changed files with 1 additions and 10 deletions
|
|
@ -18,7 +18,7 @@ const useSettings = require('./useSettings');
|
|||
const styles = require('./styles');
|
||||
|
||||
const Player = ({ urlParams, queryParams }) => {
|
||||
const { core, chromecast } = useServices();
|
||||
const { chromecast } = useServices();
|
||||
const [forceTranscoding, maxAudioChannels] = React.useMemo(() => {
|
||||
return [
|
||||
queryParams.has('forceTranscoding'),
|
||||
|
|
@ -96,15 +96,6 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
}, []);
|
||||
const onEnded = React.useCallback(() => {
|
||||
pushToLibrary();
|
||||
if (player.libraryItem !== null) {
|
||||
core.transport.dispatch({
|
||||
action: 'Ctx',
|
||||
args: {
|
||||
action: 'RewindLibraryItem',
|
||||
args: player.libraryItem._id
|
||||
}
|
||||
});
|
||||
}
|
||||
if (player.nextVideo !== null) {
|
||||
window.location.replace(
|
||||
typeof player.nextVideo.deepLinks.player === 'string' ?
|
||||
|
|
|
|||
Loading…
Reference in a new issue