MerlinVR / USharpVideo

A basic video player made for VRChat using Udon and UdonSharp
MIT License
326 stars 43 forks source link

Not working at all #63

Closed ShaggyBlackOG closed 1 year ago

ShaggyBlackOG commented 1 year ago

hey I'm just learning world creation and such and I really wanna get these TVs working so I can stream my desktop I my world but when I press enter after adding a link nothing happens is there any easy way to go about fixing this?

MerlinVR commented 1 year ago

Hey this is usually due to a Unity bug when it's importing the VRCSDK. Try clicking the menu dropdown for VRChat SDK > Reload SDK and see if the input field script on the video player is recognized as a valid script properly. The input field script is on the GameObject under USharpVideo/ControlsUI/InputField

image

It should look like this if it's working: image

If it's not working you'll see a missing script warning in its place. If reloading the SDK doesn't work the first time, continue clicking the Reload SDK menu item. It can take dozens of tries sometimes. If that doesn't work, try deleting your Library folder in the Unity project and restarting Unity. If that doesn't work, try a few more times. If that doesn't work, make a new project.

ShaggyBlackOG commented 1 year ago

thank you so much for getting back to me so soon ill try these things and get back on if i can get it fixed or not

ShaggyBlackOG commented 1 year ago

Will testing work with cyan or do I need to test in world to actually use it

MerlinVR commented 1 year ago

It depends on the video, if you replace the EditorURLResolverShim.cs file with this one https://github.com/MerlinVR/USharpVideo/blob/master/Assets/USharpVideo/Scripts/Editor/EditorURLResolverShim.cs it should work in editor for most videos.

MerlinVR commented 1 year ago

If the input field component looks like it does in my picture it is likely to work, so you can make sure it's not a missing script component, and make sure the fields are filled out the same way if you don't want to try playing videos every time you change something.

ShaggyBlackOG commented 1 year ago

yes my project looks exact to yours

MerlinVR commented 1 year ago

See if it plays videos in-game correctly.

ShaggyBlackOG commented 1 year ago

and im sorry i have no idea what im looking at when it comes to the scripts and alright ill upload rn

ShaggyBlackOG commented 1 year ago

IT WORKS not with cyan but it does in game ty so much do you know how I would get multiple linked in my world with there own UI areas to input

MerlinVR commented 1 year ago

If you want multiple video players across the world that play the same video, you can duplicate these objects and place them around the world: image

If you're duplicating audio sources you'll probably want to use the avpro only mode https://github.com/MerlinVR/USharpVideo/wiki/avpro-only

For the volume control to work correctly you'll also need to add the new duplicated audio sources to the Audio Sources list on the VideoPlayerManager script on the Internals object image image

ShaggyBlackOG commented 1 year ago

What part do I need to remove for the audio to link? I almost got this all worked out now just missing the audio in one of my areas and I linked it in the audio sources

MerlinVR commented 1 year ago

You copy the audio sources, follow the article on avpro-only, and add the new copied audio sources to the Audio Sources array I posted an image of

ShaggyBlackOG commented 1 year ago

okay i got it all sorted but quest is saying things are upside down

MerlinVR commented 1 year ago

Replace the StandardVideoCore.cginc file with this one https://raw.githubusercontent.com/MerlinVR/USharpVideo/master/Assets/USharpVideo/Shaders/StandardVideoCore.cginc

ShaggyBlackOG commented 1 year ago

how do i swap those out like how do i get all that as a file

MerlinVR commented 1 year ago

Ctrl+S in the browser

ShaggyBlackOG commented 1 year ago

oh okay im so sorry you have to deal with an amature

ShaggyBlackOG commented 1 year ago

where do i put this...

MerlinVR commented 1 year ago

You replace the file with the same name. Search for it in the assets folder

ShaggyBlackOG commented 1 year ago

Okay its been done uploading now ill let you know if it worked!

ShaggyBlackOG commented 1 year ago

its still upside down only on stream mode

MerlinVR commented 1 year ago

Are you sure you replaced the file correctly? That's the fix for your issue.

ShaggyBlackOG commented 1 year ago

do I just delete it and then drag the new one in?

MerlinVR commented 1 year ago

Yes

ShaggyBlackOG commented 1 year ago

ok I did but its still upside down im using VRCDN streaming so I can stream my desktop I know Sovern has gotten it to work it would do this from time to time but then he said to have them rejoin and it would usually fix but that doesn't seem to be the case this time

MerlinVR commented 1 year ago

Are other videos not flipped? If it's an issue with your streaming setup I can't help much.

ShaggyBlackOG commented 1 year ago

no videos are ok i dont know about other streams but its ok on pc if its a me problem then ill figure it out

MerlinVR commented 1 year ago

I mean if you play videos with the stream player

ShaggyBlackOG commented 1 year ago

let me check

ShaggyBlackOG commented 1 year ago

streams dont play on quest

ShaggyBlackOG commented 1 year ago

only this one

ShaggyBlackOG commented 1 year ago

quest nooo this is what they said

MerlinVR commented 1 year ago

Yeah dunno, if replacing the file I linked doesn't work I can't do much.

ShaggyBlackOG commented 1 year ago

that's ok for some reason protv works with it now so I'm just learning how to link those now ty so much for your help and ill make sure to let all my friends know how to get this working if they have issues