This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---- | |
# This script will install PowerShell Universal on Linux as a service | |
# This has been tested on Ubuntu 20.04 (ARM64) on a Raspberry Pi 4 | |
# ---- | |
# Dependencies: | |
# wget | |
# unzip | |
# | |
# Make sure they are installed | |
# ---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cmdletbinding()] | |
param( | |
[string]$MinGWPath = "C:\MinGW" | |
) | |
$ErrorActionPreference = 'Stop'; | |
<# | |
You will need to install: | |
- MinGW : https://osdn.net/frs/redir.php?m=pumath&f=mingw%2F68260%2Fmingw-get-setup.exe | |
- Install packages | |
- mingw32-base-bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cmdletbinding()] | |
param( | |
[parameter(Mandatory=$true)] | |
[string]$Url, | |
[parameter(Mandatory=$true)] | |
[string]$Key, | |
[parameter(Mandatory=$true)] | |
[string]$GroupName | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This works..... (for playing audio) | |
MediaEngine Media; | |
MediaManager.Startup(); | |
var attributes = new MediaEngineAttributes | |
{ | |
AudioCategory = AudioStreamCategory.BackgroundCapableMedia, | |
AudioEndpointRole = AudioEndpointRole.Multimedia | |
}; |