I have a vcf project. My problem is my service isn't playing wave sounds. When debugging vs2010 will play sounds, but if I use a web server (iis 7), the sound is not playing. I know it's an unusual request but this server is special and it is talking people. I am using system.media lib and my object is SoundPlayer.
You should be able to use Process to run a separate process with your sound player. I'm not at all sure that this is what you are looking for.
Related
I have Gridview when i click play it will play audio file it will get directory from database and play the audio by opening windows media player it working fine in visual studio i am using System.Diagnostics.Process in my code.I hosted application in IIS where OS is Windows 7 when i try to play its not opening windows media player and not playing audio file.
I had seen suggestions in Internet where i need to give permission to IIS admin Service to interact with desktop applications but i hadn't seen any IIS admin Service in Services.msc.
Any one can suggest me
Instead of calling a desktop application, you can use javascript or the HTML audio tag.
There's a js library called Howler (https://github.com/goldfire/howler.js/), it makes easier to play audio from the browser.
In your gridview, you can have a column that has a button to play the audio, this button has an attribute that contains the audio path
Something like this:
<button data-audiosrc="pathtoaudio.mp3">Play audio</button>
Then you use this tag to call the howler to play the audio.
This is one approach.
Another one is to publish these files to an IIS web application and you can call it by the browser http://AudioIISApp/youraudio.mp3 (for example), will open another tab, so the user can listen or download.
This second is more easy and faster to implement!
I'm currently working on a XNA game and I need to try the local network part over internet, using system link. I've tried with Hamachi but Windows Live Games was not compatible with that. Is there some way to do this?
I have simple html/js application with embedded VLC WebPlugin and few methods for play/pause. This application is controlled by another javascript file through simple server/websocket c# application. Topology is like this:
WebpageWithVLCplugin <= ws://localhost:8181 => C#Server <= http://localhost:8080 => WebpageWithControl
Everything works fine - sending controls from Control page through C#Server is fast and reliable even through different domains, but when I send "play" command - VLC plugin starts to play video - no more commads are received by page with "WebpageWithVLCplugin" until playing is finished. So it seems that VLC WebPlugin blocks websocket - but I dont have any idea how or why or how should I find problem.
edit: When WebpageWithVLCplugin is controlled not through websockets (window.postMessage or direct methods call), everything works fine even while VLC plugin is playing.
Thanks for advices
OK, I have found my silly mistake - Simple server is even file-provider for VLC player, so when VLC player starts to play, server is busy with providing video file. When multi-threaded, everythink works fine.
I would like to create a image file upload tool. The tool when started up and would ask the user what directory they would like to monitor and upload files from. In the background the tool would then post securely to a web service of some sort.
Constraints solution should work on Mac and Windows computers. I would like to make the upload process pretty automatic with little user intervention.
Basically the question I have is what would you use to create application that either runs in the background or foreground to basically continuously uploads files to a web server?
I have a couple of thoughts:
HTML5 using web workers (concerns accessing local files not sure the best way to do that)
Silverlight (my guess is I would have to sign the application)
Java web start application (Signing application)
Flash (scared of this idea)
I can do the Java web start application easy enough. Both HTML5 and Silverlight are things that I would like to know. I really don't care about flash at this point.
In Java, you can use the JNotify library: http://jnotify.sf.net . It works on Windows, OS X, and Linux.
I don't know about C# or HTML5. HTML5 (last I checked circa July 2011) doesn't have a filesystem API. In reality you need an app that can be distributed so it can run in the background, so Silverlight is out of the question. If I am misinterpreting your problem, please tell me.
I would try to go with a signed Java applet if you can foresee the need for downloading as well. It is difficult to find a good download solution other then a signed Java applet. A signed Java applet let's you push things to the users filesystem allowing for upload as well as download.
I have 2 identical ASP.NET applications, one running on Windows Server 2003 with IIS6 and another running on Windows Server 2008 with IIS7.
The one on IIS6 runs perfectly, but on IIS7 I'm unable to seek while playing my video.
They are both using the exact same HTTP-handler for streaming.
I'm using the JW player for Flash (v. 5.2) and Sorenson Squeeze 6 for converting the videos from .mpg to flv.
The FLV stream-handler is very (but not completely) similar to the one on this site
The one on IIS6: demo.orbicon.dk/wgv
The one on IIS7: kloakkort.nk-forsyning.dk/webgrafvideo/?filename=15050
I'm not allowed to post more than 1 hyperlink yet, so this will have to do :)
Seems like this is an issue with keyframe metadata. Keyframes are used in streaming servers to indicate the nearest position to which you can safely seek. Now, look at your files in the LongTail testing tool:
IIS 6: http://bit.ly/9cAM9X
IIS 7: http://bit.ly/cCoair
You'll notice that the IIS 6 file has several hundred keyframes, while the IIS 7 file does not. This means that the player is making a seek request every time you click in the controlbar, but the only keyframe that's available is at the start of the video, so it restarts.
This could be caused by two things: either the file doesn't have the keyframe metadata, or the streaming server isn't sending the keyframes along. If it's former, that can be fixed using FLVMDI. If it's the later, you'll need modify your server config / streaming script, and for that I defer to the IIS folk.
Best,
Zach
Developer, LongTail Video