Batch Add to Queue

Batch Add to Queue

ℹ️
This section is for YamaPlayer and VizVid users. IwaSync is not supported.

This feature is disabled by default because it cannot be used with IwaSync.

You can enable it by following these steps:

  1. In Unity, open the prefab “DynamicThumbnailPlaylist_Base”, select “AddQueueAll” located as shown in the image, and turn it ON.

Activate AddQueueAll

ℹ️
The following steps are for users of YamaPlayer v1.4.x and below.
For YamaPlayer v1.5.x and later, and VizVid, you can use it with just the work above.

The following procedure is for those who don’t have a code editor installed. If you have one, feel free to adapt and do it as you see fit.

  1. In Unity, select the “Playlist” file in the Packages/YamaPlayer/Runtime/Internal folder. (The one with the # icon)

    Select Playlist with '#' icon

  2. Right-click and click “Show In Explorer”.

  3. Explorer will open with the “Playlist” file selected, so right-click on it and press “Edit”.

  4. Notepad will open, so select all and copy. (Keep Notepad open)

  5. Open VSCode Online, paste, and scroll to the bottom.

    Click the red frame area

  6. Copy the following string and paste it to the right of the 3rd “}” from the bottom (red frame area) in VSCode Online that you opened earlier.



        public void AddTracks(object[] tracks)
        {
            var newLength = _videoPlayerTypes.Length + tracks.Length;

            var players = new VideoPlayerType[newLength]; var titles = new string[newLength];
            var urls = new VRCUrl[newLength]; var originalUrls = new string[newLength];

            for (var i = 0; i < _videoPlayerTypes.Length; i++)
            {
                players[i] = _videoPlayerTypes[i]; titles[i] = _titles[i];
                urls[i] = _urls[i]; originalUrls[i] = _originalUrls[i];
            }
  
            for (var i = newLength - tracks.Length; i < newLength; i++)
            {
                var track = (Track)tracks[i - (newLength - tracks.Length)];
                players[i] = track.GetPlayerType(); titles[i] = track.GetTitle();
                urls[i] = track.GetVRCUrl(); originalUrls[i] = track.GetOriginalUrl();
            }

            _videoPlayerTypes = players; _titles = titles;
            _urls = urls; _originalUrls = originalUrls;

            SendEvent();
        }

It should look like this:

  1. Select all and copy the code in VSCode Online. Return to Notepad, paste, save, and close Notepad.

  2. Right-click on the YamaPlayer folder and click Reimport.

  3. In Unity, press the play button (▶) to confirm that playback can start.
    If you can’t play, reimport YamaPlayer and redo from step 2.

  4. Import the Unity Package in the Extra folder of this gimmick.

    Import DynamicThumbnailPlaylist_AddQueueAll.unitypackage

  5. Build, confirm it works, and you’re done!