obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
59.15k stars 7.86k forks source link

Media source always played if close file when inactive is checked #10676

Open Xarkam opened 4 months ago

Xarkam commented 4 months ago

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.1.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/rOSyWMH7fRWelcVT

OBS Studio Crash Log URL

No response

Expected Behavior

The media source should not be played if the "close file when inactive" option is checked

Current Behavior

The media source is played even though the option has been checked so that obs does not do so.

I noticed that the progress bars for playing a media source below the preview moved even though I checked the option not to open the file if it is not visible. (the countdown also turns indicating the time already read on the media)

See screenshot below.

Steps to Reproduce

  1. Create group in Sources
  2. Add media source into group
  3. Hide group & media source
  4. Close Obs
  5. Open Obs and see media is read as muted
  6. ...

Anything else we should know?

image

SuslikV commented 4 months ago

It has nothing to do with grouping. If Restart playback when source becomes active option wasn't set then Media Source always started during OBS launch (even when it was disabled/invisible). Probably, VLC Video Source has better logic in handling media for such scenarios, there is option to Pause when not visible, unpause when visible.

Personally, I think it is bug, but it was so long in the code that now it is feature.

Sugam-Chand-M commented 4 months ago

Hi @Xarkam Can you please provide a video recording of the issue.

Xarkam commented 4 months ago

Hi @Xarkam Can you please provide a video recording of the issue.

Yes.

https://github.com/obsproject/obs-studio/assets/331816/49bc9455-a7e4-49c0-b2fe-95840216db51

While recording the video, I wondered if it's not a bug updating the component in the window.