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. jibix/map-video

ActiveLibrary

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

18351PHP

Since Jul 24Pushed 1y 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 1mo 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=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicm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CZYLUFtei1EYXRlPTIwMjYwNDAyVDA4MzYwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIwNWUyMjMyYmZkNDUwOTM0OThiMzU4MWY5YWUyZjRmY2Q2NzQ5ZjllYTcwNDY4NmRiODA1NWZkYTEzNGY0ZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ovoSKPRE3HoDhyG4A66PxIXI3ZyTaloemVtdtI32284)

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

18

—

LowBetter than 8% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity18

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://www.gravatar.com/avatar/17a7e8099b8d2fdc6597c376d6367f3fa04b1e64f9ae07cc408cc3386d71537c?d=identicon)[J1b1x](/maintainers/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)
```

PHPackages © 2026

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