mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-17 04:11:23 -05:00
Fix an issue causing the Kickstarter video to not play
This commit is contained in:
parent
b771b46f1c
commit
893822532e
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,7 @@ import funkin.ui.MusicBeatState;
|
||||||
*/
|
*/
|
||||||
class AttractState extends MusicBeatState
|
class AttractState extends MusicBeatState
|
||||||
{
|
{
|
||||||
static final ATTRACT_VIDEO_PATH:String = Paths.videos('kickstarterTrailer');
|
static final ATTRACT_VIDEO_PATH:String = Paths.stripLibrary(Paths.videos('kickstarterTrailer', 'shared'));
|
||||||
|
|
||||||
public override function create():Void
|
public override function create():Void
|
||||||
{
|
{
|
||||||
|
@ -29,10 +29,12 @@ class AttractState extends MusicBeatState
|
||||||
}
|
}
|
||||||
|
|
||||||
#if html5
|
#if html5
|
||||||
|
trace('Playing web video ${ATTRACT_VIDEO_PATH}');
|
||||||
playVideoHTML5(ATTRACT_VIDEO_PATH);
|
playVideoHTML5(ATTRACT_VIDEO_PATH);
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#if hxCodec
|
#if hxCodec
|
||||||
|
trace('Playing native video ${ATTRACT_VIDEO_PATH}');
|
||||||
playVideoNative(ATTRACT_VIDEO_PATH);
|
playVideoNative(ATTRACT_VIDEO_PATH);
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue