Stream Audio from Linux Server with Silverlight - silverlight

I have a large catalog of audio on a Linux (CentOS 5) server that I would like to expose to an existing .NET web site. Is there any way to stream the media from the Linux server through my web site using Silverlight? If so, how would a person go about setting it up?
Thanks in advance!

If you don't care about adaptive streaming, this is really easy - just share the audio out over HTTP, then add a MediaElement (or something like http://smf.codeplex.com if you want it to be fancy, see my caveat at http://blog.paulbetts.org/index.php/2009/11/22/patching-silverlight-media-framework-to-work-with-mp4wmv-files/) and point it towards your Linux server running Lighttpd or Apache.
The critical bit though, is that Silverlight will only be allowed to access the hosting site by default, so you'll need to create a clientaccesspolicy.xml file ( http://www.silverlighthack.com/post/2008/11/08/Silverlight-clientaccesspolicyxml-files-for-the-Enterprise-(Part-1-of-2).aspx ) to allow SL access to your Linux server

Related

CodenameOne SMB shared folder access

I need to build a mobile app for Android and IOS that can read and write to a SMB2/3 network share.
Is this possible in CodenameOne? If so is there an example of how to do this?
If it is not possible in CodenameOne is there another framework that supports this functionality?
Thanks in advance for reviewing this question!
We don't have any support for the SMB protocol. There is support for sockets but I think that would be a challenge to implement.
If the phone has access to the folder you can use the share operation and the user can pick the place where the file should be shared e.g. SMB, dropbox, etc.

windows communication between two applications

I want to create two applications running on the same device (windows rt).
One application would be the app for inputting strings (example is string "235").
The second application would be the output for the first application. (showing "235").
Is it possible to do this in visual studio?
Yes this is possible to do in Visual Studio and to run on a development machine using the loopback adapter, however the loopback adapter is disabled for release builds. You can use the share contract to share your content as a custom object that only your intended application knows how to consume as a share target to accomplish this. A little more about your scenario is needed to provide proper guidance.
John Wiese
Microsoft - Sr. Technical Evangelist
jwiese#microsoft.com
#johnwiese
Try using DLL files.
More info: https://support.microsoft.com/kb/815065

Proprietary USB device access via browser... possible? Silverlight maybe? (Java is excluded for now)

Probably there are a lot of similar questions around, but since I know only few solutions to this which I am not sure will work for us, I am looking for something else, maybe new technologies...
What we have is this USB device which is not so fancy (of course, it requires a driver to be loaded), and it has couple of C++ dlls to help getting certain output from it. On top, we made a C# desktop application which makes use of the device in a more attractive way (plenty of interop inside).
So far so good, but to have the application lifted up to the web in order to gain more flexibility... What options are there?
Known solutions are:
1) ActiveX - kinda old technology and not cross-browser;
2) .Net 'applet' - not so common (is this even a solution?)
3) Java applet - well known, but JVM needed (since we went for C++ C#
maybe is out of scope);
4) Web service on the usb device itself - our device is very
light, we cannot have it there.
Are there other ways? Is Silverlight 4, 5 (maybe "out of browser") a feasable solution? What about these new technologies nowadays? Html 5 or something?
EDIT1: In particular I am interested in Silverlight. Is there a way using Silverlight?
EDIT2: I found this question: Can Silverlight access a .Net library that accesses a USB port? . What shall I understand from that? Is really Silverlight not a feasable solution for my scenario?
EDIT 3: VERY IMPORTANT!
These devices need to be used on customer side! People browsing must use them locally on their PCs!
Thanks in advance.
to have the application lifted up to the web [...]
Simple solution: Let the webserver (http server) run on the PC connected to the USB device, and use one of the webserver's interfaces like CGI to talk to your USB device. This way you need to code only a USB-to-CGI wrapper program, which can be C++ or C#.
Another way is to write a browser plugin.
The issue that you're going to face is that content in a browser is often run in a sandbox, in such a way that the web app does not have access to the computer. There are good reasons for this - security, primarily. One way to have some code running in the context of the computer is to have a browser plugin that can access the computer's hardware resources, but that can interact with browser content. Unfortunately, you may end up writing a different plugin for different browsers.
There do exist frameworks out there that make writing browser plugins more manageable. A simple search should turn up some of those candidates.
You can use Silverlight 5, it can give you access to your file system and USB storage device. If you want to get control for other USB device (printer, scanner, etc), you should give a device type. I know, Silverlight 5 works fine with a file system and web-cams...)

Can silverlight queue a list of files and post, when connection available, to a web service / url?

I need to provide a way of users uploading multiple files (can be 10MB each) over Mac, PC and a mobile device (something with an SD slot).
The connection from the mobile device can be poor so I need to enable queuing of the files so they can be delivered when connection becomes available.
I am looking at Silverlight as a potential option using something like this example uses and sending over the files when a connection is available.
http://www.microsoft.com/silverlight/out-of-browser/demo/
I have tried searching for silverlight articles but not found anything appropriate. What I am trying to avoid is writing multiple versions of the software for Mac+PC (browser) and mobile device.
Can silverlight provide this kind of functionality or is something I would have to approach differently?
Silverlight can be used to do that.
You don't need to use the out-of-browser functionality, silverlight gives you low-level control over sockets and threads.
For devices it's a different scenario, as AnthonyWJones points out.
There is a silverlight version for the nokia, but I've know idea if it is actively developed. The is also a c++ version for linux/meego, there is a mono version.
But all those are different versions.

Out of browser feature of Silverlight 3.0

Why and when somebody would take out the Silverlight application out of browser and run? As this is feature provided in Silverlight 3.
When the application is useful enough that you want to use it often and you don't want to depend on a browser or an internet connection, for example.
In Silverlight 4, out of browser applications will make even more sense since they can run with elevated permissions and do things such as accessing the local filesystem or running applications on the client machine: http://silverlight.net/getstarted/silverlight-4-beta/#whatsnew (search For Trusted applications)

Resources