fix link for api
This commit is contained in:
parent
f7d975b7bb
commit
0694b86e71
2 changed files with 11 additions and 13 deletions
|
@ -33,7 +33,7 @@ class FilePrice extends React.PureComponent<Props> {
|
||||||
const { costInfo, fetchCostInfo, uri, fetching, claim } = props;
|
const { costInfo, fetchCostInfo, uri, fetching, claim } = props;
|
||||||
|
|
||||||
if (costInfo === undefined && !fetching && claim) {
|
if (costInfo === undefined && !fetching && claim) {
|
||||||
// fetchCostInfo(uri);
|
fetchCostInfo(uri);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,9 @@
|
||||||
import type { Claim } from 'types/claim';
|
import type { Claim } from 'types/claim';
|
||||||
import React, { Suspense } from 'react';
|
import React, { Suspense } from 'react';
|
||||||
import { stopContextMenu } from 'util/context-menu';
|
import { stopContextMenu } from 'util/context-menu';
|
||||||
import(
|
import(/* webpackChunkName: "videojs" */
|
||||||
/* webpackChunkName: "videojs" */
|
/* webpackPreload: true */
|
||||||
/* webpackPreload: true */
|
'video.js/dist/video-js.css');
|
||||||
'video.js/dist/video-js.css'
|
|
||||||
);
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
source: {
|
source: {
|
||||||
|
@ -25,7 +23,9 @@ class AudioVideoViewer extends React.PureComponent<Props> {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const { contentType, poster, claim } = this.props;
|
const { contentType, poster, claim } = this.props;
|
||||||
|
|
||||||
const path = `https://api.lbry.tv/content/claims/${claim.name}/${claim.claim_id}/stream.mp4`;
|
const path = `https://api.piratebay.com/content/claims/${claim.name}/${
|
||||||
|
claim.claim_id
|
||||||
|
}/stream.mp4`;
|
||||||
const sources = [
|
const sources = [
|
||||||
{
|
{
|
||||||
src: path,
|
src: path,
|
||||||
|
@ -41,12 +41,10 @@ class AudioVideoViewer extends React.PureComponent<Props> {
|
||||||
sources,
|
sources,
|
||||||
};
|
};
|
||||||
|
|
||||||
import(
|
import(/* webpackChunkName: "videojs" */
|
||||||
/* webpackChunkName: "videojs" */
|
/* webpackMode: "lazy" */
|
||||||
/* webpackMode: "lazy" */
|
/* webpackPreload: true */
|
||||||
/* webpackPreload: true */
|
'video.js').then(videojs => {
|
||||||
'video.js'
|
|
||||||
).then(videojs => {
|
|
||||||
if (videojs.__esModule) {
|
if (videojs.__esModule) {
|
||||||
videojs = videojs.default;
|
videojs = videojs.default;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue