Commit 21145c55 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): shouldnt depend on custom_data

1 merge request!528WIP: (feat): Minds Pro
Pipeline #80710251 running with stages
......@@ -52,18 +52,18 @@
[isModal]="true"
[autoplay]="true"
[muted]="false"
[poster]="entity.custom_data.thumbnail_src"
[poster]="entity.thumbnail_src"
[src]="[
{
res: '360',
uri: 'api/v1/media/' + entity.custom_data.guid + '/play',
uri: 'api/v1/media/' + entity.entity_guid + '/play',
type: 'video/mp4'
}
]"
[guid]="entity.custom_data.guid"
[guid]="entity.entity_guid"
[playCount]="entity['play:count']"
[torrent]="[
{ res: '360', key: entity.custom_data.guid + '/360.mp4' }
{ res: '360', key: entity.entity_guid + '/360.mp4' }
]"
(videoCanPlayThrough)="isLoaded()"
[@slowFadeAnimation]="isLoading ? 'out' : 'in'"
......
......@@ -117,7 +117,6 @@ export class MediaModalComponent implements OnInit, OnDestroy {
this.entity.title ||
`${this.entity.ownerObj.name}'s post`;
this.entity.guid = this.entity.entity_guid || this.entity.guid;
this.thumbnail = `${this.minds.cdn_url}fs/v1/thumbnail/${this.entity.entity_guid}/xlarge`;
switch (this.entity.custom_type) {
......@@ -125,6 +124,7 @@ export class MediaModalComponent implements OnInit, OnDestroy {
this.contentType = 'video';
this.entity.width = this.entity.custom_data.width;
this.entity.height = this.entity.custom_data.height;
this.entity.thumbnail_src = this.entity.custom_data.thumbnail_src;
break;
case 'batch':
this.contentType = 'image';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment