mirax-player
Advanced tools
Comparing version 3.0.0-alpha.15 to 3.0.0-alpha.16
@@ -12,5 +12,5 @@ # Changelog | ||
### [3.0.0-alpha.15] | ||
### [3.0.0-alpha.16] | ||
- Initial Alpha Release: Documentation features included in this alpha version. | ||
@@ -96,4 +96,4 @@ | ||
// Function to embed either YouTube or Vimeo video based on the URL | ||
const miraxEmbed = (playerRef, params) => { | ||
const miraxEmbed = (playerRef, youtubeParams, vimeoParams) => { | ||
const videoUrl = playerRef.getAttribute("mirax-embed-video"); | ||
@@ -103,10 +103,8 @@ const isVimeo = videoUrl.includes("vimeo.com"); | ||
if (isVimeo) { | ||
embedVimeo(playerRef, params); | ||
embedVimeo(playerRef, vimeoParams); | ||
} else { | ||
embedYouTube(playerRef, params); | ||
embedYouTube(playerRef, youtubeParams); | ||
} | ||
}; | ||
// Export functions and types | ||
export { embedYouTube, embedVimeo, miraxEmbed }; | ||
export default miraxEmbed; |
{ | ||
"name": "mirax-player", | ||
"version": "3.0.0-alpha.15", | ||
"version": "3.0.0-alpha.16", | ||
"description": "Mirax Player is an adaptable video player and embedding solution that seamlessly integrates with TypeScript and JavaScript applications across a range of popular front-end libraries and frameworks, including React, Vue, Angular, and Svelte.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
62819
860