1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-09-11 20:57:20 +00:00

Fixes for FlxVideo

This commit is contained in:
EliteMasterEric 2023-06-15 00:30:01 -04:00
parent dddd050268
commit 7a47221250

View file

@ -20,7 +20,7 @@ class FlxVideo extends FlxBasic
/** /**
* Doesn't actually interact with Flixel shit, only just a pleasant to use class * Doesn't actually interact with Flixel shit, only just a pleasant to use class
*/ */
public function new(vidSrc:String) public function new(videoPath:String)
{ {
super(); super();
@ -36,7 +36,7 @@ class FlxVideo extends FlxBasic
netStream = new NetStream(netConnection); netStream = new NetStream(netConnection);
netStream.client = {onMetaData: client_onMetaData}; netStream.client = {onMetaData: client_onMetaData};
netConnection.addEventListener(NetStatusEvent.NET_STATUS, netConnection_onNetStatus); netConnection.addEventListener(NetStatusEvent.NET_STATUS, netConnection_onNetStatus);
netStream.play(Paths.file(vidSrc)); netStream.play(videoPath);
} }
public function finishVideo():Void public function finishVideo():Void