From 9534ed3a8a64dfd1c23d61f834b73146bfbe4362 Mon Sep 17 00:00:00 2001 From: Elias Quinn Date: Fri, 13 Jun 2025 14:18:05 +0100 Subject: [PATCH] pause,vol and catagory items work and reading from json --- ShadowStream/Modules/Obejeckte/Catagory.cs | 12 + ShadowStream/Modules/Obejeckte/Favorites.cs | 6 + ShadowStream/Modules/Obejeckte/Item.cs | 2 +- ShadowStream/ReadME/VLC.txt | 12 + ShadowStream/ReadME/source stream.txt | 10 + ShadowStream/ShadowStream.csproj | 2 + ShadowStream/Views/MainWindow.xaml | 39 ++- ShadowStream/Views/MainWindow.xaml.cs | 328 +++++++++++++----- .../bin/Debug/net8.0-windows/ShadowStream.dll | Bin 66560 -> 71168 bytes .../bin/Debug/net8.0-windows/ShadowStream.exe | Bin 138752 -> 138752 bytes .../bin/Debug/net8.0-windows/ShadowStream.pdb | Bin 24456 -> 25832 bytes .../net8.0-windows/Temp Data/Muvies.json | 4 +- .../net8.0-windows/Temp Data/Series.json | 102 +++--- .../net8.0-windows/file finder test.dll | Bin 17920 -> 17920 bytes .../net8.0-windows/file finder test.exe | Bin 138752 -> 138752 bytes .../net8.0-windows/file finder test.pdb | Bin 14440 -> 14440 bytes .../ShadowStream.AssemblyInfo.cs | 2 +- .../ShadowStream.AssemblyInfoInputs.cache | 2 +- ...hadowStream.csproj.AssemblyReference.cache | Bin 3460 -> 3460 bytes ...hadowStream.csproj.CoreCompileInputs.cache | 2 +- .../obj/Debug/net8.0-windows/ShadowStream.dll | Bin 66560 -> 71168 bytes .../net8.0-windows/ShadowStream.g.resources | Bin 9136 -> 10370 bytes .../obj/Debug/net8.0-windows/ShadowStream.pdb | Bin 24456 -> 25832 bytes .../ShadowStream.sourcelink.json | 2 +- .../ShadowStream_MarkupCompile.cache | 2 +- .../net8.0-windows/Views/MainWindow.baml | Bin 5737 -> 6971 bytes .../net8.0-windows/Views/MainWindow.g.cs | 101 +++++- .../obj/Debug/net8.0-windows/apphost.exe | Bin 138752 -> 138752 bytes .../Debug/net8.0-windows/ref/ShadowStream.dll | Bin 24064 -> 24576 bytes .../net8.0-windows/refint/ShadowStream.dll | Bin 24064 -> 24576 bytes .../bin/Debug/net8.0/file finder test.dll | Bin 17920 -> 17920 bytes .../bin/Debug/net8.0/file finder test.exe | Bin 138752 -> 138752 bytes .../bin/Debug/net8.0/file finder test.pdb | Bin 14440 -> 14440 bytes .../obj/Debug/net8.0/apphost.exe | Bin 138752 -> 138752 bytes .../net8.0/file finder test.AssemblyInfo.cs | 2 +- ...file finder test.AssemblyInfoInputs.cache | 2 +- .../obj/Debug/net8.0/file finder test.dll | Bin 17920 -> 17920 bytes .../obj/Debug/net8.0/file finder test.pdb | Bin 14440 -> 14440 bytes .../net8.0/file finder test.sourcelink.json | 2 +- .../Debug/net8.0/ref/file finder test.dll | Bin 8704 -> 8704 bytes .../Debug/net8.0/refint/file finder test.dll | Bin 8704 -> 8704 bytes 41 files changed, 467 insertions(+), 167 deletions(-) create mode 100644 ShadowStream/Modules/Obejeckte/Favorites.cs create mode 100644 ShadowStream/ReadME/VLC.txt create mode 100644 ShadowStream/ReadME/source stream.txt diff --git a/ShadowStream/Modules/Obejeckte/Catagory.cs b/ShadowStream/Modules/Obejeckte/Catagory.cs index 15d752d..a38a72e 100644 --- a/ShadowStream/Modules/Obejeckte/Catagory.cs +++ b/ShadowStream/Modules/Obejeckte/Catagory.cs @@ -38,4 +38,16 @@ public class Catagory { this.items.AddRange(items); } + + public int contains(string path) + { + int tmp = 0; + foreach (Item item in items) + { + if(item.getLink().Contains(path)) + break; + tmp++; + } + return tmp; + } } \ No newline at end of file diff --git a/ShadowStream/Modules/Obejeckte/Favorites.cs b/ShadowStream/Modules/Obejeckte/Favorites.cs new file mode 100644 index 0000000..80cc2a6 --- /dev/null +++ b/ShadowStream/Modules/Obejeckte/Favorites.cs @@ -0,0 +1,6 @@ +namespace ShadowStream.Obejeckte; + +public class Favorites +{ + public List SharedRefs = new List(); +} \ No newline at end of file diff --git a/ShadowStream/Modules/Obejeckte/Item.cs b/ShadowStream/Modules/Obejeckte/Item.cs index f353dd5..db2f6b7 100644 --- a/ShadowStream/Modules/Obejeckte/Item.cs +++ b/ShadowStream/Modules/Obejeckte/Item.cs @@ -33,7 +33,7 @@ public class Item { Content = isFoto ? "Show" : "Play", HorizontalAlignment = HorizontalAlignment.Center, - Tag = path // Store path or any identifier + Tag = path+"/"+type // Store path or any identifier }; if (clickHandler != null) diff --git a/ShadowStream/ReadME/VLC.txt b/ShadowStream/ReadME/VLC.txt new file mode 100644 index 0000000..170adea --- /dev/null +++ b/ShadowStream/ReadME/VLC.txt @@ -0,0 +1,12 @@ +VLC plugins in C# are components that extend the functionality of the VLC media framework when integrated into a C# +application. These plugins enable developers to access additional codecs, filters, and input/output modules to handle +various media formats and processing tasks. + +To use VLC plugins in C#, the application must first initialize the VLC core library with the appropriate configuration +options that specify the plugin path. This initialization ensures that the VLC engine can locate and load the necessary +plugins at runtime. The initialization process typically involves setting up the VLC instance with configuration +parameters and plugin directories before creating media players or other related objects. + +Proper initialization is critical because it establishes the environment where VLC plugins can operate, enabling +seamless playback, streaming, or media manipulation within the C# application. After initialization, developers interact +with VLC objects to control media playback, apply filters, or utilize additional features provided by the loaded plugins. \ No newline at end of file diff --git a/ShadowStream/ReadME/source stream.txt b/ShadowStream/ReadME/source stream.txt new file mode 100644 index 0000000..2d3030f --- /dev/null +++ b/ShadowStream/ReadME/source stream.txt @@ -0,0 +1,10 @@ +Using a Source Stream for Bitmap Conversion + +In image processing within C#, a source stream commonly refers to a stream of data that serves as the origin for reading +image information. When converting a Bitmap to other formats—such as a BitmapImage for WPF applications or a Base64 +string representation—a MemoryStream often acts as this source stream. + +The source stream temporarily holds the binary image data in memory, enabling smooth data transfer and conversion +without requiring disk access. By writing the bitmap data into the source stream, you can efficiently read and transform +the image into the desired target format. This approach is useful for scenarios involving UI rendering, data +serialization, or network transmission. \ No newline at end of file diff --git a/ShadowStream/ShadowStream.csproj b/ShadowStream/ShadowStream.csproj index 7fb5348..fb9a35e 100644 --- a/ShadowStream/ShadowStream.csproj +++ b/ShadowStream/ShadowStream.csproj @@ -11,6 +11,8 @@ Propertis\app.manifest + + true diff --git a/ShadowStream/Views/MainWindow.xaml b/ShadowStream/Views/MainWindow.xaml index 1c6325d..f63c3da 100644 --- a/ShadowStream/Views/MainWindow.xaml +++ b/ShadowStream/Views/MainWindow.xaml @@ -56,16 +56,16 @@ Grid.Column="0" Background="#222" VerticalAlignment="Stretch"> -