String/Image downloader has been implemented and there is a growing demand for dynamically generating URLs with Udon. However, I can understand that you are concerned about sending requests to URLs indiscriminately from the viewpoint of privacy protection.
Therefore, we request a function that can generate VRCUrl at runtime only for URLs that are listed in the trusted URL list.
For example, you can use it in U# code like this:
var urlStr = "https://youtube.com/" + "?v=PWLPw4RE9Ig";
 
VRCUrl resultUrl;
 
var success = VRCUrl.TryGenerateVRCUrl(urlStr, out resultUrl);
 
if(success)
{
videoPlayer.LoadUrl(resultUrl);
}
else
{
// `resultUrl` is null
Debug.Log($"Failed: the host of `{urlStr}` is not allowd to generate VRCUrl.");
}
If this is implemented, for example, it will be possible to read YouTube search results as a list of video IDs with String Downloader, create video URLs with
TryGenerateVRCUrl
, and input them to the video player.