Skip to main content

Whitebox Plugin - Pannellum

This is a plugin for whitebox that provides Pannellum 360 video player integration.

Installation

Install the plugin to whitebox:

poetry add whitebox-plugin-pannellum

Features

360 Video Playback

The Pannellum360Video React component wraps Video.js with Pannellum for equirectangular 360-degree video rendering.

import { Pannellum360Video } from 'whitebox-plugin-pannellum';

<Pannellum360Video
  options={{
    sources: [{ src: '/video.mp4', type: 'video/mp4' }],
    pannellum: {
      autoRotate: -2,
      hfov: 120,
    }
  }}
  onReady={(player) => console.log('Player ready')}
/>

WebRTC Live Streaming Support

The component supports both regular video URLs and WebRTC streams (via srcObject):

Source Type Detection Initialization
URL (src) !srcObject videojs-pannellum plugin
WebRTC (srcObject) !!srcObject Direct Pannellum init

For WebRTC sources, the component:

  1. Waits for video frames using requestVideoFrameCallback (with polling fallback)
  2. Initializes Pannellum directly with the video element as a WebGL texture
  3. Handles play/pause synchronization with the Pannellum viewer

See whitebox-plugin-videojs README for the full WebRTC/WHEP architecture documentation.

Frame Detection

The waitForVideoFrame() utility ensures Pannellum only initializes after actual video data is available:

// Uses requestVideoFrameCallback when available (Chrome 83+, Firefox 130+)
// Falls back to polling videoWidth/videoHeight for Safari
await waitForVideoFrame(videoEl, maxWaitMs);

This prevents the "black sphere" issue common with WebRTC streams where metadata arrives before video frames.

Additional Instructions

Metadata

Release files for whitebox-plugin-pannellum 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whitebox-plugin-pannellum 0.1.7
File Size Uploaded Provenance
whitebox_plugin_pannellum-0.1.7.tar.gz 17.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for whitebox-plugin-pannellum 0.1.7
File Interpreter ABI Platform
whitebox_plugin_pannellum-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 37.5 kB

Release files / whitebox_plugin_pannellum-0.1.7.tar.gz

Download URL whitebox_plugin_pannellum-0.1.7.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
92176be935bc70262ddec9c3f2b474d310c006c9af52b0b137c335cbf966660f
BLAKE2b-256 checksum
How to use checksums
9ac5772b372eab6f10a8056b64b2142841cfd24b3a9b49e0c77511a2171a2a8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.0.dev0 CPython/3.14.4 Linux/6.1.75+

Release files / whitebox_plugin_pannellum-0.1.7-py3-none-any.whl

Download URL whitebox_plugin_pannellum-0.1.7-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51d02d3dd2d13be12abfbba7d380265698a707ce279768024c98534e08aa8f02
BLAKE2b-256 checksum
How to use checksums
4336a8218293c06894783f42edce73f521dcdd9f161d6b9f481d7b9308f47f67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.0.dev0 CPython/3.14.4 Linux/6.1.75+

Security for whitebox-plugin-pannellum 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page