Playing A Mp3 File On A Webpage?
May 17, 2010In an ASP.NET environment, what's the best way to play a mp3 file? Do I need to use a flash plugin (some users may not have flash). Also, this needs to work on a IPhone or an IPod.
View 3 RepliesIn an ASP.NET environment, what's the best way to play a mp3 file? Do I need to use a flash plugin (some users may not have flash). Also, this needs to work on a IPhone or an IPod.
View 3 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'm setting up a website for a friend who wants to showcase their music. At the moment i have about 12 songs all loading at the same time using the <embed> tag. This displays a WMP object on the page for each song and obviously takes forever to load due to the total size of the songs.
I'd like to be able to simply have a link (title of the song) and an image on the side of each song (play button) that can be used to start and stop each song as required.
I use media player control to play mp3 files in asp.net application. I want to find When the playing process gets end and the total time require to finish the file using javascript.
[Code].....
i want a player that can play flv and mp4 videos. i want to embed that player in my website (.net 3.5) i have googled a lot...but not found any....flowplayer is playing all flvs, but supports mp4 partially, some mp4 videos in flowplayer dont show video.
View 2 RepliesI have a website built in ASP.NET 2.0 and a Windows Server 2003 server streaming live videos with Windows Media Services.
To play the content i usually embed a Windows Media Player in my page and make it open the publication URL (let's say http://my.server.com/live), and it works fine.
The problem is that when no stream is playing, an empty stopped player appears and i don't like that
So i'd like to check in my (VB) code if there's actually something being streamed BEFORE i open the player, and display a 'no active stream right now, please try later' message instead.
i have Placed one object tag in one of my aspx pages which will play videos dynamically. object tag is as follow:
<object
type="application/x-shockwave-flash"
data='<%=file %>'[code]....
where "file" is a variable which i have delared at Code behind and on one button click i set it with "Video file with path". problem is that, i am not able to play video...
i used this JQuery plugin to play video on my app
[URL]
but i am not able to play the video,,,,,,Do i need some kind of player too??
i just copied the source from page and pasted as well as made js file too and copied the code of plugin and pasted in my app...
Using Asp.net 3.5, Dreamweaver, photostudio
I want to add a swf animation as part of the header, without making it look awkward, how to provide a overall cover design such that the swf file dosent look alienated.
I am trying to add it to the header, now i dont want it to occupy the entire header and it will be in the middle
I am sure we can add an swf file to an webpage without affecting the overall design, as i seen in several sites
USing MVC 3 I created a View
Index.cshtml
<div>
@Video.Silverlight(
[code]...
In our application we are playing video, for this we are using frameworke 2.0.Video files are placed in application server.This is working fine in IE and it is not working in firefox.
View 2 Repliesi have a control that shows me Messages. it sits in an update panel and constantly polls the server for new messages. This is accessed by multiple users.. My problem is that i need to be able to play a sound when new messages are found.. i have been able to "sorta" do this using soundplayer.. every time it polls it is checking timestamps to determine if a message was added in the last x seconds.. if so.. ding.. that works great.. UNTIL you put it out on the server.. from what i gather.. that will only dingat the server.. (great for the server room... not so much for the users).. i have been googling for hours now.. it seems theres 3.4 billion answers for stuff i don't think im looking for.. but i can't seem to find anything that really does this. I need the Code behind to cause the playing of the sound.. and for all users..
View 4 RepliesI have two input(file) controls in a web page. When clicking on first control browse button it is selecting a file and assigning into the textbox. When clicking on second control(browse button) the value in the first control(in textbox) is getting cleared. i need to avoid that one.
View 2 RepliesIs 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 RepliesI am trying to figure out how to persist the playing of a Silverlight MediaElement playing within a Silverlight User Control embedded in an ASP.NET during postback.
The scenario goes:
Have a media player on a site, press play, continue navigating through site while the music continues playing.
What it does right now:
Obviously the object gets loaded anew on each postback or page redirect (even if it's back to the same page IE: default.aspx).
I've seen samples of how to persist the state of a Control on postback and even complex data through cross-page postback. But nothing that covers my specific case.
Other particulars:
Silverlight 2
ASP.NET
C#
My default.aspx:
[code]....
I have tried the SoundPlayer class in ASP.NET used to give alert when it reachs threshold (value has been set).
When i directly complied from VS2008 its working mean it gives alert sound. But while i open browser the type "localhost/website/default.aspx" in the address bar its not playing (any sound).
My code is here
SoundPlayer objSoundplayer = new SoundPlayer(path);
objSoundplayer.LoadAsync();
objSoundplayer.Play();
objSoundplayer.PlayLooping();
Working with portnumber : localhost:55678/website/default.aspx
Not Working: localhost/website/default.aspx
What worng in this code or need to inculde some more properites.
How to " Upload Save Retrieve and Play MP4 Video files with live streaming from Database in ASP.Net"..your code is working fine ... but i have one problem . I can only here sounds of video files but VIDEOS are not working.
View 1 Repliesi let the user to edit and save the pdf file How to do this is there any api from adobe for controlling pdf file in asp.net web page can i have some sample codes
View 4 RepliesI have a web application which can display the statistics chart (.png format) to the web page. The chars are generated automatically every day by another application.
If I move the charts (all are in the server) into my web application domain, I can display them without problem. If I reference those charts directly without moving to my web application domain, "the file can not be found" error occur. The following 2 statements, the first one work, the second one has problem.
<img src="/Charts/graph_Ewma/Ewma_Obvs_108_nObvs_12.png" alt="Chart is not available" />
<img src="C:/R_Info/Proj/graph/2011-02-06_2011-02-17/Ewma_Obvs_108_nObvs_12.png" alt="Chart is not available" />
My question is how can I display the external .png files directly from where they are without moving them to the web application domain?
I have VB code that parses XML data from a webpage. Up until 2 days ago the XML data could be viewed right on the page and I could just grab the HTML source code to get the information. Now they have changed the page to a link button to download the XML file.
The problem is that when I click on the XML link I get the 'File Download Prompt' which asks me to run or save the file. I figured I could just save the file to temp directory and then open it up to parse it in my VB app but I can't figure out how to grab the file from the browser in my application.
I've added a new silverlight application to my project. It works fine by itself.
I even have a ClientBin folder in my ASP.NET Web Application with the XAP file of my Silverlight project.
So how I embed that Silverlight project into my existing ASP.NET web application?
Have been playing around with html emails and have successfully produced emails drawing the html code out of a stored .txt file template.
It's very easy; using streamReader to read the file and setting the email.body to the result.
My question is; since I already have html loaded into memory for the email, is there a way I can turn it into a web page on the fly?
Is it possible to create a sitemap.xml file which is dynamic and is actually created each time it is requested using c#
The obvious thing to do would be to call the file sitemap.aspx and have it return XML, but it has to be called sitemap.xml and look like an XML file (headers etc) to the requester.
I want to include a file into a webpage like this
<!--#include file="1.html"-->
1 is taken from the querystring in the page
so i tried this
<!--#include file="<% Request.QueryString("page_name") %>.html"--> #
and it dont work wht shall i do?
I'm downloading text from a website and I want to have the user be able to save it as a file. So, I have the following code that does just that.
protected void DownloadFile(string fileName, string content)
{
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName);
Response.ContentType = "text/plain";
Response.Write(content);
Response.End();
}
The problem I am having is that I get an exception after this code runs. I believe it's due to the fact that I call Response.End(). So, every time a user downloads a file it redirects them to the generic error page because all generic exceptions redirect to that page.
how I can write text out to a file and not get this error? If I remove Response.End() I get my text and then the rest of the HttpResponse text, but I don't get the error.