dt_gry Posted October 1, 2008 Share Posted October 1, 2008 ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? Hi Guys, I am wondering is there a way with PHP to embed WMV, MOV, and MPG files into a page, like in html. And also is it possible to allow the user to click a selection and it loads on the same page without having to take them to a new page per video. Thanks Guys dt_gry Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/ Share on other sites More sharing options...
DeanWhitehouse Posted October 1, 2008 Share Posted October 1, 2008 I don't think those can be embedded, but have you tried google? Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655140 Share on other sites More sharing options...
trq Posted October 1, 2008 Share Posted October 1, 2008 I am wondering is there a way with PHP to embed WMV, MOV, and MPG files into a page, like in html. PHP simply outputs html and has nothing to do wth any client side / browser interactions. Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655142 Share on other sites More sharing options...
Zane Posted October 1, 2008 Share Posted October 1, 2008 PHP does not embed video... PHP can embed HTML which embeds video... the only thing that PHP does is write to the browser.....it can also do math and plenty of other things....like connect to MySQL, use cURL, SOAP, interact with images...which is basically the GD Library (which is basically just A LOT of MATH), and plenty more. But when all is said and done......all PHP does is Write to the browser. If you tell it to write HTML code.....it will write HTML code if the HTML code has embedded video in it....then it will have embedded video in it. Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655150 Share on other sites More sharing options...
The Little Guy Posted October 1, 2008 Share Posted October 1, 2008 PHP does not embed video... PHP can embed HTML which embeds video... the only thing that PHP does is write to the browser.....it can also do math and plenty of other things....like connect to MySQL, use cURL, SOAP, interact with images...which is basically the GD Library (which is basically just A LOT of MATH), and plenty more. But when all is said and done......all PHP does is Write to the browser. If you tell it to write HTML code.....it will write HTML code if the HTML code has embedded video in it....then it will have embedded video in it. PHP doesn't JUST write to the browser, It can output to command line, and make pretty Applications too. You cant embed video files, but you can embed a video player, which can play a video! Check out these examples: http://www.apple.com/quicktime/tutorials/embed.html - Maybe the closest http://www.mioplanet.com/rsc/embed_mediaplayer.htm Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655170 Share on other sites More sharing options...
.josh Posted October 1, 2008 Share Posted October 1, 2008 In that respect, php just outputs some text to the browser. It's the browser itself that looks at that text, decides it's html, and renders it however. Php has nothing to do with that, so you can't really put that on php's resume. Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655183 Share on other sites More sharing options...
dt_gry Posted October 1, 2008 Author Share Posted October 1, 2008 Thanks for the responses guys it really helped, which leads me to another question. Could I use PHP to create a dropdown to select a video to play? Thanks dt_gry Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655201 Share on other sites More sharing options...
xtopolis Posted October 1, 2008 Share Posted October 1, 2008 Don't listen to them PHP, you're awesome! @op, you can use HTML to make a dropdown list and submit it to php and have it do something with the selected choice. Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655206 Share on other sites More sharing options...
trq Posted October 1, 2008 Share Posted October 1, 2008 Thanks for the responses guys it really helped, which leads me to another question. Could I use PHP to create a dropdown to select a video to play? Thanks dt_gry Did you read the replies? PHP simply outputs html. can you build a dropdown with html? Yes. Theres your answer. Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655221 Share on other sites More sharing options...
.josh Posted October 1, 2008 Share Posted October 1, 2008 html = static text that your browser renders php = dynamically outputting that text It really is that simple. Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655223 Share on other sites More sharing options...
ohdang888 Posted October 1, 2008 Share Posted October 1, 2008 use ajax to interact without reloading the page Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655227 Share on other sites More sharing options...
ober Posted October 2, 2008 Share Posted October 2, 2008 use ajax to interact without reloading the page *slap* AJAX has it's place, but it shouldn't be used unless it adds a lot of value to the application. Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-655537 Share on other sites More sharing options...
ohdang888 Posted October 3, 2008 Share Posted October 3, 2008 use ajax to interact without reloading the page *slap* AJAX has it's place, but it shouldn't be used unless it adds a lot of value to the application. why not? just curious. my guess is that it could be slow???? though i use ajax a lot on my site and its not slow. Not the fastest thing, but not slow Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-656096 Share on other sites More sharing options...
AV1611 Posted October 3, 2008 Share Posted October 3, 2008 use ajax to interact without reloading the page *slap* AJAX has it's place, but it shouldn't be used unless it adds a lot of value to the application. Touche Ober! Ajax is VERY system intensive at times... just watch your system load when it's running Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-656178 Share on other sites More sharing options...
ohdang888 Posted October 3, 2008 Share Posted October 3, 2008 so in a web 2.0 site, which all sites will be going to soon if they have not done so already, how can taht level of activity be achieved?, could using javascript to insert an iframe be more efficient? Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-656534 Share on other sites More sharing options...
DeanWhitehouse Posted October 3, 2008 Share Posted October 3, 2008 Did he even mention anything about it being dynamic ? No i dont think he did (i hope now i said this), so you are now just having a pointless argument and the same time hacking this persons thread. Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-656640 Share on other sites More sharing options...
.josh Posted October 3, 2008 Share Posted October 3, 2008 He asked if there was a way to do it with php the same way you can do it with html. That's why the nature of php vs. html was brought up. Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-656648 Share on other sites More sharing options...
DeanWhitehouse Posted October 3, 2008 Share Posted October 3, 2008 They are arguing about ajax, he just asked if he can make a drop down list in php, nothing about anything else And he was answered. Btw , if the topic is solved please click topic solved at the bottom of the page. Thanks, Blade Link to comment https://forums.phpfreaks.com/topic/126680-solved-embedding-videos/#findComment-656650 Share on other sites More sharing options...
Recommended Posts