lbry-desktop/ui/page/embedWrapper/index.js
jessop 33672a789b app plays embed in iframe
make player full screen and prepared for overlay actions

small changes

cleanup
2020-01-28 10:20:54 -05:00

26 lines
704 B
JavaScript

import { connect } from 'react-redux';
import EmbedWrapperPage from './view';
import { doResolveUri, makeSelectClaimForUri } from 'lbry-redux';
import { generateStreamUrl } from 'util/lbrytv';
const select = (state, props) => {
const PROTOCOL = 'lbry://';
const { match } = props;
const { params } = match;
const { claimName, claimId } = params;
const uri = PROTOCOL + claimName + (claimId ? `#${claimId}` : '');
return {
uri,
claim: makeSelectClaimForUri(uri)(state),
streamUrl: generateStreamUrl(claimName, claimId),
};
};
const perform = dispatch => ({
resolveUri: uri => dispatch(doResolveUri(uri)),
});
export default connect(
select,
perform
)(EmbedWrapperPage);