PHPackages                             jibix/map-video - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jibix/map-video

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jibix/map-video
===============

18351PHP

Since Jul 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/J1b1x/MapVideo)[ Packagist](https://packagist.org/packages/jibix/map-video)[ RSS](/packages/jibix-map-video/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

MapVideo
========

[](#mapvideo)

[![php](https://camo.githubusercontent.com/6e2ca56a2d75d2d6d8bdbcea333f3f9bf4576c0229affc2b32fbc3ce47fe62f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312d696e666f726d6174696f6e616c)](https://camo.githubusercontent.com/6e2ca56a2d75d2d6d8bdbcea333f3f9bf4576c0229affc2b32fbc3ce47fe62f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312d696e666f726d6174696f6e616c)[![api](https://camo.githubusercontent.com/09f5789e63311cafb26c8af7e2f3f9f5fd29d49b678e18edad26402ee7abb73c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706f636b65746d696e652d352e302d696e666f726d6174696f6e616c)](https://camo.githubusercontent.com/09f5789e63311cafb26c8af7e2f3f9f5fd29d49b678e18edad26402ee7abb73c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706f636b65746d696e652d352e302d696e666f726d6174696f6e616c)

A PocketMine-MP library to play videos on maps. You can find an example of how to use this library in a plugin [here](https://github.com/J1b1x/MapVideoExample).

[![MapVideo](https://private-user-images.githubusercontent.com/64813399/288247288-b2cb44cd-cdcf-4945-b8a8-f6584377d5a6.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJ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mVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzA4VDEyNTkyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2ODFhNWFiNmUwMGU3ODFjOTFmZDI5ZWViOTRkMGMzNDIxMDA4MGU2ZDI1MTFjOWM5NDRkODc1NDBlZjYwOGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmdpZiJ9.YHH8zoAog_mxPxIVsi2df0iq7MPQKlftFkqYFryn4rA)

Registration
------------

[](#registration)

First you need to register the library. Simply do:

```
\Jibix\MapVideo\MapVideo::initialize($plugin);
```

Video loading
-------------

[](#video-loading)

Load a video:

```
VideoManager::getInstance()->loadVideo(
    Video::id("my_video_name"),
    "/path/to/video.gif", //Only .gif files are supported at the moment
    static function (Video $video): void{
        //Do something (you could play the video for example)
    },
    static function (int $totalFrames, int $loadedFrames): void{
        $percentage = round($loadedFrames / $loadedFrames * 100);
        //Do something (you could send a progress bar to the player for example, since this is called in the main thread)
    },
    true //Set to false if you don't want to cache the video
);
```

Get a cached video:

```
VideoManager::getInstance()->getCachedVideo($videoId);
```

Get all cached videos:

```
$videos = VideoManager::getInstance()->getCachedVideos();
```

Video playing
-------------

[](#video-playing)

Play a video:

```
$videoSettings = new VideoPlaySettings(
    repeat: true, //Automatically restarts when the video ends
    offHand: false //Set to true if you want to play the video in the off-hand
    //Ideas for more options? Just make an issue!
);
VideoSession::get($player)->play($video, $videoSettings);
```

Stop a video:

```
VideoSession::get($player)->stop();
```

Get the currently playing video:

```
$video = VideoSession::get($player)->getVideo();
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/64813399?v=4)[Jibix](/maintainers/J1b1x)[@J1b1x](https://github.com/J1b1x)

---

Top Contributors

[![J1b1x](https://avatars.githubusercontent.com/u/64813399?v=4)](https://github.com/J1b1x "J1b1x (29 commits)")[![poggit-bot](https://avatars.githubusercontent.com/u/22427965?v=4)](https://github.com/poggit-bot "poggit-bot (1 commits)")

### Embed Badge

![Health badge](/badges/jibix-map-video/health.svg)

```
[![Health](https://phpackages.com/badges/jibix-map-video/health.svg)](https://phpackages.com/packages/jibix-map-video)
```

###  Alternatives

[backpack/basset

Dead-simple way to load CSS or JS assets only once per page, when using Laravel 10+.

2101.0M12](/packages/backpack-basset)[rilwis/meta-box

The most powerful &amp; comprehensive plugin to create, manage, show and connect dynamic data with forms and custom fields effortlessly on WordPress.

1.2k1.8k1](/packages/rilwis-meta-box)[craftcms/shopify

Shopify for Craft CMS

5410.4k2](/packages/craftcms-shopify)[videlalvaro/azserverless

"PHP Custom Handler for Azure Functions"

182.3k](/packages/videlalvaro-azserverless)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
