mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -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
|
||||
{
|
||||
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
|
||||
{
|
||||
|
@ -29,10 +29,12 @@ class AttractState extends MusicBeatState
|
|||
}
|
||||
|
||||
#if html5
|
||||
trace('Playing web video ${ATTRACT_VIDEO_PATH}');
|
||||
playVideoHTML5(ATTRACT_VIDEO_PATH);
|
||||
#end
|
||||
|
||||
#if hxCodec
|
||||
trace('Playing native video ${ATTRACT_VIDEO_PATH}');
|
||||
playVideoNative(ATTRACT_VIDEO_PATH);
|
||||
#end
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue