mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-31 01:11:26 +00:00
13 lines
528 B
JavaScript
13 lines
528 B
JavaScript
import * as settings from 'constants/settings';
|
|
import { createSelector } from 'reselect';
|
|
import { makeSelectClaimForUri } from 'redux/selectors/claims';
|
|
|
|
const _selectState = state => state.media || {};
|
|
|
|
export const selectMediaPaused = createSelector(_selectState, state => state.paused);
|
|
|
|
export const makeSelectMediaPositionForUri = uri =>
|
|
createSelector(_selectState, makeSelectClaimForUri(uri), (state, claim) => {
|
|
const outpoint = `${claim.txid}:${claim.nout}`;
|
|
return state.positions[outpoint] || null;
|
|
});
|