-
Enter the following command in the
WebScripts~
directory.yarn yarn dev
-
Import the sample MVS or MVS2 from Package Manager.
-
Enter the following command in the
WebScripts~
directory under the imported directory.yarn yarn dev
The JavaScript code will be built and output to
/Assets/WebGLTemplates/Dev
. -
Open
Build Settings
and change the platform toWebGL
. -
Select
Dev
fromPlayer Settings > Resolution and Presentation > WebGL Template
. -
Add all scenes in MVS to
Scenes In Build
. -
Play
- See README to run WebGL application in local environment.
Listed above the scene played.
- Title screen
- Ability to go to video screen (initialize)
- Video screen
- Ability to specify url (set url, prepare)
- Display the length of the video (video preparation is completed, get video length)
- Ability to play video (play)
- Ability to play video with the original colors when
Project Settings > Other Settings > Rendering > Color Space
is set to Gamma. - Ability to play video with the original colors when
Project Settings > Other Settings > Rendering > Color Space
is set to Linear. - Ability to play correctly when looped 5 or more times
- Ability to play video with the original colors when
- Ability to play correctly when switching to another video with a different resolution
- Play video
- Stop video
- Specify another video URL
- Push Load button
- Play
- Ability to pause video (pause)
- Ability to seek video (set time)
- Ability to stop video (stop)
- Ability to adjust volume (set volume)
- Error notification if specified url is invalid (error is received)
- Ability to return title screen (dispose VideoPlayer)