# Single Page Application

# Embedding player in SPA

In SPA <mov-player> tag may not work. This is because it is not native HTML element, so framework will try to compile it like any other component. MOV Player is based on custom HTML element <mov-player>. Basically it is a web component that wraps all the necessary elements.

To make it work in SPA you should tell your framework to skip component resolution. This could be done by registering <mov-player> as custom element.

You can use <div> instead of <mov-player>, but it would be more convenient and future-proof to use <mov-player>.

Hint: search for 'register custom element', 'skip component resolution', 'web component in spa' for framework and build tool that you use.