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

Added audio redirection toggle in stream settings #229

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions desktop-app/src/app/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ export class AppService {
'" --crop ' +
options.crop +
' ' +
(!options.redirect_audio ? ' --no-audio ' : '') +
' -b ' +
options.bit_rate +
' ' +
Expand Down
16 changes: 16 additions & 0 deletions desktop-app/src/app/stream-options/stream-options.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,22 @@
</label>
</div>
</div>
<div class="col s12 fixed-height">
Redirect audio from the headset
<div class="grey-text small">
Redirects audio from the headset to computer speakers.
</div>
</div>
<div class="col s12 fixed-height">
<div class="switch">
<label>
Off
<input type="checkbox" [(ngModel)]="scrcpy_options.redirect_audio" />
<span class="lever"></span>
On
</label>
</div>
</div>
<div class="col s12 fixed-height">
Bit Rate
<div class="grey-text small">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { StatusBarService } from '../status-bar.service';
export class StreamOptionsComponent implements OnInit {
scrcpy_options: any = {
always_on_top: false,
redirect_audio: true,
bit_rate: '8000000',
crop: '1600:900:2017:510',
no_control: true,
Expand Down