Skip to content

jobf/webm-flixel-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webm video on flixel

Tested with Big Buck Bunny 360 webm, only vp8 works. vp9 and av1 made error "Bitstream not supported by this decoder".

To use same video download this and place in assets directory - https://test-videos.co.uk/vids/bigbuckbunny/webm/vp8/360/Big_Buck_Bunny_360_10s_1MB.webm - or provice your own and edit webmPath in PlayState.hx.

Dependencies

When exposing stop and restart via the FlxVideo class I found that calls to stop would crash the code. Quick fix for this was to prevent calling WebmPlayer.dispose in WebmPlayer.stop.

To that end I have forked the original haxelib extension and pushed the change.

## install the haxelib from git
haxelib git extension-webm https://github.com/jobf/extension-webm.git

# then build for your target, e.g. linux (replace with windows if on windows)
lime rebuild extension-webm linux

Run the example

After setting up dependencies, from the root directory; (replace with windows if on windows).

lime test linux

About

play webm video in flixel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages