I posted to the slack channel about this, but thought I’d ask here as well for extra ideas:
What is the best performing way to embed youtube videos in nativescript?
I am building an app that will have a lot of youtube videos, and I am using angular.
The options I find available are 1) simple webview (https://docs.nativescript.org/angular/code-samples/ui/web-view) or 2) videoplayer plugin (https://github.com/nstudio/nativescript-videoplayer).
I’m not sure what the plugin does that webview doesn’t. Are there other options?
I have been able to get a sample going of the basic webview solution on the simulator–but it is VERY slow on simulator (6+ seconds to load single video). I have not been able to get the plugin to work–using angular code from README, just shows blank box.
Previously, when building in ionic, I used the youtube iframe api, which worked very well. Pretty sure this doesn’t work with native, because it puts an iframe directly into the view (no webview). Youtube has instructions for embedding their iframe api into ios apps, but they assume use of xcode, and I’m not sure how it translates to nativescript: https://developers.google.com/youtube/v3/guides/ios_youtube_helper.