title: Some video file extensions are not working for video preview in angular 4?
body: <p>I am working on video preview issue. I am able to show the mp4 file extension video preview. But remaining all video file extensions mpeg, m4v, wmv..etc are not working for video preview code.</p>
  
  <p>I added the all file types in the video src html code, but its working for only mp4 videos.I am using the <a href="https://angular.io/api/platform-browser/DomSanitizer" rel="nofollow noreferrer">DomSanitizer </a>angular concept for this preview.
  I have created the plunker <a href="https://plnkr.co/edit/gimZn2RudLYgRWxLrukM?p=preview" rel="nofollow noreferrer">Video Preview plunker</a>, you can check my code in the plunker. I got this code from ng2  file upload plugin <a href="https://github.com/valor-software/ng2-file-upload/issues/158" rel="nofollow noreferrer">ng2 file upload concept</a></p>
  
  <p><strong>component code:</strong></p>
  
  <pre><code>filePreview(input : any){
   this.videoPreviewPath  = this.sanitizer.bypassSecurityTrustUrl((window.URL.createObjectURL(input.files[0]))); 
  }
  </code></pre>
  
  <p><strong>html code</strong></p>
  
  <pre><code> &lt;input type="file" (change)="filePreview(input)"
       accept=".mp4,.mpg,.m4v,.flv,.avi,.mov,.wmv,.divx,.f4v,.mpeg,.vob" 
   #input /&gt;
  
  &lt;video  controls preload="auto" width="280" height="180" &gt;
    &lt;source [src]='videoPreviewPath' type = 'video/mp4'&gt;
    &lt;source [src]='videoPreviewPath' type = 'video/3gpp'&gt;
    &lt;source [src]='videoPreviewPath' type = 'video/quicktime'&gt;
    &lt;source [src]='videoPreviewPath' type = 'video/x-ms-wmv'&gt;
  &lt;/video&gt;
  </code></pre>
  
  <p>please can any one help on this. why remaining file extensions are not working for this code.</p>