mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
initial player state adapted with the core
This commit is contained in:
parent
74a759802b
commit
119a0a653c
1 changed files with 7 additions and 1 deletions
|
|
@ -2,7 +2,13 @@ const React = require('react');
|
||||||
const { useModelState } = require('stremio/common');
|
const { useModelState } = require('stremio/common');
|
||||||
|
|
||||||
const initPlayerState = () => ({
|
const initPlayerState = () => ({
|
||||||
selected: null,
|
selected: {
|
||||||
|
transport_url: null,
|
||||||
|
type_name: null,
|
||||||
|
id: null,
|
||||||
|
video_id: null,
|
||||||
|
stream: null,
|
||||||
|
},
|
||||||
meta_resource: null,
|
meta_resource: null,
|
||||||
subtitles_resources: [],
|
subtitles_resources: [],
|
||||||
next_video: null
|
next_video: null
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue