dorasto / public

A public repository for hosting discussions & issues
0 stars 0 forks source link

🐞 - VRCDN preview tile stealing RAM even when not playing #45

Open M1XZG opened 3 days ago

M1XZG commented 3 days ago

Doras Username

wildwanderer_vr

What happened?

On my profile page I have my VRCDN live stream preview setup. This doesn't autoplay so one would assume it's doing nothing, but after couple of hours I notice that in chrome the tab is consuming a huge amount of RAM.

Image

Here you can watch it increase in size in real time

https://github.com/user-attachments/assets/adc4eb19-e56f-4181-8642-01d023556c92

Replication Steps

Nothing, just have VRCDN loaded in the profile as a tile.

User or Brand related

My acconut

What browsers are you seeing the problem on?

Chrome (or chrome based like Brave, Arc, etc)

doras-to-admin commented 3 days ago

Thank you for making Doras a better place 🚀

This has been added to our Public Project Board and our team will triage and action accordingly.

tommerty commented 1 day ago

The embeds source code on our end:

<video controls>
  <source
    src={`https://stream.vrcdn.live/live/${blockUpdate.url}.live.mp4`}
    type="video/mp4"
    />
</video>

Where ${blockUpdate.url} is the input of the VRCDN Username

The recommendation from @jazzy348 sent over from @M1XZG was:

<video autoplay muted>
  <source src="https://stream.vrcdn.live/live/${streamName}.mp4" type="video/mp4"/>
</video>
jazzy348 commented 1 day ago

What's most likely happening here is the video embed is writing the recevied stream data to the buffer rather then discarding it after showing it.