Play audio online in ASP.Net website - asp.net

i need to play audio online in asp.net website
My requirement is
users will be able to browser the audio file using file upload control and two button will be displayed 'Play' and 'Stop'.
site should have the capability to play audio file in any format.
Please share any links or code to achieve this.
Thanks!

Look into these links. They may help.
http://forums.asp.net/t/1303198.aspx
http://www.dotnetspider.com/resources/5014-Play-Audio-File-Wav.aspx
http://www.dotnetspider.com/resources/22231-Play-audio-files-asp-net.aspx
http://www.vbdotnetheaven.com/UploadFile/scottlysle/PlaySoundsInASPX09032006083212AM/PlaySoundsInASPX.aspx

Not most appropriate but worth a thought
you can try embedding a silverlight element..
In silverlight you can import the audio file to project
and then can just drag and drop "media element" set source.
drag and drop buttons play and pause..
play : mediasource.play();
pause : mediasource.pause();
voila done.. Its easy to do all this in sileverlight..

Related

How to browse image make it appear in Image control

My Scenario,
I'm using Visual Studio 2005. In my website Page I'm trying to browse a image and display in image control and then i need to insert to Database, But I'm Unable to bring the image to control.
1.Browse image
2.View in the control and then insert in Database.
This What I want and I'm searching for code.
This is difficult to do on the client side without sending the image to the server at all without using a technology like Flash to display the preview of the image before uploading it.
If you wish to use Flash, then there is a donationware component called Agile Uploader that even has a jQuery plugin available that allows you to display a preview of the image wherever you like before uploading, as well as being able to resize the image on the client side first, so you don't have users uploading massive files. It's well worth a look.

JW player. on click getting a window asking open or save file

I have two applications that play video. in one of them the JWplayer plays the video as it should , and on load, the video plays by itself.Thats what i need exactly
I'm doing the same process with the second application, but the thing is when it loads the player , first of all i cant see the control bar, second it doesnt play the video. and third when i click the play button. it opens a dialog asking me if i want to open or save the file, but this isnt what i need.all i need is to play the video like in the first application.
Why is it behaving like this ?
thanks all
One more thing, the second application is on a machine that hasnt a media player,
does this have any effect on the player.swf ??? I can see the player and the play button thou. but just wondering ...
Check whether your iis has the mime type of the video file you are trying to play.
If not add it as follows,
File extension: .mp4
Mime Type: video/mp4
After that restart iis and browse the site again...
Note: Search for the exact mime type for the file
Hope this will help you...

Drag and drop files FROM a browser TO desktop/app

I've seen many articles about dragging files INTO a browser, but none about dragging files FROM the browser to a windows application or the desktop/windows-explorer.
I'm looking for a cross-browser solution but IE8 is our main browser.
If I create a link in a web page and then drag that link from the page into Microsoft Word, it inserts a link. However, if that link is pointing at a PDF document, I would like it to embed the PDF doc inside the Word doc, as if I'd dragged it from Windows Explorer, into MS Word.
Is that possible?
I've even tried pointing the link at an ASP page which returns "application/pdf" data but I still just get a link in my word doc so I suspect that links are the wrong way to go.
Thanks for any help!
I suspect you'll find that it is indeed not possible. The behavior upon drop is determined by the "receiving" application, not the "sending" application. As you point out, Word creates links to things that are dropped on it. The browser doesn't have any control over that.
I noticed that you can actually drag a HYPERLINK from a browser and drop in into a folder. After that a file there is created with .URL extension that contains the actual link.
So it is possible develop a program that will be able to accept that hyperlinks (as the usual windows folder does) and after it accepts the hyperlink file, it will automatically download the actual file from internet (by the hyperlink from the hyperlink file).
So the process will be:
drag-n-drop a hyperlink to the app
app recognizes the link
app automatically downloads the appropriate file and stores it somewhere.

Multiple file upload with preview

Is there any good control or plug-in for uploading multiple photos with preview? As far as I understand it is impossible to preview photo on local computer using just JavaScript. So it has to use Flash or Java.
Thanks, also, I use ASP.NET.
Wait, do you mean show it in a browser window before starting the upload? So does the file have a URI? (Hint: file:///c/users/public/somefile.png is a URI) You can always just link it into an image tag on their browser session.
Now, will a browser let you link a file:/// for image? That I've not tried, but you should; at least you'll learn something from it when you do try.
But using this, there's no reason you can't use a lightbox style image viewer with the local URI.
You could also make use of silverlight 4. If you're looking for something already written you might try using the upload control from gallery which much require some hackery or if you have money to burn then telerik have an upload control but I don't believe it supports previews. This http://www.aurigma.com/Products/ImageUploader/ also looks nifty.

Image preview in Flex

I am working on an image management application. We have an Adobe AIR client talking to a WAMP server. The MySQL DB stores the images as blobs.
We have an image search feature. Upon searching, I am displaying the results as XMLList in a popup window and provided a download button. Downloads work fine. I also want to add a preview button to the popup.
Please let me know how can I code this. Without having the file on the client, I cannot preview. But when I use save() method, the os dialog opens up. Anything to be done on the PHP side?
Please help.
Regards
Jad.
Don't you mean to display an Image? Wouldn't the normal work? Of course, for performance issues, your PHP code must render smaller images (thumbnails).
Correct me if wrongly understood your question. :(

Resources