lib_item returned from usePlayer

This commit is contained in:
nklhrstv 2020-03-20 14:25:52 +02:00
parent 9411e6866b
commit 7af190a981

View file

@ -6,7 +6,8 @@ const initPlayerState = () => ({
selected: null,
meta_resource: null,
subtitles_resources: [],
next_video: null
next_video: null,
lib_item: null
});
const mapPlayerStateWithCtx = (player, ctx) => {
@ -60,11 +61,13 @@ const mapPlayerStateWithCtx = (player, ctx) => {
};
});
const next_video = player.next_video;
const lib_item = player.lib_item;
return {
selected,
meta_resource,
subtitles_resources,
next_video
next_video,
lib_item
};
};