From dc43ab4c8fd5fca77ed431c1b0958aa714afa752 Mon Sep 17 00:00:00 2001 From: stax76 Date: Sat, 5 Mar 2022 03:48:47 +0100 Subject: [PATCH] rtsp protocol support --- src/Misc/Misc.cs | 2 ++ src/Package/Package.appxmanifest | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/Misc/Misc.cs b/src/Misc/Misc.cs index bfe1913..f8c3072 100644 --- a/src/Misc/Misc.cs +++ b/src/Misc/Misc.cs @@ -83,6 +83,8 @@ namespace mpvnet RegistryHelp.SetValue(@"HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\" + ExeFilename, null, ExePath); RegistryHelp.SetValue(@"HKCR\ytdl", "URL Protocol", ""); RegistryHelp.SetValue(@"HKCR\ytdl\shell\open\command", null, $"\"{ExePath}\" \"%1\""); + RegistryHelp.SetValue(@"HKCR\rtsp", "URL Protocol", ""); + RegistryHelp.SetValue(@"HKCR\rtsp\shell\open\command", null, $"\"{ExePath}\" \"%1\""); RegistryHelp.SetValue(@"HKCR\Applications\" + ExeFilename, "FriendlyAppName", "mpv.net media player"); RegistryHelp.SetValue(@"HKCR\Applications\" + ExeFilename + @"\shell\open\command", null, $"\"{ExePath}\" \"%1\""); RegistryHelp.SetValue(@"HKCR\SystemFileAssociations\video\OpenWithList\" + ExeFilename, null, ""); diff --git a/src/Package/Package.appxmanifest b/src/Package/Package.appxmanifest index c1401d6..707d3eb 100644 --- a/src/Package/Package.appxmanifest +++ b/src/Package/Package.appxmanifest @@ -113,6 +113,10 @@ + + + +