mirax-player
Advanced tools
Comparing version 2.3.0 to 2.3.1-alpha
// mirax-player.d.ts | ||
declare module 'mirax-player' { | ||
/* declare module 'mirax-player' { | ||
type VideoPlayerFunction = (video: any) => void; | ||
@@ -9,1 +9,8 @@ | ||
} | ||
*/ | ||
declare module 'mirax-player' { | ||
type VideoPlayerFunction = (video: any) => void; | ||
export const miraxplayer: VideoPlayerFunction; | ||
} |
@@ -25,3 +25,3 @@ function miraxplayer(video) { | ||
// Set the text content | ||
videoText.textContent = 'Video file not found'; | ||
videoText.textContent = 'Video not found'; | ||
// Set the class name | ||
@@ -28,0 +28,0 @@ videoText.className = 'video-text'; |
// mirax-player.d.ts | ||
declare module 'mirax-player' { | ||
/* declare module 'mirax-player' { | ||
type VideoPlayerFunction = (video: any) => void; | ||
@@ -9,1 +9,8 @@ | ||
} | ||
*/ | ||
declare module 'mirax-player' { | ||
type VideoPlayerFunction = (video: any) => void; | ||
export const miraxplayer: VideoPlayerFunction; | ||
} |
{ | ||
"name": "mirax-player", | ||
"version": "2.3.0", | ||
"version": "2.3.1-alpha", | ||
"description": "Mirax Player is a video player has compatibility of typescript and javascript for React, Vue, Angular and Svelte.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -108,7 +108,5 @@ <p align="center"> | ||
// for react (video file stored: public/clip.mp4) | ||
const [isPlaying, setIsPlaying] = useState(false); | ||
const video = useRef(null); | ||
// | ||
// for vue (video file stored: public/clip.mp4) | ||
const isPlaying = ref(false); | ||
const video = ref(null); | ||
@@ -118,6 +116,4 @@ // | ||
@ViewChild('video', { static: true }) | ||
isPlaying: boolean = false; | ||
// | ||
// for svelte (video file stored: public/clip.mp4) | ||
let isPlaying = false; | ||
let video; | ||
@@ -124,0 +120,0 @@ // |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41300
665
2
670