stremio-web icon indicating copy to clipboard operation
stremio-web copied to clipboard

Settings: Save playbackSpeed and volume

Open Aztup opened this issue 4 months ago • 9 comments

This PR depends on https://github.com/Stremio/stremio-core/pull/838

Aztup avatar Jul 30 '25 17:07 Aztup

Hi, thank you for your PR, why did you choose to pass playbackSpeed as arg to the load command of stremio-video?

tymmesyde avatar Jul 31 '25 08:07 tymmesyde

Hello, the issue was that calling video.load resets the playback speed back to 1, and I believe there's no way to know when the video is actually loaded, but maybe there's a better way to do this?

Aztup avatar Jul 31 '25 13:07 Aztup

Could this be added to the StreamItemState? https://github.com/Stremio/stremio-core/blob/dcbb760af5f95b354b6ce6d8783fdb1c26bf34ec/src/types/streams/streams_item.rs#L29

This struct should keep track the settings per stream and bindge-watching group.

elpiel avatar Aug 07 '25 09:08 elpiel

It's added. If I understand correctly, this is used to sync the state between devices? In that case, do I also need to add it somewhere else?

Aztup avatar Aug 17 '25 04:08 Aztup

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 26 '25 03:09 CLAassistant

Hello, the issue was that calling video.load resets the playback speed back to 1, and I believe there's no way to know when the video is actually loaded, but maybe there's a better way to do this?

Isn't it the same for volume, wouldn't it reset too? You can check video.state.loaded === true to know if the video is loaded

tymmesyde avatar Oct 07 '25 15:10 tymmesyde

No, volume would not reset, only the playback speed. I'm also pretty sure I did try to do it after it was loaded but it didn't seem to work.

Aztup avatar Oct 07 '25 15:10 Aztup

No, volume would not reset, only the playback speed. I'm also pretty sure I did try to do it after it was loaded but it didn't seem to work.

Can you pass either both volume and playbackSpeed in the command options or find another way with react hook to set those?

tymmesyde avatar Oct 07 '25 15:10 tymmesyde

This no longer requires https://github.com/Stremio/stremio-video/pull/117 so I've closed it. This version should be cleaner.

Aztup avatar Oct 07 '25 18:10 Aztup

hi pls resolve conflicts

kKaskak avatar Nov 19 '25 12:11 kKaskak

Should be good :)

Aztup avatar Nov 21 '25 12:11 Aztup