puddlejumper26 / xiangs

Personal Website
0 stars 0 forks source link

ISSUE - Home page could not display with MP4 after build #13

Open puddlejumper26 opened 4 years ago

puddlejumper26 commented 4 years ago

Local running is perfect, but after build, it is not working at all

Use replacement

puddlejumper26 commented 4 years ago

Solution I with youtube-player component

Check this - How to embed Youtube inside Angular with [youtube-player component]

https://github.com/puddlejumper26/blogs/issues/151

puddlejumper26 commented 4 years ago

Solution II with Service

https://stackoverflow.com/questions/61046169/cannot-play-mp4-video-in-angular-7

https://stackblitz.com/edit/angular-tfrvpt?file=src%2Fapp%2Fapp.component.ts

puddlejumper26 commented 4 years ago

Solution III With HTML5

<video autoplay loop>
    <source src="../../../assets/ranbing.mp4" type="video/mp4" />
  </video>