Embedded media player not working on server

Hi Experts,
I am using an embedded media player with asp.net c#.
The code works perfectly on localhost on my local machine.
When I deploy it to the server, the player does not show. Not even the black screen shows up.
What am I missing?
I provide the actual .mp4 file to play in codebehind and as I said, this works fine on localhost.
It does not show on server when running as localhost on the server itself.
OBJECT ID="Player"   classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" width="1200" height="700">
     
   <param name="URL" value="<%= file_url %>" />
   <param name="enabled" value="True" />
   <param name="AutoStart" value="False" />
   <param name="PlayCount" value="3" />
   <param name="Volume" value="50" />
   <param name="balance" value="0" />
   <param name="Rate" value="1.0" />
   <param name="Mute" value="False" />
   <param name="fullScreen" value="False" />
   <param name="uiMode" value="full" />
</object>

Open in new window

Zack SnydersAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KimputerCommented:
I don't think you use an embedded player at all. If it's really embedded, you could show me the download location of the player code. In this case, you only reference the Windows Media Player component, which means, the browser where it plays on, should be on a PC WITH WMP9 correctly installed. Way to go in excluding mobile phones/tablets and Apple/Linux users.
Yes, using the simple HTML5 video tag will be much easier, and widens your user base who won't complain about the video.
Zack SnydersAuthor Commented:
Thank you but this is not helping me.
My objective is to have a video player on my published web site which is hosted on an IIS windows server.
I am attaching the code I think you are referring to as well as a screen shot of the page on my local dev box which is what I want to see on the web server
I make use of fileupload to select file and in codebehind I provide this file to the player.
Once again, it works perfect on my dev box on localhost.
Getting the same result from the published version, is the objective
Would appreciate any help
rgs
  public partial class Vehicles : System.Web.UI.Page
    {
        protected string file_url = string.Empty;


  protected void Process_Click(object sender, EventArgs e)  //Process Media Files Button (screen shot)
        {

                  if (RightProfileupload.PostedFile != null)
            {
                      string filePath = RightProfileupload.PostedFile.FileName;
                      file_url = filePath;  // the file src for the media player

Open in new window

CapturePlayer.JPG
KimputerCommented:
It doesn't matter how much code you hurl at me, it won't get you any closer to a solution. You asked why it doesn't work properly, and I answered exactly why. The next step would be for you to get a step closer to a solution using that information, but instead you try to hammer your point home. You probably use a pre-existing package, so even if I was willing to take a deeper look at it, I would probably need ALL the code before I could take a crack at it, and that's not really why EE exists (to rewrite a whole software package, or finish a whole software engineering project).
In case you're really stubborn, the solution use to have Windows Media Player 9 correctly installed on the server or computer where you have problems loading the videos in the browser.
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

Zack SnydersAuthor Commented:
I've requested that this question be deleted for the following reason:

The current dialogue between me and the expert helping me is not going anywhere.
I have therefor decided to use a different approach.
Thank you for your assistance. It did help me to make up my mind to pursue a different solution.
rgs
KimputerCommented:
You took a wrong approach, asked why it didn't work, and I explained why it didn't work.
Just because you don't like it, or that you can't admit you took the wrong path to begin with, doesn't do away that the fact that the question has been answered. That's not all, I even suggested a way where you can have EVERY visitor of that site benefit from it, but you wanted to continue on your own approach. Even then I explained to you how to get it to work. It's sad of the THREE things I provided (answer, solution, alternative), you didn't even bother to test or consider even one thing.
Zack SnydersAuthor Commented:
As I said, what I am asking, the information I am providing and the help you are providing is either not helping me or I do not understand what you are suggesting I do.
I have tried my best to explain and show what I did and what I am trying to do. Bottom line of what I learned is that the approach I wanted to take does not work. If this is what you meant, I apologise.
I have now rewritten the application as a C# Winforms app and it is working perfectly, sharing the database on a remote server. This of course means that I have to deploy the app to individual users and do client updates from a server.  I still would like to pursue my original idea at a later stage. Still convinced there must be a way to get it done :)
rgs
KimputerCommented:
Yes, there must be a way (though nothing in life is 100% sure), and the most compatible way is to use HTML5 video tags to display and play the videos.
http://www.w3schools.com/html/html5_video.asp
Just try to incorporate this code instead of your current video code.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.