Update header.component.ts
This commit is contained in:
@@ -77,6 +77,15 @@ export class HeaderComponent implements OnInit {
|
|||||||
7: 'fatal',
|
7: 'fatal',
|
||||||
8: 'silent',
|
8: 'silent',
|
||||||
};
|
};
|
||||||
|
scrcpy_options: any = {
|
||||||
|
always_on_top: false,
|
||||||
|
bit_rate: '8000000',
|
||||||
|
crop: '1280:720:1500:350',
|
||||||
|
no_control: true,
|
||||||
|
fullscreen: false,
|
||||||
|
max_size: '0',
|
||||||
|
max_fps: '0',
|
||||||
|
};
|
||||||
currentLogCat: LogCatEntry[] = [];
|
currentLogCat: LogCatEntry[] = [];
|
||||||
isStarted: boolean;
|
isStarted: boolean;
|
||||||
showAddFavourite: boolean;
|
showAddFavourite: boolean;
|
||||||
@@ -136,7 +145,12 @@ export class HeaderComponent implements OnInit {
|
|||||||
favouriteList.push(favourite);
|
favouriteList.push(favourite);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
runscrcpy() {
|
||||||
|
this.appService
|
||||||
|
.runScrCpy(this.scrcpy_options)
|
||||||
|
.then(() => this.statusService.showStatus('Stream closed.'))
|
||||||
|
.catch(e => this.statusService.showStatus('ScrCpy Error: ' + JSON.stringify(e), true));
|
||||||
|
}
|
||||||
saveFavourites(type: string) {
|
saveFavourites(type: string) {
|
||||||
localStorage.setItem(type, JSON.stringify(this.favourites[type]));
|
localStorage.setItem(type, JSON.stringify(this.favourites[type]));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user