added device support for scrcpy
This commit is contained in:
@@ -334,7 +334,9 @@ export class AppService {
|
||||
(options.fullscreen ? '-f' : '') +
|
||||
' ' +
|
||||
(options.no_control ? '-n' : '') +
|
||||
' --window-title "SideQuest Stream"';
|
||||
' --window-title "SideQuest Stream"' +
|
||||
' ' +
|
||||
(options.device ? '-s ' + options.device : '');
|
||||
console.log(command);
|
||||
this.exec(command, function(err, stdout, stderr) {
|
||||
if (err) {
|
||||
@@ -393,7 +395,7 @@ export class AppService {
|
||||
resolve(path.split('.')[0]);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
this.extract(path, { dir: this.path.join(this.appData, 'scrcpy') }, callback);
|
||||
this.scrcpyBinaryPath = downloadPath;
|
||||
});
|
||||
|
||||
@@ -85,6 +85,7 @@ export class HeaderComponent implements OnInit {
|
||||
fullscreen: false,
|
||||
max_size: '0',
|
||||
max_fps: '0',
|
||||
device: '',
|
||||
};
|
||||
currentLogCat: LogCatEntry[] = [];
|
||||
isStarted: boolean;
|
||||
@@ -148,6 +149,7 @@ export class HeaderComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
runscrcpy() {
|
||||
this.scrcpy_options.device = this.adbService.deviceSerial;
|
||||
this.appService
|
||||
.runScrCpy(this.scrcpy_options)
|
||||
.then(() => this.statusService.showStatus('Stream closed.'))
|
||||
|
||||
Reference in New Issue
Block a user