Media Files running on PHP+HTML Script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m3m0mx
Forum Newbie
Posts: 1
Joined: Mon Oct 10, 2005 1:58 pm
Location: Mexico City

Media Files running on PHP+HTML Script

Post by m3m0mx »

Hi everybody, I'm trying to play some media files (.avi and .mp3) from a php and html script.
I'm having a problem when the file is autostarting... I can play one file but on the second request it doesnt start, but on the third request the file can be played.... In fact I can play one file, but cant play next, in this order 1-3-5-7...
All files (1-2-3-4-5-6-7) exist, I'm using file_exists function to make it sure... and when the wmplayer try to open files 2-4-6 I dont get any error and the player block the controls...
I'm using the next tag, where $AviFile is a variable pathname, depending of some parameters, for the media file..
<embed type="application/x-mplayer2" src="<? echo $AviFile; ?>" autostart="true"> </embed>
Locally I dont have any problem to reproduce any file... but when the services it's mounted on a domain... the problem before occurs..

Does anyone have some idea??

I will be glad if someone could help me !!!
Thanx...
Post Reply