I tried on localhost to play audio and video files and it worked. The code for localhost testing is the following : string filename1 = audioListBox.SelectedItem.Value; string sSelectedAudio = Server.MapPath("~\\Uploaded Files\\Audios\\" + filename1); SoundPlayer objSoundPlayer = new SoundPlayer(sSelectedAudio); objSoundPlayer.Play(); the code for viewing my video on localhost server is : string filename1 = videoListBox.SelectedItem.Value; Media_Player_Control1.MovieURL = Server.MapPath("~\\Uploaded Files\\Videos\\" + filename1); i need help with this urgently! As i've a UAT tomorrow! Please help if anyone knows how to solve this! I just cant play these files on the server-side, everything works fine on localhost..! Anyone face such problems too please help too! Thanks dan
Do you have any link to the file so I can test it out? I just want to play it on my machine to see if I can recreate the issue.
you want to test it on localhost or on the web server? If localhost, i've no problems already. You can proceed to www.moombamusic.com/StudentLogin.aspx Then, click onto download course material button on the navigation page. after which, change the dropdown to week 4 you can see some audio and video files appear.. Go to the listboxes to choose the audio files to play and video files to play.. when clicked, it does not play the audio , likewise, video does not play when 'open video' is clicked. Thanks for the help dan
hi, I solved the problem..just put the full url to help yourselfs.. For example, MovieUrl = http://www.yourwebsite/Videos/Filename Instead of putting relative paths .// ~/ or Server.MapPath.. Cheers, dan