commit 36515aa102ce4bad18cecbc897fa3fdb9a71eab5 Author: BlubbFish Date: Sun Nov 15 16:38:38 2015 +0000 gopro-control hinzugefügt diff --git a/GoproControl.sln b/GoproControl.sln new file mode 100644 index 0000000..50cb7cd --- /dev/null +++ b/GoproControl.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GoproControl", "GoproControl\GoproControl.csproj", "{D3C5C8E0-C6B0-4270-B625-09B41DA0BEE5}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D3C5C8E0-C6B0-4270-B625-09B41DA0BEE5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D3C5C8E0-C6B0-4270-B625-09B41DA0BEE5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D3C5C8E0-C6B0-4270-B625-09B41DA0BEE5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D3C5C8E0-C6B0-4270-B625-09B41DA0BEE5}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/GoproControl/App.config b/GoproControl/App.config new file mode 100644 index 0000000..fad249e --- /dev/null +++ b/GoproControl/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/GoproControl/Form1.Designer.cs b/GoproControl/Form1.Designer.cs new file mode 100644 index 0000000..cd3d1cd --- /dev/null +++ b/GoproControl/Form1.Designer.cs @@ -0,0 +1,45 @@ +namespace GoproControl { + partial class Form1 { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) { + if(disposing && (components != null)) { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); + this.SuspendLayout(); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(784, 562); + this.MinimumSize = new System.Drawing.Size(800, 600); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + + } + + #endregion + + } +} + diff --git a/GoproControl/Form1.cs b/GoproControl/Form1.cs new file mode 100644 index 0000000..3db337e --- /dev/null +++ b/GoproControl/Form1.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System.Windows.Forms; +using System.Net.Sockets; +using System.Globalization; + +namespace GoproControl { + public partial class Form1 : Form { + public Form1() { + InitializeComponent(); + keepAliveThread(); + playVideo(); + } + + private void keepAliveThread() { + Thread t = new Thread(keepAliveRunner); + t.Start(); + while(!t.IsAlive); + } + + private void keepAliveRunner(object obj) { + while(true) { + UdpClient udpClientB = new UdpClient(); + Byte[] sendBytes = Encoding.ASCII.GetBytes(String.Format(CultureInfo.InvariantCulture, "_GPHD_:{0:D}:{1:d}:{2:d}:{3:F6}\n", 0, 0, 2, 0)); + udpClientB.Send(sendBytes, sendBytes.Length, "10.5.5.9", 8554); + Thread.Sleep(2500); + } + } + + private void playVideo() { + //this.axWindowsMediaPlayer1.URL = "udp://:8554"; + //Video v = Video.FromUrl(new Uri("udp://:8554")); + //v.Owner = this.pictureBox1; + //v.Play(); + } + } +} diff --git a/GoproControl/Form1.resx b/GoproControl/Form1.resx new file mode 100644 index 0000000..baaa825 --- /dev/null +++ b/GoproControl/Form1.resx @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACFTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5BeEhvc3QrU3RhdGUBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAtwAAAAIB + AAAAAQAAAAAAAAAAAAAAAKIAAAAAAwAACAAAAAAABQAAAAAAAADwPwMAAAAAAAUAAAAAAAAAAAAIAAIA + AAAAAAMAAQAAAAsA//8DAAAAAAALAP//CAACAAAAAAADADIAAAALAAAACAAKAAAAZgB1AGwAbAAAAAsA + AAALAAAACwD//wsA//8LAAAACAACAAAAAAAIAAIAAAAAAAgAAgAAAAAACAACAAAAAAALAAAAwAcAAGEC + AAAL + + + \ No newline at end of file diff --git a/GoproControl/GoproControl.csproj b/GoproControl/GoproControl.csproj new file mode 100644 index 0000000..943e1e4 --- /dev/null +++ b/GoproControl/GoproControl.csproj @@ -0,0 +1,89 @@ + + + + + Debug + AnyCPU + {D3C5C8E0-C6B0-4270-B625-09B41DA0BEE5} + WinExe + Properties + GoproControl + GoproControl + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + true + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + \ No newline at end of file diff --git a/GoproControl/Program.cs b/GoproControl/Program.cs new file mode 100644 index 0000000..7261274 --- /dev/null +++ b/GoproControl/Program.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace GoproControl { + static class Program { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/GoproControl/Properties/AssemblyInfo.cs b/GoproControl/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..bf951ed --- /dev/null +++ b/GoproControl/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die mit einer Assembly verknüpft sind. +[assembly: AssemblyTitle("GoproControl")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("GoproControl")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar +// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von +// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("9deb56da-8fb3-4a56-9c63-7b72d5fda762")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/GoproControl/Properties/Resources.Designer.cs b/GoproControl/Properties/Resources.Designer.cs new file mode 100644 index 0000000..b7db951 --- /dev/null +++ b/GoproControl/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.34209 +// +// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn +// der Code neu generiert wird. +// +//------------------------------------------------------------------------------ + +namespace GoproControl.Properties { + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse + // über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if((resourceMan == null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GoproControl.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/GoproControl/Properties/Resources.resx b/GoproControl/Properties/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/GoproControl/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/GoproControl/Properties/Settings.Designer.cs b/GoproControl/Properties/Settings.Designer.cs new file mode 100644 index 0000000..ae693dd --- /dev/null +++ b/GoproControl/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GoproControl.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/GoproControl/Properties/Settings.settings b/GoproControl/Properties/Settings.settings new file mode 100644 index 0000000..abf36c5 --- /dev/null +++ b/GoproControl/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + +