Skip to content

Commit

Permalink
Removed large font reference and leave to VRChat fallback
Browse files Browse the repository at this point in the history
Update readme and documentation
Fix minor compile error in PlayListEditorWindow
  • Loading branch information
JLChnToZ committed Apr 23, 2024
1 parent ddaf394 commit 7d3365d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using VVMW.ThirdParties.LitJson;

using UnityObject = UnityEngine.Object;
using System.Collections;

namespace JLChnToZ.VRC.VVMW.Editors {

Expand Down Expand Up @@ -514,7 +515,7 @@ void ImportPlayListFromProTV(dynamic proTVPlayList, int version, bool newPlayLis
void ImportPlayListFromIwaSync3(dynamic iwaSync3PlayList, bool newPlayList = false) {
var playList = GetOrCreatePlayList("Imported Playlist", newPlayList);
try {
foreach (var track in ((object)iwaSync3PlayList).GetType().GetField("tracks", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance).GetValue(iwaSync3PlayList)) {
foreach (var track in (dynamic)((object)iwaSync3PlayList).GetType().GetField("tracks", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance).GetValue(iwaSync3PlayList)) {
var trackMode = (int)track.mode;
var title = track.title;
var url = track.url;
Expand Down
3 changes: 1 addition & 2 deletions Packages/idv.jlchntoz.vvmw/Fonts/Comfortaa-Regular SDF.asset
Original file line number Diff line number Diff line change
Expand Up @@ -2740,8 +2740,7 @@ MonoBehaviour:
m_FontFeatureTable:
m_GlyphPairAdjustmentRecords: []
fallbackFontAssets: []
m_FallbackFontAssetTable:
- {fileID: 11400000, guid: bfd00cf1ed3b9c945b677b006787a799, type: 2}
m_FallbackFontAssetTable: []
m_CreationSettings:
sourceFontFileName:
sourceFontFileGUID: 088cf7162d0a81c46ad54028cfdcb382
Expand Down
14 changes: 14 additions & 0 deletions Packages/idv.jlchntoz.vvmw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This documentation is for V1.0.12 or later, some guidelines are different to old
* [How to Change color?](#how-to-change-color)
* [How to Setup Auto Plays When a User Goes Nearby?](#how-to-setup-auto-plays-when-a-user-goes-nearby)
* [How to Make Background Music Fade Out When Video is Playing?](#how-to-make-background-music-fade-out-when-video-is-playing)
* [How to Upgrade to Text Mesh Pro?](#how-to-upgrade-to-text-mesh-pro)
* [Details in the Bundle](#details-in-the-bundle)
* [VVMW (Game Object)](#vvmw-game-object)
* [Builtin Module / AVPro Module](#builtin-module--av-pro-module)
Expand Down Expand Up @@ -97,6 +98,7 @@ Current supported Playlists / video players to be imported directly:
- iwaSync 3
- JT Playlist
- ProTV by ArchiTech
- VideoTXL

To import above listed Playlists, drag the game object containing their Playlists to this Playlist editor. Beware it is sightly different when you drop it between the left panel and the right: If you dropped on the left, new Playlists will be added; and if you dropped on the right, it will append to current selected Playlist if applicable.

Expand Down Expand Up @@ -142,6 +144,18 @@ Next, click on the "Find" button next to the core field, or drag your video play

And thats it!

### How to Upgrade to Text Mesh Pro?

Both Unity and VRChat SDK encourages to use TextMeshPro (TMPro) instead of legacy Text components for all UIs in your scene for readability and aesthetics in VR. To upgrade VizVid to use TMPro instead of legacy Text, starting from v1.0.32, you can do the following:

1. Select the outermost UI game objects of VizVid you want to migrate, such as Default UI, Overlay Control, Re-Sync Button.
2. Select `Tools > VizVid > Migrate TMPro Components` in menu, the script will do the thing.
3. That's it!

Please note this only applies to currently what you have on the scene, if the player is upgraded in the future and new UI components are added, or you have added/replaced any UIs of the player afterwards, you will have to do this again.

If you want to test the player within Unity Editor but find out all non-English text become tofu after migration, you may refer to this article: [TextMeshPro in VRChat](https://hai-vr.notion.site/TextMeshPro-in-VRChat-91561782adea47a78569cec641fd5ee9#88dd13b80e4d4caeafc00f26b4aa2ae1).

## Details in the Bundle
In the prefab, it should look like this in hierarchy:
- VVMW
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ Welcome! VizVid is a general-purpose video player frontend for use in VRChat. It
## Features
- Basic playback, seeking controls
- Pre-defined playlists & user queue list
- Playback history for user inputed URLs (since v1.0.32)
- Quest (Android) client specific URLs (only available on pre-defined URLs, play lists and API)
- Low latency mode, (tested with RTSP/RTMP streams)
- Local mode (toggleable syncing with other users within instance before uploading)
- Modulized screen, audio & UI architecture, support multiple instances
- Both on-screen & separated interfaces available
- (Almost) one-click to change interface colors
- Supports both legacy UI and TextMeshPro setup (since v1.0.32)
- Local pickupable & scaleable screen
- Wrist band (VR) / keyboard (desktop) resync button & volume controls
- Auto plays when local user steps into specific region
Expand Down

0 comments on commit 7d3365d

Please sign in to comment.