jacklul / USharpVideo-Subtitles

This prefab adds subtitles support to USharpVideo (or any other video player) in VRChat
MIT License
42 stars 3 forks source link

http links doesn't work #11

Open Reuniko opened 5 days ago

Reuniko commented 5 days ago

I use my own web server via http (not https) protocol to watch movies, while USharpVideo accepts links like http://.../video/Deca-Dence/%5bHorribleSubs%5d%20Deca-Dence%20-%2001%20%5b720p%5d.mkv USharpVideoSubtitles throws an error for links like http://.../video/Deca-Dence/%5bHorribleSubs%5d%20Deca-Dence%20-%2001%20%5b720p%5d.ass

InvalidOperationException: Insecure connection not allowed UnityEngine.Networking.UnityWebRequest.SendWebRequest () (at <87b3274d0f3f44a8b2eda26428f9024a>:0) VRC.SDK3.StringLoading.VRCStringDownload.StartAtCorrectTime (System.Threading.CancellationToken cancellationToken) (at <f810a23416cf490ab7988797eeaacde8>:0) Cysharp.Threading.Tasks.CompilerServices.AsyncUniTask1[TStateMachine].GetResult (System.Int16 token) (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/CompilerServices/StateMachineRunner.cs:218) Cysharp.Threading.Tasks.UniTaskExtensions+<>c.b16_0 (System.Object state) (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/UniTaskExtensions.cs:572) UnityEngine.Debug:LogException(Exception) Cysharp.Threading.Tasks.UniTaskScheduler:PublishUnobservedTaskException(Exception) (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/UniTaskScheduler.cs:90) Cysharp.Threading.Tasks.<>c:b__16_0(Object) (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/UniTaskExtensions.cs:576) Cysharp.Threading.Tasks.UniTaskCompletionSourceCore1:TrySetException(Exception) (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/UniTaskCompletionSource.cs:167) Cysharp.Threading.Tasks.CompilerServices.AsyncUniTask1:SetException(Exception) (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/CompilerServices/StateMachineRunner.cs:210) VRC.SDK3.StringLoading.d33:MoveNext() Cysharp.Threading.Tasks.CompilerServices.AsyncUniTask1:Run() (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/CompilerServices/StateMachineRunner.cs:189) Cysharp.Threading.Tasks.AwaiterActions:Continuation(Object) (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/UniTask.cs:21) Cysharp.Threading.Tasks.UniTaskCompletionSourceCore1:TrySetResult(Object) (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/UniTaskCompletionSource.cs:139) Cysharp.Threading.Tasks.WaitWhilePromise:MoveNext() (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/UniTask.WaitUntil.cs:234) Cysharp.Threading.Tasks.Internal.PlayerLoopRunner:RunCore() (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/Internal/PlayerLoopRunner.cs:175) Cysharp.Threading.Tasks.Internal.PlayerLoopRunner:Update() (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/Internal/PlayerLoopRunner.cs:145) Cysharp.Threading.Tasks.Internal.PlayerLoopRunner:Run() (at ./Packages/com.vrchat.base/Runtime/VRCSDK/Plugins/UniTask/Runtime/Internal/PlayerLoopRunner.cs:104) `

jacklul commented 5 days ago

Looks like this might be related to https://feedback.vrchat.com/bug-reports/p/1346-http-urls-no-longer-work-with-string-loading

So most likely nothing I can do on my side.