Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Mute/Volume 0.0 not working while screen recording #4313

Open
AakashJaiswal-beta opened this issue Nov 29, 2024 · 7 comments
Open

[BUG]: Mute/Volume 0.0 not working while screen recording #4313

AakashJaiswal-beta opened this issue Nov 29, 2024 · 7 comments

Comments

@AakashJaiswal-beta
Copy link

AakashJaiswal-beta commented Nov 29, 2024

Version

6.8.2

What platforms are you having the problem on?

Android

System Version

All

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

I encountered an issue, when I screen record my application using, react native video,

  • Screen Recorded video have the sound of the muted videos.
  • In some phone the file is corrupted or is a lot laggy
  • The saved video in the gallery have alot of sounds all over the components where the video is muted and volume is 0;

DO NOTE: the sound is not being played in the app itself, muting and unmuting is working in the app,

BUT on screen recording it, the sound of all those unpaused and muted video is there in the recorded video.

The code snippet is:

            video config=   Platform.select({
ios: {
  automaticallyWaitsToMinimizeStalling: false,
  bufferConfig: {
    minBufferMs: 2000,
    maxBufferMs: 5000,
    bufferForPlaybackMs: 1000,
    bufferForPlaybackAfterRebufferMs: 2000,
  },
},
android: {
  bufferConfig: {
    minBufferMs: 2000,
    maxBufferMs: 5000,
    bufferForPlaybackMs: 1000,
    bufferForPlaybackAfterRebufferMs: 2000,
  },
},

});

                       <Video
                            source={{
                                uri: videoUri,
                            }}
                            ref={ref => {
                                this.player = ref;
                            }}
                            onBuffer={this.onBuffer}
                            onError={this.videoError}
                            style={styles.thumbnailImage}
                            paused={isPaused}
                            repeat={true}
                            resizeMode="stretch"
                            muted={true}
                            {...videoConfig}
                        />

I even tried adding volume: 0, but it disnot work as well

Reproduction Link

Reproduction

Step to reproduce this bug are:

  • Initially when my video is paused nothing is happening,
  • But when video is changed from paused to played, the video sound is coming in the screen recording of my app,
    DO NOTE: the sound is not being played in the app itself, muting and unmuting is working in the app,

BUT on screen recording it, the sound of all those unpaused and muted video is there in the recorded video.

Copy link

github-actions bot commented Nov 29, 2024

Previous bot comment (click to expand)
Previous bot comment (click to expand)
Previous bot comment (click to expand)

Thank you for your issue report. Please note that the following information is missing or incomplete:

  • reproduction link

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

There is a newer version of the library available. You are using version 6.6.4, while the latest stable version is 6.8.2. Please update to the latest version and check if the issue still exists.

Note: If the issue still exists, please update the issue report with the latest information.

Copy link

github-actions bot commented Nov 29, 2024

Previous bot comment (click to expand)
Previous bot comment (click to expand)

Thank you for your issue report. Please note that the following information is missing or incomplete:

  • reproduction link

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

Copy link

github-actions bot commented Nov 29, 2024

Previous bot comment (click to expand)

Thank you for your bug report. We will review it and get back to you if we need more information.

Copy link

Thank you for your issue report. Please note that the following information is missing or incomplete:

  • reproduction link

Please update your issue with this information to help us address it more effectively.

Note: issues without complete information have a lower priority

@freeboub
Copy link
Collaborator

look strange, but I don't know how we can fix it...
I usually use another package to control device volume instead of player volume :/
maybe switching to texture view can fix the issue. you can have a try I think.

@AakashJaiswal-beta
Copy link
Author

Tried doing it on adding a viewType prop and changing it to textured view, still I am facing the same issue and sometimes the video is not openable by the phone, it says corrupted file or screen recording cannot be played, even on showing it on meet or any other screen sharing calls, It is creating an issue

@freeboub
Copy link
Collaborator

freeboub commented Dec 5, 2024

Ok, another solution can be to unselect audio tracks I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants