Web Forms :: Playing A Sound From Code Behind?
Dec 27, 2010
i 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 Replies
Similar Messages:
Feb 26, 2011
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.
View 5 Replies
Jul 27, 2013
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 Replies
Apr 18, 2010
how to play wave sound and video by asp.net c#
View 2 Replies
Feb 8, 2010
Is there any good way of playing a sound when clicking a button on my web page?? It works great on my local mashine but won't work on the server! I don't want any windows media player or any other window to pop up! Just to play a wav sound!
This is the code that works on my local mashine!
[Code]....
View 5 Replies
Feb 7, 2011
i have tryed belowe code to play sound file and it has working perfectly when i run it in debug mode but after i host it is not working
using IIS 6 and VS 2008
[Code]....
View 7 Replies
Mar 26, 2011
1) user A inputs some data into webpage "a.aspx". When he clicks save button, data is insert into table A and table B.
2) another user B is accessing webpage "b.aspx" or could be away from his desk. To inform user B that he has new incoming data (upon insert into table B from step 1), I was thinking to play a sound to get user B attention that he has new incoming data.
Can I achieve this (play sound) in coding (without interfering with what user B is currently doing)?
View 2 Replies
Jan 23, 2010
I m using vs2005 & sql2005 I hv a database shown in gridview, wen I select a name (from dropdown of employees) from one of the column in gridview, a mail should go to respective employee with a feature THAT BEEPS INTO HIS SYSTEM 2WICE A DAY AT 2 PARTICULAR TIMES.
View 9 Replies
Nov 22, 2013
how to play .mp3 sound in page load?as background music.
View 1 Replies
Dec 5, 2012
I want to implement sound effect as background in my own website.It should start while opening the website.can u plz give me regarding code in asp.net(c#).
View 1 Replies
May 7, 2015
I'd like an .aspx webform with the posibillity to upload a sound file to Mixcloud, using the Mixcloud API.
Codebehind written in C#.
View 1 Replies
Sep 25, 2010
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 Replies
Jan 31, 2010
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...
View 12 Replies
Jul 8, 2010
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...
View 6 Replies
Jan 27, 2011
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 Replies
Jan 26, 2010
I'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.
View 2 Replies
Oct 8, 2010
environment: VWD 2010 Express, SQL 2008 Express, .NET 4.0, VB
I have a page with 4 radio buttons followed by 3 cascading ddl followed by a tab container with 5 tabs. Each tab holds a listview, etc that is particular to the group that has access to that tab. On page load I filter the listview based on who is logged in plus which radio button and DDL is selected - all ok so far.
after the page load, the initial datapager works fine and all other listview functions are fine. However, if I select the 4th radio button, the data returned is correct and the datapager shows as if it knows the correct number of items but if I click the datapager page 2 (or Last, etc) it immediately reloads the correct data as if it were a new page load (and changes the datapager appropriately). My suspicions are that this is due to the declarative select command defaulting to the data that it always goes back to.
I have tried to move the select to the code behind and played with the tabcontainer prerender event. That eventually got me to the point where the datapager was working properly but then I could no longer edit any of the dropdowns in my listview edit screen where I could before. They would go through the motions but as soon as you selected a new dropdown value, it would revert back to whatever it was before.
So at this point I'm looking for ideas on how to make these work together.
the code is excessive so I will avoid that for the moment until I can whittle it down to what is pertinent
View 6 Replies
Jun 9, 2010
Before I even start, I never used silverlight..not even touched the tutorials, articles, anything.
I got a project coming up I need to make some decisions about (Presentation layer defo Asp.Net MVC).
Basically a user will updload a video, which will be "processed" (cannot reveal that part) and then the user can preview the result before opting to download it in a video format.
For the "preview" part, I need to decide what "video" player to use, and before looking around I was wondering if Silverlight would be a good solution for this?
View 2 Replies
Mar 21, 2011
BACK-END CODE TO ENABLE USER TO ENTER YOUTUBE VIDEO LINK (url):
[Code]....
FRONT-END PANEL TO DISPLAY VIDEO:
[Code]....
View 2 Replies
Nov 25, 2013
Is it possible to remove YouTube logo when i am using you tube iframe to play a youtube video?
View 1 Replies
Oct 15, 2010
I am a Bigner in asp.net c# learning. How can i create a new folder in server from my c# program. in my semester asp.net project, i want to upload video/audio files into my own newly created folder and the storing folder's name must be given by me, which means each time folder name may change during uploading time. and how can i give a picture link to that vodeo files containing in different folders and how can i play that files in the browser using a player.
View 1 Replies
Apr 28, 2010
Is there a way to record sound from the user and save it on the server in ASP.Net 2.0 or greater?
View 2 Replies
Sep 15, 2010
I am using Visual Web Developer 2008 Express with C#. How do I put sound bytes on a Web page?
View 4 Replies
Jun 29, 2010
I have ap age I wrote that is a dashboard, so I have the whole page refresh itself rather frequently so the data doesn't get stale. The guys in our dispatch though who are using have lot's of audible alerts, so they keep their volumes way up, and even if it is in the background, the page makes a noise every time it refreshes, and it is driving some of them nuts I guess.
View 1 Replies
Oct 7, 2010
I want build an application on web which records the audio sound through Mic.
also if you can suggest some third party control which is free.
The technology for Implementation - ASP.NET , C#
View 3 Replies