Difference between revisions of "Project Hornet"
From A-SMIL.org
(Created) |
(Updated to new Hornet 1.0.0.6 src) |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | Hornet 1. | + | Hornet 1.1 ("A-SMIL Console") is a Visual C# sample applications that utilizes the AdAPI SOAP interface to control digital signage media players. |
| − | == | + | == Highlight == |
| − | * Simple SMIL editor | + | * Simple SMIL text editor |
| − | * Push SMIL script to media players using SOAP API (Adfotain API) | + | * Push SMIL script to media players using SOAP API ([[WSDL|Adfotain API]]) |
* Start from nearly a dozen of pre-built SMIL sample codes | * Start from nearly a dozen of pre-built SMIL sample codes | ||
| − | == Screenshot== | + | === Screenshot === |
[[File:Screenshot-Hornet_1.0.png]] | [[File:Screenshot-Hornet_1.0.png]] | ||
| + | |||
| + | == License == | ||
| + | * GPL | ||
| + | * Non-GPL license available from [http://www.IAdea.com IAdea Corporation] | ||
== Download == | == Download == | ||
| − | + | Via pre-built [http://www.iadea.com/downloads/smil/hornet/Publish.html Windows installer], or | |
| + | |||
| + | download complete source code here: [[Media:Hornet_1_0_0_6.zip]] | ||
Contents: | Contents: | ||
* Hornet\ | * Hornet\ | ||
** Hornet.sln (Open this: Visual Studio solution file) | ** Hornet.sln (Open this: Visual Studio solution file) | ||
| − | |||
** Hornet\ | ** Hornet\ | ||
*** AdfotainAPI WSDL Definition\ (WSDL definition file) | *** AdfotainAPI WSDL Definition\ (WSDL definition file) | ||
| − | |||
| − | |||
| − | |||
| − | |||
*** Properties\ | *** Properties\ | ||
*** samples\ (SMIL sample code) | *** samples\ (SMIL sample code) | ||
| Line 32: | Line 33: | ||
*** Hornet.csproj (C# project file) | *** Hornet.csproj (C# project file) | ||
*** Hornet.csproj.user | *** Hornet.csproj.user | ||
| − | |||
*** Program.cs (Housekeeping code) | *** Program.cs (Housekeeping code) | ||
| + | |||
| + | === Requirements === | ||
| + | * [http://www.microsoft.com/express/vcsharp/ Microsoft Visual C# 2008 Express Edition], version 9.0.21022.8 RTM (free download) | ||
| + | ** Microsoft .NET Framework, version 3.5 SP1 | ||
| + | |||
| + | == Known Issues == | ||
| + | |||
| + | * "The underlying connection was closed: An unexpected error occurred" when sending commands | ||
| + | ** This is related to Microsoft's SOAP implementation. You need to manually override the auto-generated SOAP handlers and turn off the KeepAlive option. Please see fixes at | ||
| + | *** [http://weblogs.asp.net/jan/archive/2004/01/28/63771.aspx Solving "The underlying connection was closed: An unexpected error occurred on a send." (Webservices)], Jan Tielens' Bloggings | ||
| + | *** [http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/faf9737d-5cb3-442b-bf9d-26341a204475 System.Net.WebException: The request was aborted: The request was canceled], MSDN Forums | ||
| + | |||
| + | In the auto-generated adapi_1_0.cs proxy stub, add: | ||
| + | |||
| + | <source lang="csharp"> | ||
| + | [System.ComponentModel.DesignerCategoryAttribute("code")] | ||
| + | [System.Web.Services.WebServiceBindingAttribute(Name = "IASoapHttpClientProtocol", Namespace = "http://schemas.adfotain.org/adapi-1.0")] | ||
| + | public class IASoapHttpClientProtocol : SoapHttpClientProtocol | ||
| + | { | ||
| + | protected override System.Net.WebRequest GetWebRequest(Uri uri) | ||
| + | { | ||
| + | System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)base.GetWebRequest(uri); | ||
| + | webRequest.KeepAlive = false; | ||
| + | webRequest.ProtocolVersion = System.Net.HttpVersion.Version10; | ||
| + | return webRequest; | ||
| + | } | ||
| + | |||
| + | public bool IsCustomSoapHttpClientProtocol() { return true; } | ||
| + | } | ||
| + | </source> | ||
| + | |||
| + | Then make MediaControl and ContentManager classes inherit from IASoapHttpClientProtocol instead of the default SoapHttpClientProtocol. | ||
| + | |||
| + | == Related == | ||
| + | * Managing SMIL players from [[Visual Studio Express]] | ||
| + | * [[WSDL]] description of the SOAP interface | ||
Latest revision as of 09:18, 17 November 2010
Hornet 1.1 ("A-SMIL Console") is a Visual C# sample applications that utilizes the AdAPI SOAP interface to control digital signage media players.
Highlight
- Simple SMIL text editor
- Push SMIL script to media players using SOAP API (Adfotain API)
- Start from nearly a dozen of pre-built SMIL sample codes
Screenshot
License
- GPL
- Non-GPL license available from IAdea Corporation
Download
Via pre-built Windows installer, or
download complete source code here: Media:Hornet_1_0_0_6.zip
Contents:
- Hornet\
- Hornet.sln (Open this: Visual Studio solution file)
- Hornet\
- AdfotainAPI WSDL Definition\ (WSDL definition file)
- Properties\
- samples\ (SMIL sample code)
- app.config
- Form1.cs (Main UI code)
- Form1.Designer.cs
- Form1.resx
- Hornet.csproj (C# project file)
- Hornet.csproj.user
- Program.cs (Housekeeping code)
Requirements
- Microsoft Visual C# 2008 Express Edition, version 9.0.21022.8 RTM (free download)
- Microsoft .NET Framework, version 3.5 SP1
Known Issues
- "The underlying connection was closed: An unexpected error occurred" when sending commands
- This is related to Microsoft's SOAP implementation. You need to manually override the auto-generated SOAP handlers and turn off the KeepAlive option. Please see fixes at
In the auto-generated adapi_1_0.cs proxy stub, add:
[System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name = "IASoapHttpClientProtocol", Namespace = "http://schemas.adfotain.org/adapi-1.0")] public class IASoapHttpClientProtocol : SoapHttpClientProtocol { protected override System.Net.WebRequest GetWebRequest(Uri uri) { System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)base.GetWebRequest(uri); webRequest.KeepAlive = false; webRequest.ProtocolVersion = System.Net.HttpVersion.Version10; return webRequest; } public bool IsCustomSoapHttpClientProtocol() { return true; } }
Then make MediaControl and ContentManager classes inherit from IASoapHttpClientProtocol instead of the default SoapHttpClientProtocol.
Related
- Managing SMIL players from Visual Studio Express
- WSDL description of the SOAP interface
