Add back lbry.tv view analytics #2505

Merged
tzarebczan merged 1 commit from analytics-tv into master 2019-05-22 21:34:57 +02:00
Showing only changes of commit 4b237df2fe - Show all commits

View file

@ -23,6 +23,10 @@ class AudioVideoViewer extends React.PureComponent<Props> {
componentDidMount() {
const { contentType, poster, claim } = this.props;
const { name, claim_id: claimId, txid, nout } = claim;
// Quick fix to get file view events on lbry.tv
// Will need to be changed to include time to start
analytics.apiLogView(`${name}#${claimId}`, `${txid}:${nout}`, claimId);
const path = `https://api.piratebay.com/content/claims/${claim.name}/${claim.claim_id}/stream.mp4`;
const sources = [