简体   繁体   中英

How can I upload a video to Firebase using angularfire2?

I am building a web app using Angular2 and Firebase, and am using angularfire2 for authentication and database interactions. It seems like angularfire2 does not have support for the Firebase storage API yet . What is the alternative until then? Can I access the Firebase object and follow the instructions in the Firebase documentation?

I use different approach by

  1. create static html+js for the sake of upload only

  2. make angular2 make a popup of upload page then when it complete upload close it self + change state of localStorage

  3. use ngZone + window.addEventListener("storage") to be able to call back after uploading is done

here is other ppl example to use ngZone http://blog.thoughtram.io/angular/2016/02/01/zones-in-angular-2.html

yes...

just use the firebase object and follow the directions on website

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM