473,711 Members | 2,790 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2513
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.andyhsoftwa re.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.c om...
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.andyhsoftwa re.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
7895
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 create a simple console application which will be able to find out what the values of a currently playing tack. I've downloaded the Windows Media player SDK which come with some IDL and
2
2864
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 context) { string path = "c:/media/atb.mpg"; byte buffer=null; context.Response.ClearHeaders();
2
2864
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 and then it stops. When I refresh the page, it works fine. Not sure what to think here about this. Any ideas?
4
6312
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 populated with nodes that when clicked play an audio clip from specified local or web URL and navigate the browser control to a specified local or web URL. Audio playback uses as hidden media player object AxWMPLib.AxWindowsMediaPlayer).
3
4550
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 will allow Windows Media Player to play the file as I transfer it? Cheers!
2
3281
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 quicktime or windows meida player depending on which plugin was found. after the plug in is found a iframe with the right player is created. here is the code. for some reason In IE the plug in doesnt work and in fire fox it crashes <!DOCTYPE html...
3
2279
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 the problem, I have installed VS 2005 on the machine so that I can at least figure out what the problem is. When I run the tool, I get the "class not registered exception." I do ot know which clas, but when I open up my code, the...
5
2637
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 hoping to find something with better cross-browser compatibility. I looked at System.Windows.Media.MediaPlayer in PresentationCore.dll but I'm assuming that is used for Windows Forms (WPF). I'm also looking at the Silverlight 2.0 MediaElement as a...
0
8699
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9295
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9165
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9005
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6617
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5942
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4713
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3152
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2099
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.