forked from CIT/Vmeda.Online
		
	MOBILE-3320 ios: Fix video posters not displayed sometimes
This commit is contained in:
		
							parent
							
								
									0075a3880f
								
							
						
					
					
						commit
						4a34dab790
					
				@ -277,6 +277,13 @@ export class CoreExternalContentDirective implements AfterViewInit, OnChanges {
 | 
			
		||||
                this.loaded = false;
 | 
			
		||||
                this.waitForLoad();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (targetAttr == 'poster') {
 | 
			
		||||
                // Setting the poster immediately doesn't display it in some cases. Set it to empty and then set the right one.
 | 
			
		||||
                this.element.setAttribute(targetAttr, '');
 | 
			
		||||
                await CoreUtils.nextTick();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            this.element.setAttribute(targetAttr, finalUrl);
 | 
			
		||||
            this.element.setAttribute('data-original-' + targetAttr, url);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user