npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

media-kit-360-player

v1.1.0

Published

Enhance your web applications with the SpinImages360 and RenderVideo components. Create interactive 360-degree image galleries and control video playback with ease. Customize behavior and appearance for seamless integration into your projects.

Downloads

85

Readme

Presentation Media Kit

Introducing two essential components to enhance visual experiences in your web applications:

SpinImages360 Component: Create interactive 360-degree image galleries with drag or autoplay functionality. Customize behavior and appearance while supporting event notifications for seamless integration. Additionally, the component offers zoom functionality in the form of a magnifying glass and optimized treatment for mobile devices, ensuring a smooth user experience across various platforms.

RenderVideo Component: Empower your applications with video rendering and playback control. Features include autoplay, loop, mute, and customizable controls. Specify source and fallback URLs for consistent video delivery.

With these components, you can create engaging and dynamic visual experiences that elevate the standard of your web applications.

SpinImages360 Component Documentation

Example

| Parameter | Type | Description |
| :---------------------- | :---------- | :------------------------------------------------- |
| imagesBaseUrl | Array | An array of URLs representing the base URLs for the images. |
| mouseDragSpeed | Number | The speed factor for mouse drag. Higher values mean slower dragging. |
| reverse | Boolean | Determines whether the images should rotate in reverse order. |
| autoplaySpeed | Number | The speed of autoplay rotation in seconds per image. |
| autoplay | Boolean | Determines whether the gallery should autoplay. |
| width | Number | The width of the gallery container in pixels. |
| height | Number | The height of the gallery container in pixels. |
| showRotationIconOnStartup | Boolean | Determines whether the rotation icon should be shown initially. |
| imageInitialIndex | Number | The initial index of the image to be displayed in the gallery. |
| shouldNotifyEvents | Boolean | Determines whether event notifications should be enabled. |
| notifyOnPointerDown | Function | A function to be called when a pointer down event occurs. |
| notifyOnPointerUp | Function | A function to be called when a pointer up event occurs. |
| notifyOnPointerMoved | Function | A function to be called when a pointer move event occurs. |

Example Usage:

<SpinImages360  
 imagesBaseUrl={[ 
     'https://example.com/image1.jpg', 
     'https://example.com/image2.jpg', 
     'https://example.com/image3.jpg' 
 ]} 
 autoplay={true} 
 width={600} 
 height={400} 
 showRotationIconOnStartup={true} 
 imageInitialIndex={1} 
 shouldNotifyEvents={true} 
 notifyOnPointerDown={(x, y) => console.log('Pointer down at:', x, y)} 
 notifyOnPointerUp={(x, y) => console.log('Pointer up at:', x, y)} 
 notifyOnPointerMoved={(x, y) => console.log('Pointer moved to:', x, y)}
/>  

RenderVideo Component Documentation

Example

| Parameter | Type | Description |
| :---------------------- | :---------- | :----------------------------------------------- |
| src | String | The URL of the video to be played. |
| autoplay | Boolean | Determines whether the video should autoplay. |
| loop | Boolean | Determines whether the video should loop. |
| muted | Boolean | Determines whether the video should be muted. |
| width | String or Number | The width of the video container. |
| height | String or Number | The height of the video container. |
| showControls | Boolean | Determines whether video controls should be shown. |
| showRetryButton | Boolean | Determines whether the retry button should be shown when an error occurs. |
| showVolumeControl | Boolean | Determines whether the volume control should be shown. |
| showProgressBar | Boolean | Determines whether the progress bar should be shown. |
| showPlayPauseButton | Boolean | Determines whether the play/pause button should be shown. |
| showLoadingOverlay | Boolean | Determines whether the loading overlay should be shown. |
| RetryButtonComponent | Component | The component used for the retry button. |
| srcFallback | String | The fallback URL of the video in case of loading errors. |
| LoadingOverlayComponent | Component | The component used for the loading overlay. |
| LoadingErrorOverlayComponent | Component | The component used for the loading error overlay. |
| TextLoadingOverlayComponent | Component | The component used for the text loading overlay. |
| playPauseButtonComponent | Component | The component used for the play/pause button. |
| progressBarColor | String | The color of the progress bar. |
| volumeControlColor | String | The color of the volume control. |

Example Usage:

<RenderVideo  
 src="https://example.com/video.mp4"
 srcFallback="https://example.com/fallback-video.mp4"
 autoplay={true} 
 loop={true} 
 muted={false} 
 width={500} 
 height={300} 
 showControls={true} 
 showRetryButton={true} 
 showVolumeControl={true} 
 showProgressBar={true} 
 showPlayPauseButton={true} 
 showLoadingOverlay={true} 
 RetryButtonComponent={CustomRetryButton}
 LoadingOverlayComponent={CustomLoadingOverlay} 
 LoadingErrorOverlayComponent={CustomErrorOverlay} 
 TextLoadingOverlayComponent={CustomTextLoadingOverlay} 
 playPauseButtonComponent={CustomPlayPauseButton}
 progressBarColor="#ff0000" 
 volumeControlColor="#00ff00"
/>  

Running

 npm i media-kit-360-player

follow the examples