> For the complete documentation index, see [llms.txt](https://docs.fluidplayer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fluidplayer.com/es/integracion/using-fluid-player-with-vue.js.md).

# Usando Fluid Player con Vue.js

Fluid Player funciona con Vue.js directamente, sin necesidad de configuración adicional. Para empezar a usar Fluid Player en tu proyecto de Vue.js, necesitarás:

* instalar Fluid Player usando Yarn o NPM como se indica [aquí](/es/integracion/quick-setup.md#integration-using-npm); y
* importar el módulo de Fluid Player y asociarlo al elemento de video que elijas.

Puedes ver un ejemplo de cómo integrar Fluid Player y Vue.js en el ejemplo de abajo. Este es un ejemplo simplificado para que puedas empezar rápidamente. Sigue las mejores prácticas de Vue.js sobre cómo crear componentes reutilizables según las necesidades de tu proyecto.

**IMPORTANTE:** no se admite el cambio dinámico de स्रोत. Tú **debes** redibujar el componente O volver a crear la instancia de Fluid Player para cambiar las fuentes u otra configuración del reproductor.

```html
<template>
    <div class="fluid-component">
        <video ref="myVideoPlayer">
            <source src='https://cdn.fluidplayer.com/videos/valerian-1080p.mkv'
                    data-fluid-hd
                    title="1080p"
                    type='video/mp4'/>
        </video>
    </div>
</template>

<script>
    import fluidPlayer from 'fluid-player';

    export default {
        name: 'FluidPlayer',
        props: {},
        data() {
            return {
                player: null
            }
        },
        mounted() {
            this.player = fluidPlayer(this.$refs.myVideoPlayer);
        },
        destroyed() {
            if (!this.player) {
                return;
            }

            this.player.destroy();
        }
    }
</script>

<style>
    @import "fluid-player/src/css/fluidplayer.css";

    div.fluid-component, div.fluid-component > video {
        width: 100%;
        height: 100%;
    }
</style>
```

**Nota**: Safari no admite la reproducción de archivos .mkv. Para ver este tipo de archivo, considera usar otro navegador que admita el formato .mkv.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fluidplayer.com/es/integracion/using-fluid-player-with-vue.js.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
