![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
vp-mse-player
Advanced tools
`VpMsePlayer` is a JavaScript library designed for creating and managing video players, optimized for handling MSE video streams. It streamlines the setup process and offers advanced features like live/offline status detection, customizable configurations
VpMsePlayer
is a JavaScript library designed for creating and managing video players, optimized for handling MSE video streams. It streamlines the setup process and offers advanced features like live/offline status detection, customizable configurations, and event hooks for seamless integration into applications.
Install the package via npm:
npm install vp-mse-player
import vpMsePlayer from "vp-mse-player";
const streamUrl = "ws://your-stream-url.com/stream";
const config = {};
const options = {};
const player = vpMsePlayer("video-container");
player.setup(streamUrl, options, config);
const player = vpMsePlayer(elementId);
elementId
(string, required): ID of the HTML container for the player.setup(streamUrl, options, config)
Initializes the player with the given stream URL, options, and configuration.
streamUrl
(string, required): URL of the video stream.options
(object, optional): Player options. Default: { progressUpdateTime: 750 }
.config
(object, optional): Player configuration. Default:
size
(object): { width: "100%", height: "100%" }
controls
(boolean): Enable/disable native controls (default: true
).play()
Starts video playback.
pause()
Pauses video playback.
stop()
Stops video playback and resets the player.
restart()
Restarts video playback.
destroy()
Destroys the player instance and cleans up resources.
setVolume(volume)
Sets the player volume.
volume
(number): Value between 0
(mute) and 1
(full volume).on(eventName, callback, options)
Adds an event listener to the player.
eventName
(string): Name of the event.callback
(function): Function to execute when the event is triggered.options
(object): Event listener options.off(eventName, callback)
Removes a specific event listener from the player.
channelLive
: Fired when the stream changes to a live status.channelOffline
: Fired when the stream changes to an offline status.const player = vpMsePlayer("video-container");
const streamUrl = "ws://your-stream-url.com/stream";
player.setup(streamUrl);
// Listen for live/offline status events
player.on("channelLive", () => console.log("Stream is live"));
player.on("channelOffline", () => console.log("Stream is offline"));
const player = vpMsePlayer("video-container");
// Destroy the player instance
player.destroy();
FAQs
`VpMsePlayer` is a JavaScript library designed for creating and managing video players, optimized for handling MSE video streams. It streamlines the setup process and offers advanced features like live/offline status detection, customizable configurations
The npm package vp-mse-player receives a total of 0 weekly downloads. As such, vp-mse-player popularity was classified as not popular.
We found that vp-mse-player demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.