Vue Integration
Moq integrates seamlessly with Vue.js through web components and reactive composition. Build real-time streaming experiences in your Vue applications.Installation
Using Web Components in Vue
Configure Vue for Custom Elements
Tell Vue to treat Moq elements as custom elements:Watch Component
Use the<moq-watch> web component in Vue:
Publish Component
Create a publishing component:Reactive State with Composition API
Using Signals with Vue
Create reactive wrappers for Moq signals:Volume Control Component
Use the composable:Controlling Web Components
Using Template Refs
Control the player programmatically:Complete Example
A full Vue application with Moq:Using with Nuxt
For Nuxt applications, configure custom elements:ClientOnly:
Best Practices
State Management with Pinia
Manage Moq state globally:Error Handling
Handle connection errors gracefully:TypeScript Support
Add type declarations:Next Steps
React Integration
Use Moq with React
JavaScript API
Advanced programmatic control
Authentication
Secure your streams
Web Components
Framework-agnostic usage