Log in

View Full Version : video in php



sarbas
02-01-2007, 05:30 AM
Hi,
I need to run video files in php.How to embed video files in php file. Is it possible to use flash player?
i've no idea.... waiting for your reply.


Thanks with regards
Sarbas.

djr33
02-02-2007, 10:03 AM
1. There are PHP extensions that actually can handle modifying/'viewing' videos. But that's not what you need... just a cool fact. (Like it could take a capture of a frame at a certain point and output that.)

2. Just echo the video tag, like <embed>. PHP makes html. So make it generate the html you need. First worry about the html, then make html make it for you.

3. Flash player? This ISN'T related to php. I suppose you could have PHP include a specific flash player. Or perhaps communicate (there are various ways... through a get variable, I think, through javascript (could be made with PHP), etc.)
If you actually need to generate a flash player with the right video, then you should look at PHP extensions that support this. But I'd look for another option first. That will be hard and require the extensions which can (frequently) still be betas.