Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@quasar/quasar-ui-qmediaplayer
Advanced tools
QMediaPlayer is an HTML5 audio/video player (Vue Plugin, UMD and Quasar App Extension)
If you are looking for QMediaPlayer v2.+ look into the
next
branch. For v2.+ documentation, go here.
QMediaPlayer is a Quasar component. It allows you to embed HTML5 video and audio into your Quasar application.
Can be found here
Install the App Extension.
OR:
Create and register a boot file:
import Vue from 'vue'
import Plugin from '@quasar/quasar-ui-qmediaplayer'
import '@quasar/quasar-ui-qmediaplayer/dist/index.css'
Vue.use(Plugin)
OR:
<style src="@quasar/quasar-ui-qmediaplayer/dist/index.css"></style>
<script>
import { QMediaPlayer } from '@quasar/quasar-ui-qmediaplayer'
export default {
components: {
QMediaPlayer
}
}
</script>
import Vue from 'vue'
import Plugin from '@quasar/quasar-ui-qmediaplayer'
import '@quasar/quasar-ui-qmediaplayer/dist/index.css'
Vue.use(Plugin)
OR:
<style src="@quasar/quasar-ui-qmediaplayer/dist/index.css"></style>
<script>
import { QMediaPlayer } from '@quasar/quasar-ui-qmediaplayer'
export default {
components: {
QMediaPlayer
}
}
</script>
Exports window.QMediaPlayer
.
Add the following tag(s) after the Quasar ones:
<head>
<!-- AFTER the Quasar stylesheet tags: -->
<link href="https://cdn.jsdelivr.net/npm/@quasar/quasar-ui-qmediaplayer/dist/index.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- at end of body, AFTER Quasar script(s): -->
<script src="https://cdn.jsdelivr.net/npm/@quasar/quasar-ui-qmediaplayer/dist/index.umd.min.js"></script>
</body>
If you need the RTL variant of the CSS, then go for the following (instead of the above stylesheet link):
<link href="https://cdn.jsdelivr.net/npm/@quasar/quasar-ui-qmediaplayer/dist/index.rtl.min.css" rel="stylesheet" type="text/css">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width">
<title>UMD test</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/quasar@^1.0.0/dist/quasar.min.css" rel="stylesheet" type="text/css">
<link href="dist/index.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="q-app">
<q-layout view="lHh Lpr fff">
<q-header class="glossy bg-primary">
<q-toolbar>
<q-toolbar-title>
quasar-ui-qmediaplayer v{{ version }}
</q-toolbar-title>
<div>Quasar v{{ $q.version }}</div>
</q-toolbar>
</q-header>
<q-page-container>
<q-page padding>
<q-media-player
type="video"
:sources="sources"
></q-media-player>
<ul class="q-mb-lg">
<li>In /ui, run: "yarn build"</li>
<li class="text-red">You need to build & refresh page on each change manually.</li>
<li>Use self-closing tags only!</li>
<li>Example: <my-component></my-component></li>
</ul>
</q-page>
</q-page-container>
</q-layout>
</div>
<script src="https://cdn.jsdelivr.net/npm/quasar@^1.0.0/dist/quasar.ie.polyfills.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@^2.0.0/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/quasar@^1.0.0/dist/quasar.umd.min.js"></script>
<script src="dist/index.umd.js"></script>
<script src="dist/lang/en-us.umd.js"></script>
<script src="dist/icon-set/material-icons.umd.js"></script>
<script>
new Vue({
el: '#q-app',
data: function () {
return {
version: QMediaPlayer.version,
sources: [
{
src: 'http://www.peach.themazzone.com/durian/movies/sintel-2048-surround.mp4',
type: 'video/mp4'
}
]
}
}
})
</script>
</body>
</html>
In both the ui
and ui/dev
folders:
$ yarn
In the ui
folder
# start dev in SPA mode
$ yarn dev
# start dev in UMD mode
$ yarn dev:umd
# start dev in SSR mode
$ yarn dev:ssr
# start dev in Cordova iOS mode
$ yarn dev:ios
# start dev in Cordova Android mode
$ yarn dev:android
# start dev in Electron mode
$ yarn dev:electron
$ yarn build
# build just the JSON API
$ yarn build:api
If you appreciate the work that went into this, please consider donating to Quasar or Jeff.
MIT (c) Jeff Galbraith jeff@quasar.dev
FAQs
QMediaPlayer is an HTML5 audio/video player (Vue Plugin, UMD and Quasar App Extension)
The npm package @quasar/quasar-ui-qmediaplayer receives a total of 753 weekly downloads. As such, @quasar/quasar-ui-qmediaplayer popularity was classified as not popular.
We found that @quasar/quasar-ui-qmediaplayer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.