JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q62440F
  • License MIT

Kit midia

Package Exports

  • media-kit-360-player
  • media-kit-360-player/dist/index.js
  • media-kit-360-player/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (media-kit-360-player) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

Running Locally

Clone the project

 git clone [Link](https://github.com/samuelvermeuln/media-kit-360-player)

Navigate to the project directory

 cd my-project  

Install dependencies

 npm install  

Start the server

 npm run start