473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

exec to run media player on server?

Is it possible to allow a web user (intranet) to launch Media Player on the
web server? I would like to use a web server as a media server and be able
to access and queue mp3 and wma files via a web page. Using IIS 6 and PHP5.

I have tried using the exec() command but MP does not launch and there is no
error reported in the browser.

Thx,

Mike
Jul 17 '05 #1
5 2499
On Tue, 28 Jun 2005 11:25:46 -0400, "Mike Wasilewski" <ml**@bellsouth.net>
wrote:
Is it possible to allow a web user (intranet) to launch Media Player on the
web server? I would like to use a web server as a media server and be able
to access and queue mp3 and wma files via a web page. Using IIS 6 and PHP5.

I have tried using the exec() command but MP does not launch and there is no
error reported in the browser.


This sounds like a bad idea in general, but OK. I can get it to launch WMP
from Apache by enabling "allow service to interact with desktop" in services.
Doesn't work at all if Apache logs on as my actual username, though.

This begs the question - what will it do when there's no desktop?

There may be a better way to do it - is this for remote control of a headless
PC running as a media system?

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
Andy,

Thanks for the reply. This will be used as a media server for home
audio/video. I am picturing a searchable music and video database with
users being able to add, delete, and move songs in a queue or launch a
digital video clip, all through a web browser. Perhaps there is a better
way to handle this. I am definitely open to suggestions.

Mike
"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:68********************************@4ax.com...
wrote:
This sounds like a bad idea in general, but OK. I can get it to launch WMP
from Apache by enabling "allow service to interact with desktop" in
services.
Doesn't work at all if Apache logs on as my actual username, though.

This begs the question - what will it do when there's no desktop?

There may be a better way to do it - is this for remote control of a
headless
PC running as a media system?

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

Jul 17 '05 #3
you could try some dedicated linux distributions for that, or install
something like mythtv or mediacentre for windows or something ...

Jul 17 '05 #4
Check this page on MSDN...
http://msdn.microsoft.com/library/de...parameters.asp

There's command line parameters for Media Player... so you may be able
to make something work like that.

Jeremy

Mike Wasilewski wrote:
Is it possible to allow a web user (intranet) to launch Media Player on the
web server? I would like to use a web server as a media server and be able
to access and queue mp3 and wma files via a web page. Using IIS 6 and PHP5.

I have tried using the exec() command but MP does not launch and there is no
error reported in the browser.

Thx,

Mike

Jul 17 '05 #5
Use winamp and the httpq plugin (http://httpq.sourceforge.net/)

Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephen Adam | last post by:
Hi there, Have spent a while trying to find out how to connect to Windows Media Player through COM. Unfortunately there doesnt seem to be much stuff about it on the web. What I need to do is...
2
by: StefanT | last post by:
Hi, I have a web app and a I have a http handler for a file, when I have a web request for that file I insert a stream of bytes like this: public void ProcessRequest(System.Web.HttpContext...
2
by: codepuller | last post by:
I have a embedded media player into an ASP.NET web page and it all works except for the first time the page loads, when the user clicks on the play button, the player acts like it is going to play...
4
by: hzgt9b | last post by:
Using VS 2003, VB.NET and/or ASP.NET 2.0, BACKGROUND I have a window forms based application that contains a TreeView control and a WebBroswer (AxSHDocVw.AxWebBrowser) control. The TreeView is...
3
by: sean.j.gage | last post by:
I'm attempting to download a windows media video file from a remote server and I would like to start playing it as soon as it starts downloading. Is there some special way to save the file that...
2
riptide2049
by: riptide2049 | last post by:
I really have a problem here. I have a code that is suppost to take the href of a link from the right class;value of a link maked toreturn false. the value is a Media file the file is sent to...
3
by: =?Utf-8?B?U3VzYW4=?= | last post by:
I have a tool that uses the Windows Media Player to display certain products to users. It works great on my machine, but I am having great difficulty on one of the "product" machines. To help find...
5
by: Fred Chateau | last post by:
I am currently using an Object element of type "application/x-mplayer2" to create a media player in ASP.NET 3.5, and was wondering if there is a better way to instantiate WMP in a browser. I'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.