Link to home
Start Free TrialLog in
Avatar of Zack Snyders
Zack Snyders

asked on

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

Avatar of Kimputer
Kimputer

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.
Avatar of Zack Snyders

ASKER

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
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.
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
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.
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
ASKER CERTIFIED SOLUTION
Avatar of Kimputer
Kimputer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial