Play Youtube URL in video tag

How to play youtube URL in video view in framework7. Other videos are able to playing by video view except youtube URL. How to play youtube video URL also inside video tag.

Just use YouTube’s iframe

Thanks for the quick reply. One more query is there, Plz help. Is it possible to play other video URL inside Youtube’s iframe?

No, use YouTube iframe for YouTube videos, and video tag for custom videos

Ok. Thanks for the solution.

Having the issue with Youtube embed iframe tag. While using youtube iframe in my framework 7 nectar app. I am receiving this error:

The service worker navigation preload request was cancelled before ‘preloadResponse’ settled. If you intend to use ‘preloadResponse’, use waitUntil() or respondWith() to wait for the promise to settle.

Please suggest me how to solve this error.