mirax-player
Advanced tools
Comparing version 1.1.2 to 1.1.3
23
index.js
//index.js - This is your package's entry point | ||
// Import the VideoPlayer class | ||
// Import the VideoPlayer class | ||
import Mirax from './dist/VideoPlayer'; | ||
import { attach } from './dist/connector'; | ||
import { progressColor } from './dist/progressColor'; | ||
import { progressFrame } from './dist/progressFrame'; | ||
// Export the VideoPlayer class | ||
// Export the VideoPlayer class and attach function | ||
export default Mirax; | ||
export { attach }; | ||
export { progressColor }; | ||
export { progressFrame }; | ||
// Define the progressColor and progressFrame functions | ||
export const progressColor = (color) => { | ||
const injectProgress = document.createElement('style'); | ||
injectProgress.textContent = `.progress-bar::-webkit-progress-value { background-color: ${color}; }`; | ||
document.head.appendChild(injectProgress); | ||
return injectProgress; | ||
}; | ||
export const progressFrame = (color) => { | ||
const injectFrame = document.createElement('style'); | ||
injectFrame.textContent = `.progress-bar::-webkit-progress-bar { background-color: ${color}; }`; | ||
document.head.appendChild(injectFrame); | ||
return injectFrame; | ||
}; | ||
{ | ||
"name": "mirax-player", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A simple video player for react", | ||
@@ -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
18284
314