From: <pra...@us...> - 2008-03-17 14:34:44
|
Revision: 1480 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1480&view=rev Author: prashantv Date: 2008-03-17 07:33:53 -0700 (Mon, 17 Mar 2008) Log Message: ----------- Fix up svn import not putting the files in the right folder. Modified Paths: -------------- trunk/plugins/XBMCServer/bin/Release/TVServerXBMC.dll trunk/plugins/XBMCServer/bin/Release/TVServerXBMC.pdb Added Paths: ----------- trunk/plugins/XBMCServer/ trunk/plugins/XBMCServer/Commands/ trunk/plugins/XBMCServer/ConnectionHandler.cs trunk/plugins/XBMCServer/Listener.cs trunk/plugins/XBMCServer/Plugin.cs trunk/plugins/XBMCServer/Properties/ trunk/plugins/XBMCServer/TV/ trunk/plugins/XBMCServer/TVServerConnection.cs trunk/plugins/XBMCServer/TVServerXBMC.csproj trunk/plugins/XBMCServer/TVServerXBMC.sln trunk/plugins/XBMCServer/TVServerXBMC.suo trunk/plugins/XBMCServer/bin/ Removed Paths: ------------- trunk/plugins/Commands/ trunk/plugins/ConnectionHandler.cs trunk/plugins/Listener.cs trunk/plugins/Plugin.cs trunk/plugins/Properties/ trunk/plugins/TV/ trunk/plugins/TVServerConnection.cs trunk/plugins/TVServerXBMC.csproj trunk/plugins/TVServerXBMC.sln trunk/plugins/TVServerXBMC.suo trunk/plugins/bin/ Deleted: trunk/plugins/ConnectionHandler.cs =================================================================== --- trunk/plugins/ConnectionHandler.cs 2008-03-17 14:14:49 UTC (rev 1479) +++ trunk/plugins/ConnectionHandler.cs 2008-03-17 14:33:53 UTC (rev 1480) @@ -1,157 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Net.Sockets; -using System.Threading; -using System.Net; -using System.IO; - -using TVServerXBMC.Commands; - -namespace TVServerXBMC -{ - class ConnectionHandler - { - private TcpClient client; - private Dictionary<String, CommandHandler> allHandlers; - - public ConnectionHandler(TcpClient client) - { - this.client = client; - addHandlers(); - } - - private void addHandlers() - { - List<CommandHandler> handlers = new List<CommandHandler>(); - allHandlers = new Dictionary<String,CommandHandler>(); - - handlers.Add(new ListChannels(this)); - handlers.Add(new ListGroups(this)); - handlers.Add(new CloseConnection(this)); - handlers.Add(new TimeshiftChannel(this)); - handlers.Add(new StopTimeshift(this)); - - foreach(CommandHandler h in handlers) - { - allHandlers.Add(h.getCommandToHandle().ToLower(), h); - } - - } - - - - public void writeList(List<string> list) - { - // escape every value - List<string> escaped = list.ConvertAll<string>(new Converter<string, string>(Uri.EscapeDataString)); - - // send it as one line - WriteLine(String.Join(",",escaped.ToArray())); - - Console.WriteLine(String.Join(",", escaped.ToArray())); - } - - public void HandleConnection() - { - NetworkStream cStream = this.client.GetStream(); - StreamReader reader = new StreamReader(cStream); - - // first we get what version of the protocol - // we expect "TVServerXBMC0-1" - String versionInfo = reader.ReadLine(); - if (versionInfo == null) return; - - if (versionInfo.Contains("TVServerXBMC:0-1")) - { - WriteLine("Protocol-Accept:1"); - Console.WriteLine("Correct protocol, connection accepted!"); - } - else - { - WriteLine("Unexpected Protocol"); - client.Close(); - Console.WriteLine("Unexpected protocol"); - return; - } - - ProcessConnection(reader); - - } - - public void WriteLine(String line) - { - StreamWriter writer = new StreamWriter(this.client.GetStream ()); - writer.WriteLine(line); - writer.Flush(); - } - - public void Disconnect() - { - client.Close(); - } - - - private void handleCommand(String command, String[] arguments) - { - String handleCommand = command.ToLower(); - if (allHandlers.ContainsKey(handleCommand)) - { - allHandlers[handleCommand].handleCommand(command, arguments); - } - else - { - WriteLine("UnknownCommand:" + command); - Console.WriteLine("Unknown command : " + command); - } - - - } - - private void ProcessConnection(StreamReader reader) - { - try - { - while (client.Connected) - { - String line = reader.ReadLine(); - - // every command is Command:Argument,Argument,Argument - // where the arguments are uri encoded. Commands are not encoded - String[] parts = line.Split(new Char[] { ':' }, 2); - - if (parts.Length < 2) - { - Console.WriteLine("Command format incorrect"); - WriteLine("Command format incorrect"); - return; - } - - - - String command = parts[0]; - String[] arguments = parts[1].Split(new Char[] { ',' }); - - for (int i = 0; i < arguments.Length; i++) - { - arguments[i] = System.Uri.UnescapeDataString(arguments[i]); - } - - Console.WriteLine("Handling command; " + command); - handleCommand(command, arguments); - } - - - } - catch (Exception e) - { - Console.WriteLine("Excpetion while processing connection : " + e.ToString()); - } - Console.WriteLine("Connection closed"); - } - - - - - } -} Deleted: trunk/plugins/Listener.cs =================================================================== --- trunk/plugins/Listener.cs 2008-03-17 14:14:49 UTC (rev 1479) +++ trunk/plugins/Listener.cs 2008-03-17 14:33:53 UTC (rev 1480) @@ -1,52 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Net.Sockets; -using System.Threading; -using System.Net; - -namespace TVServerXBMC -{ - class Listener - { - private TcpListener tcpListener; - - public Listener(){ - this.tcpListener = new TcpListener(IPAddress.Any, PORT); - } - - public const int PORT = 9596; - - public void StartListening() - { - tcpListener.Start(); - - ListenForClients(); - // start a thread to listen for clients - // (new Thread(new ThreadStart(ListenForClients)).Start (); - } - - private void ListenForClients() - { - Console.WriteLine("Waiting for clients..."); - - while (true) - { - // blocks until a client has connected to the server - TcpClient client = this.tcpListener.AcceptTcpClient(); - - Console.WriteLine("New Connection! Not listening for any new connections"); - tcpListener.Stop(); - - ConnectionHandler handler = new ConnectionHandler(client); - handler.HandleConnection(); - - tcpListener.Start(); - Console.WriteLine("Connection complete, listening for new connection.."); - } - } - - - - } -} Deleted: trunk/plugins/Plugin.cs =================================================================== --- trunk/plugins/Plugin.cs 2008-03-17 14:14:49 UTC (rev 1479) +++ trunk/plugins/Plugin.cs 2008-03-17 14:33:53 UTC (rev 1480) @@ -1,60 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using TvEngine; -using System.Threading; - - -namespace TVServerXBMC -{ - public class XmlTvImporter : ITvServerPlugin - { - Thread listenThread; - - public string Author - { - get { return "Prashant V"; } - } - - public bool MasterOnly - { - get { return true; } - } - - public string Name - { - get { return "XBMC Server"; } - } - - public SetupTv.SectionSettings Setup - { - get { return null; } - } - - public void Start(TvControl.IController controller) - { - // set up our remote control interface - TVServerConnection.Init(controller); - - // start a thread for the listener - Listener l = new Listener(); - listenThread = new Thread(new ThreadStart(l.StartListening)); - listenThread.Start(); - } - - public void Stop() - { - if (listenThread != null) - { - listenThread.Abort(); - listenThread = null; - } - } - - public string Version - { - get { return "0.2.0.0"; } - } - } - -} Deleted: trunk/plugins/TVServerConnection.cs =================================================================== --- trunk/plugins/TVServerConnection.cs 2008-03-17 14:14:49 UTC (rev 1479) +++ trunk/plugins/TVServerConnection.cs 2008-03-17 14:33:53 UTC (rev 1480) @@ -1,73 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using MPTvClient; -using TvControl; - -namespace TVServerXBMC -{ - class TVServerConnection - { - private static TVServerController serverIntf; - - // create our objects and connect! - public static void Init(IController controller) - { - serverIntf = new TVServerController(controller); - serverIntf.Setup(); - } - - // Get a list of <string> groups (channel groups) - public static List<string> getGroups() - { - List<string> groups = serverIntf.GetGroupNames(); - if (groups == null) - { - disconnect(); - return null; - } - - return groups; - } - - - // get a list of all channels - public static List<ChannelInfo> getChannels(String group) - { - List<ChannelInfo> refChannelInfos = serverIntf.GetChannelInfosForGroup(group); - if (refChannelInfos == null) - disconnect(); - - return refChannelInfos; - } - - - // timeshift a channel and get the stream url - public static String playChannel(int chanId) - { - serverIntf.StopTimeShifting(); - string rtspURL = ""; - - TvResult result = serverIntf.StartTimeShifting(chanId, ref rtspURL); - - if (result != TvResult.Succeeded) - { - rtspURL = "[ERROR]:" + result.ToString(); - } - - Console.WriteLine("PlayChannel result : " + rtspURL); - return rtspURL; - } - - public static bool StopTimeshift() - { - bool result = serverIntf.StopTimeShifting(); - return result; - } - - public static void disconnect() - { - serverIntf.ResetConnection(); - } - } -} Deleted: trunk/plugins/TVServerXBMC.csproj =================================================================== --- trunk/plugins/TVServerXBMC.csproj 2008-03-17 14:14:49 UTC (rev 1479) +++ trunk/plugins/TVServerXBMC.csproj 2008-03-17 14:33:53 UTC (rev 1480) @@ -1,91 +0,0 @@ -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProductVersion>8.0.50727</ProductVersion> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{CE292E6A-53E2-459D-8C87-673073182152}</ProjectGuid> - <OutputType>Library</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <RootNamespace>TVServerXBMC</RootNamespace> - <AssemblyName>TVServerXBMC</AssemblyName> - <StartupObject> - </StartupObject> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - <DebugSymbols>true</DebugSymbols> - <DebugType>full</DebugType> - <Optimize>false</Optimize> - <OutputPath>bin\Debug\</OutputPath> - <DefineConstants>DEBUG;TRACE</DefineConstants> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - <DebugType>pdbonly</DebugType> - <Optimize>true</Optimize> - <OutputPath>bin\Release\</OutputPath> - <DefineConstants>TRACE</DefineConstants> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - </PropertyGroup> - <ItemGroup> - <Reference Include="Gentle.Common, Version=1.2.9.1285, Culture=neutral, PublicKeyToken=80b5de62e27be49b" /> - <Reference Include="Gentle.Framework, Version=1.2.9.1286, Culture=neutral, PublicKeyToken=80b5de62e27be49b" /> - <Reference Include="Gentle.Provider.MySQL, Version=1.2.9.1288, Culture=neutral" /> - <Reference Include="Gentle.Provider.SQLServer, Version=1.2.9.1289, Culture=neutral, PublicKeyToken=80b5de62e27be49b" /> - <Reference Include="log4net, Version=1.2.9.0, Culture=neutral, PublicKeyToken=b32731d11ce58905" /> - <Reference Include="MySql.Data, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> - <Reference Include="PluginBase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>bin\Debug\PluginBase.dll</HintPath> - </Reference> - <Reference Include="SetupControls, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" /> - <Reference Include="System" /> - <Reference Include="System.Data" /> - <Reference Include="System.Drawing" /> - <Reference Include="System.Windows.Forms" /> - <Reference Include="System.Xml" /> - <Reference Include="TvControl, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" /> - <Reference Include="TVDatabase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>bin\Debug\TVDatabase.dll</HintPath> - </Reference> - <Reference Include="TvLibrary.Interfaces, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" /> - </ItemGroup> - <ItemGroup> - <Compile Include="Commands\CloseConnection.cs" /> - <Compile Include="Commands\CommandHandler.cs" /> - <Compile Include="Commands\ListChannels.cs" /> - <Compile Include="Commands\ListGroups.cs" /> - <Compile Include="Commands\StopTimeshift.cs" /> - <Compile Include="Commands\TimeshiftChannel.cs" /> - <Compile Include="ConnectionHandler.cs" /> - <Compile Include="Listener.cs" /> - <Compile Include="Plugin.cs" /> - <Compile Include="Properties\AssemblyInfo.cs" /> - <None Include="TV\frmMain.cs"> - <SubType>Form</SubType> - </None> - <None Include="TV\frmMain.designer.cs"> - <DependentUpon>frmMain.cs</DependentUpon> - </None> - <Compile Include="TV\ServerInterface.cs" /> - <Compile Include="TVServerConnection.cs" /> - <Compile Include="TV\Utils.cs" /> - </ItemGroup> - <ItemGroup> - <None Include="TV\frmMain.resx"> - <DependentUpon>frmMain.cs</DependentUpon> - <SubType>Designer</SubType> - </None> - </ItemGroup> - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> - <!-- To modify your build process, add your task inside one of the targets below and uncomment it. - Other similar extension points exist, see Microsoft.Common.targets. - <Target Name="BeforeBuild"> - </Target> - <Target Name="AfterBuild"> - </Target> - --> -</Project> \ No newline at end of file Deleted: trunk/plugins/TVServerXBMC.sln =================================================================== --- trunk/plugins/TVServerXBMC.sln 2008-03-17 14:14:49 UTC (rev 1479) +++ trunk/plugins/TVServerXBMC.sln 2008-03-17 14:33:53 UTC (rev 1480) @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TVServerXBMC", "TVServerXBMC.csproj", "{CE292E6A-53E2-459D-8C87-673073182152}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {CE292E6A-53E2-459D-8C87-673073182152}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CE292E6A-53E2-459D-8C87-673073182152}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CE292E6A-53E2-459D-8C87-673073182152}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CE292E6A-53E2-459D-8C87-673073182152}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal Deleted: trunk/plugins/TVServerXBMC.suo =================================================================== (Binary files differ) Copied: trunk/plugins/XBMCServer/Commands (from rev 1479, trunk/plugins/Commands) Copied: trunk/plugins/XBMCServer/ConnectionHandler.cs (from rev 1479, trunk/plugins/ConnectionHandler.cs) =================================================================== --- trunk/plugins/XBMCServer/ConnectionHandler.cs (rev 0) +++ trunk/plugins/XBMCServer/ConnectionHandler.cs 2008-03-17 14:33:53 UTC (rev 1480) @@ -0,0 +1,157 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Net.Sockets; +using System.Threading; +using System.Net; +using System.IO; + +using TVServerXBMC.Commands; + +namespace TVServerXBMC +{ + class ConnectionHandler + { + private TcpClient client; + private Dictionary<String, CommandHandler> allHandlers; + + public ConnectionHandler(TcpClient client) + { + this.client = client; + addHandlers(); + } + + private void addHandlers() + { + List<CommandHandler> handlers = new List<CommandHandler>(); + allHandlers = new Dictionary<String,CommandHandler>(); + + handlers.Add(new ListChannels(this)); + handlers.Add(new ListGroups(this)); + handlers.Add(new CloseConnection(this)); + handlers.Add(new TimeshiftChannel(this)); + handlers.Add(new StopTimeshift(this)); + + foreach(CommandHandler h in handlers) + { + allHandlers.Add(h.getCommandToHandle().ToLower(), h); + } + + } + + + + public void writeList(List<string> list) + { + // escape every value + List<string> escaped = list.ConvertAll<string>(new Converter<string, string>(Uri.EscapeDataString)); + + // send it as one line + WriteLine(String.Join(",",escaped.ToArray())); + + Console.WriteLine(String.Join(",", escaped.ToArray())); + } + + public void HandleConnection() + { + NetworkStream cStream = this.client.GetStream(); + StreamReader reader = new StreamReader(cStream); + + // first we get what version of the protocol + // we expect "TVServerXBMC0-1" + String versionInfo = reader.ReadLine(); + if (versionInfo == null) return; + + if (versionInfo.Contains("TVServerXBMC:0-1")) + { + WriteLine("Protocol-Accept:1"); + Console.WriteLine("Correct protocol, connection accepted!"); + } + else + { + WriteLine("Unexpected Protocol"); + client.Close(); + Console.WriteLine("Unexpected protocol"); + return; + } + + ProcessConnection(reader); + + } + + public void WriteLine(String line) + { + StreamWriter writer = new StreamWriter(this.client.GetStream ()); + writer.WriteLine(line); + writer.Flush(); + } + + public void Disconnect() + { + client.Close(); + } + + + private void handleCommand(String command, String[] arguments) + { + String handleCommand = command.ToLower(); + if (allHandlers.ContainsKey(handleCommand)) + { + allHandlers[handleCommand].handleCommand(command, arguments); + } + else + { + WriteLine("UnknownCommand:" + command); + Console.WriteLine("Unknown command : " + command); + } + + + } + + private void ProcessConnection(StreamReader reader) + { + try + { + while (client.Connected) + { + String line = reader.ReadLine(); + + // every command is Command:Argument,Argument,Argument + // where the arguments are uri encoded. Commands are not encoded + String[] parts = line.Split(new Char[] { ':' }, 2); + + if (parts.Length < 2) + { + Console.WriteLine("Command format incorrect"); + WriteLine("Command format incorrect"); + return; + } + + + + String command = parts[0]; + String[] arguments = parts[1].Split(new Char[] { ',' }); + + for (int i = 0; i < arguments.Length; i++) + { + arguments[i] = System.Uri.UnescapeDataString(arguments[i]); + } + + Console.WriteLine("Handling command; " + command); + handleCommand(command, arguments); + } + + + } + catch (Exception e) + { + Console.WriteLine("Excpetion while processing connection : " + e.ToString()); + } + Console.WriteLine("Connection closed"); + } + + + + + } +} Copied: trunk/plugins/XBMCServer/Listener.cs (from rev 1479, trunk/plugins/Listener.cs) =================================================================== --- trunk/plugins/XBMCServer/Listener.cs (rev 0) +++ trunk/plugins/XBMCServer/Listener.cs 2008-03-17 14:33:53 UTC (rev 1480) @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Net.Sockets; +using System.Threading; +using System.Net; + +namespace TVServerXBMC +{ + class Listener + { + private TcpListener tcpListener; + + public Listener(){ + this.tcpListener = new TcpListener(IPAddress.Any, PORT); + } + + public const int PORT = 9596; + + public void StartListening() + { + tcpListener.Start(); + + ListenForClients(); + // start a thread to listen for clients + // (new Thread(new ThreadStart(ListenForClients)).Start (); + } + + private void ListenForClients() + { + Console.WriteLine("Waiting for clients..."); + + while (true) + { + // blocks until a client has connected to the server + TcpClient client = this.tcpListener.AcceptTcpClient(); + + Console.WriteLine("New Connection! Not listening for any new connections"); + tcpListener.Stop(); + + ConnectionHandler handler = new ConnectionHandler(client); + handler.HandleConnection(); + + tcpListener.Start(); + Console.WriteLine("Connection complete, listening for new connection.."); + } + } + + + + } +} Copied: trunk/plugins/XBMCServer/Plugin.cs (from rev 1479, trunk/plugins/Plugin.cs) =================================================================== --- trunk/plugins/XBMCServer/Plugin.cs (rev 0) +++ trunk/plugins/XBMCServer/Plugin.cs 2008-03-17 14:33:53 UTC (rev 1480) @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.Text; +using TvEngine; +using System.Threading; + + +namespace TVServerXBMC +{ + public class XmlTvImporter : ITvServerPlugin + { + Thread listenThread; + + public string Author + { + get { return "Prashant V"; } + } + + public bool MasterOnly + { + get { return true; } + } + + public string Name + { + get { return "XBMC Server"; } + } + + public SetupTv.SectionSettings Setup + { + get { return null; } + } + + public void Start(TvControl.IController controller) + { + // set up our remote control interface + TVServerConnection.Init(controller); + + // start a thread for the listener + Listener l = new Listener(); + listenThread = new Thread(new ThreadStart(l.StartListening)); + listenThread.Start(); + } + + public void Stop() + { + if (listenThread != null) + { + listenThread.Abort(); + listenThread = null; + } + } + + public string Version + { + get { return "0.2.0.0"; } + } + } + +} Copied: trunk/plugins/XBMCServer/Properties (from rev 1479, trunk/plugins/Properties) Copied: trunk/plugins/XBMCServer/TV (from rev 1479, trunk/plugins/TV) Copied: trunk/plugins/XBMCServer/TVServerConnection.cs (from rev 1479, trunk/plugins/TVServerConnection.cs) =================================================================== --- trunk/plugins/XBMCServer/TVServerConnection.cs (rev 0) +++ trunk/plugins/XBMCServer/TVServerConnection.cs 2008-03-17 14:33:53 UTC (rev 1480) @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using MPTvClient; +using TvControl; + +namespace TVServerXBMC +{ + class TVServerConnection + { + private static TVServerController serverIntf; + + // create our objects and connect! + public static void Init(IController controller) + { + serverIntf = new TVServerController(controller); + serverIntf.Setup(); + } + + // Get a list of <string> groups (channel groups) + public static List<string> getGroups() + { + List<string> groups = serverIntf.GetGroupNames(); + if (groups == null) + { + disconnect(); + return null; + } + + return groups; + } + + + // get a list of all channels + public static List<ChannelInfo> getChannels(String group) + { + List<ChannelInfo> refChannelInfos = serverIntf.GetChannelInfosForGroup(group); + if (refChannelInfos == null) + disconnect(); + + return refChannelInfos; + } + + + // timeshift a channel and get the stream url + public static String playChannel(int chanId) + { + serverIntf.StopTimeShifting(); + string rtspURL = ""; + + TvResult result = serverIntf.StartTimeShifting(chanId, ref rtspURL); + + if (result != TvResult.Succeeded) + { + rtspURL = "[ERROR]:" + result.ToString(); + } + + Console.WriteLine("PlayChannel result : " + rtspURL); + return rtspURL; + } + + public static bool StopTimeshift() + { + bool result = serverIntf.StopTimeShifting(); + return result; + } + + public static void disconnect() + { + serverIntf.ResetConnection(); + } + } +} Copied: trunk/plugins/XBMCServer/TVServerXBMC.csproj (from rev 1479, trunk/plugins/TVServerXBMC.csproj) =================================================================== --- trunk/plugins/XBMCServer/TVServerXBMC.csproj (rev 0) +++ trunk/plugins/XBMCServer/TVServerXBMC.csproj 2008-03-17 14:33:53 UTC (rev 1480) @@ -0,0 +1,91 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{CE292E6A-53E2-459D-8C87-673073182152}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>TVServerXBMC</RootNamespace> + <AssemblyName>TVServerXBMC</AssemblyName> + <StartupObject> + </StartupObject> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="Gentle.Common, Version=1.2.9.1285, Culture=neutral, PublicKeyToken=80b5de62e27be49b" /> + <Reference Include="Gentle.Framework, Version=1.2.9.1286, Culture=neutral, PublicKeyToken=80b5de62e27be49b" /> + <Reference Include="Gentle.Provider.MySQL, Version=1.2.9.1288, Culture=neutral" /> + <Reference Include="Gentle.Provider.SQLServer, Version=1.2.9.1289, Culture=neutral, PublicKeyToken=80b5de62e27be49b" /> + <Reference Include="log4net, Version=1.2.9.0, Culture=neutral, PublicKeyToken=b32731d11ce58905" /> + <Reference Include="MySql.Data, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> + <Reference Include="PluginBase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>bin\Debug\PluginBase.dll</HintPath> + </Reference> + <Reference Include="SetupControls, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" /> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Drawing" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + <Reference Include="TvControl, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" /> + <Reference Include="TVDatabase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>bin\Debug\TVDatabase.dll</HintPath> + </Reference> + <Reference Include="TvLibrary.Interfaces, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Commands\CloseConnection.cs" /> + <Compile Include="Commands\CommandHandler.cs" /> + <Compile Include="Commands\ListChannels.cs" /> + <Compile Include="Commands\ListGroups.cs" /> + <Compile Include="Commands\StopTimeshift.cs" /> + <Compile Include="Commands\TimeshiftChannel.cs" /> + <Compile Include="ConnectionHandler.cs" /> + <Compile Include="Listener.cs" /> + <Compile Include="Plugin.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <None Include="TV\frmMain.cs"> + <SubType>Form</SubType> + </None> + <None Include="TV\frmMain.designer.cs"> + <DependentUpon>frmMain.cs</DependentUpon> + </None> + <Compile Include="TV\ServerInterface.cs" /> + <Compile Include="TVServerConnection.cs" /> + <Compile Include="TV\Utils.cs" /> + </ItemGroup> + <ItemGroup> + <None Include="TV\frmMain.resx"> + <DependentUpon>frmMain.cs</DependentUpon> + <SubType>Designer</SubType> + </None> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Copied: trunk/plugins/XBMCServer/TVServerXBMC.sln (from rev 1479, trunk/plugins/TVServerXBMC.sln) =================================================================== --- trunk/plugins/XBMCServer/TVServerXBMC.sln (rev 0) +++ trunk/plugins/XBMCServer/TVServerXBMC.sln 2008-03-17 14:33:53 UTC (rev 1480) @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TVServerXBMC", "TVServerXBMC.csproj", "{CE292E6A-53E2-459D-8C87-673073182152}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CE292E6A-53E2-459D-8C87-673073182152}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CE292E6A-53E2-459D-8C87-673073182152}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CE292E6A-53E2-459D-8C87-673073182152}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CE292E6A-53E2-459D-8C87-673073182152}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Copied: trunk/plugins/XBMCServer/TVServerXBMC.suo (from rev 1479, trunk/plugins/TVServerXBMC.suo) =================================================================== (Binary files differ) Copied: trunk/plugins/XBMCServer/bin (from rev 1479, trunk/plugins/bin) Modified: trunk/plugins/XBMCServer/bin/Release/TVServerXBMC.dll =================================================================== (Binary files differ) Modified: trunk/plugins/XBMCServer/bin/Release/TVServerXBMC.pdb =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |