Web Forms :: How To Play Audio On Webpage
Apr 22, 2012How can I play an audio on my web page using file path from Sql database?
While I am embedding a player for playing media.
How can I play an audio on my web page using file path from Sql database?
While I am embedding a player for playing media.
I'm wth Asp.net, c#. How Can I do Audio ,Vedio streaming for a web page?
View 1 RepliesHow to play audio and video files...
View 1 RepliesI am working on an ASP.NET Web application and I want it to have audio playback functionality. I can do is using directories. For example, using the ASP.NET Audio control like :- , is pretty easy and straight-forward and works accordingly. But, the trouble comes when I'm using a database and the control. I am totally new to data binding in ASP.NET. I don't like using JavaScript, but i am comfortable using it, but I would prefer C# solution (I know beggars can't be choosers).
I have a database containing only one table called tblAudio. This table has two fields only for the title of the audio file (type NVARCHAR(MAX)) and the field for the actual audio (type VAR BINARY(MAX)). I'm using Visual Studio 2010 Professional with SQL Server Express Edition. The table has a single record with the relevant data in their fields.
how can i add audio play button to play mp3 file
View 3 Repliesi need to play audio online in asp.net websiteMy requirement isusers 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.
View 3 RepliesHow to find length of audio file in .net
View 4 RepliesI already have my audio file in database (which is in varbinary(max) data type) and I could retrieve said music as byte(). But the problem is I don't know how to play it..
View 3 Replieshow to use Silverlight to play audio from local ASP.NET folders?
View 1 Repliesi 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.
I am trying to get this to work for quite some time now. I have an asp.net page in which I am trying to play a wav file. The code in the page load event is as follows:
Response.Clear()
Response.ContentType = "audio/wav"
Response.AppendHeader("Content-Disposition", "inline;filename=" + "temp.wav")
Dim filePath As String = Server.MapPath("/temp.wav")
If Not String.IsNullOrEmpty(filePath) Then
'Here I am converting the file to a byte array,as eventually I'll be creating the wav files on the fly
Dim fileBytes As Byte() = GetFileBytes(filePath)
Response.BinaryWrite(fileBytes)
Response.Flush()
End If
The problem I am having is every time I run this page, the windows media player opens up. I would like the audio to be played using some inbuilt plugin in the browser. Something like, when you click on a voice icon, how the sound pops up without opening any player.
If I have the same content in an ashx handler, would it be better?
I could not use the embed tag because, I shall not be having a physical file on the server, it would be generated on the fly using a response stream.
How to play any audio file on browser? I used HTML5's <audio> but it does not support to all extensions. Is it any control for that that any file I can play?
View 1 RepliesHow could i paly a video & audio file on an asp.net page so that the file is determined on the run time
View 2 RepliesI am having the hardest time figuring this problem out. I have a Silverlight 4 application that loads audio and video files from URLs. The URLs are the same domain as the application is hosted on and it works great for video.The URLs are actually asp.net mvc controllers that are responsible for reading the file from a shared location on and the server and serving back a filestream. The URLs look something like this:http://localhost:31479/CourseMedia?path=omnisandbox1ILMSShare2Demo-Fire+BehaviormediaDisclaim.wma&encrypted=False&id=00000000-0000-0000-0000-000000000000
If I put the URL directly into the browser the file loads and plays in windows media player just fine, and if I use a separate test silverlight project to load the url it also works, but for the life of me I can not get it to work properly in my main project.This is the routine I use to actually do the source setting:
protected void SetPlayerURL(MediaElement player, string url)
{
if (player != null && url.Length > 0)
[code]...
I am using ajax and javascript to play sound from specific time till a specific time.
I do change the class from play to pause when user plays it but i am unable to change it back to play when the sound duration stops
<script type="text/javascript">
function aud_play_pause() {
var myAudio = document.getElementById("myTune");
var musicStartTime = 25;
var musicStopTime = 35;
[Code] ....
i wanna play and download song from database but only path of song is stord in database so how to do this and i don't wanna use id of song i wanna select song by column name (ASP.NET)(SQL server)
View 1 RepliesI want to embed audio into my web page. What's the best built in control in Visual Studio 2008 to use to add a small control that can play audio?
View 1 Repliesi need to embedd a video player on web form, that will be able to play almost every ormost of the known video/audio formats....(mpeg, flv, avi, 3gpp, wmv, wma)..i need only a single player.....to be embedded....and it shuld not use the pc's local players..
View 6 RepliesI want to play video / audio files on asp .net page.
client has following requirements
1) It can play all the popular formats
2) It can use installed player (if windows media player or any other) or it can run inside browser (i.e. Flash player)
I have already explored different options i.e. silverlight, Windows media services & flash player Among these three silverlight is discarded as there very few browsers having that plug in.
Is there a way to play a wmv file in my asp.net webpage? Will an end use need install some control when he access the webpage?
View 5 Replieshow can I embed .swf file in a web page and play successfully?
View 6 RepliesAdobe Flash or QuickTime..???
I assume Flash is not available via Ipads???
Which method alows the URL of the audio to be hidden when others embed the audio ?
I would like also to know the way to have an embedded video in my site that will not have the play buttons and play again and again. Is there a way to do that??
View 2 Repliesi have the following bit of code... is there a way to embed a media player into a webpage (such as windows media player) and play a file on it without actually having to have windows media player installed?
so to clarify, can i play a windows media player in a webpage without having it installed? because at the moment the follwing bit of code only plays my files asfter i installed windows media player on my PC.
private static string MediaPlayer(string file)
{ return "<OBJECT ID="mediaPlayer" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft Windows media Player components..." type="application/x-oleobject">" +
"<PARAM NAME="AutoStart" VALUE="true" />" +
string.Format("<PARAM NAME="FileName" VALUE="{0}" />", file) +
"<PARAM NAME="ShowControls" VALUE="true" />" +
"<PARAM NAME="ShowStatusBar" VALUE="true" />" +
string.Format("<EMBED type="application/x-mplayer2" SRC="{0}" name="mediaPlayer" width="176" height="144" autostart="1"showcontrols="1"></EMBED>", file) +
"</OBJECT>";
}
I am working on a financial portal and I am having a problem..I don;t know what to call it so i mentioned it as an 'unknown to me' problem..I have a webpage..whenever I click on any button on my webpage, the request goes through..but nothing show up on the webpage..then If I click on another link and then again come back to previous link,then only I see the results of button_click..
e.g.
I have a currency conversion and investment form..so after filling up the form in following way and if I click on "INVEST" then nothing shows up..
so now if i click on any other link and go back to 'buy currency' link I see the result as 'investment successful'