Commit a9fbd0b4 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): use guid vs entity_guid

1 merge request!598add 1080p resolution for pro users
Pipeline #93488811 running with stages
......@@ -75,13 +75,12 @@ export class MediaTheatreComponent {
const sources = [
{
res: '720',
uri:
'api/v1/media/' + this.object.entity_guid + '/play?s=modal&res=720',
uri: 'api/v1/media/' + this.object.guid + '/play?s=modal&res=720',
type: 'video/mp4',
},
{
res: '360',
uri: 'api/v1/media/' + this.object.entity_guid + '/play?s=modal',
uri: 'api/v1/media/' + this.object.guid + '/play?s=modal',
type: 'video/mp4',
},
];
......@@ -89,8 +88,7 @@ export class MediaTheatreComponent {
if (this.object.flags.full_hd) {
sources.push({
res: '1080',
uri:
'api/v1/media/' + this.object.entity_guid + '/play?s=modal&res=1080',
uri: 'api/v1/media/' + this.object.guid + '/play?s=modal&res=1080',
type: 'video/mp4',
});
}
......@@ -100,12 +98,12 @@ export class MediaTheatreComponent {
get videoTorrentSrc() {
const sources = [
{ res: '720', key: this.object.entity_guid + '/720.mp4' },
{ res: '360', key: this.object.entity_guid + '/360.mp4' },
{ res: '720', key: this.object.guid + '/720.mp4' },
{ res: '360', key: this.object.guid + '/360.mp4' },
];
if (this.object.flags.full_hd) {
sources.push({ res: '1080', key: this.object.entity_guid + '/1080.mp4' });
sources.push({ res: '1080', key: this.object.guid + '/1080.mp4' });
}
return sources;
......
Please register or to comment