Hello friends,

How to play videos using php, could anyone suggest me code to play the videos.

For example, I have a video "abc.mpg", i want to play it in the browser using php code.

I need help asap.

Thanks.

Recommended Answers

All 4 Replies

I dont know myself but i know that there is a free PHP you-tube like system. Maybe you could borrow some code?

I dont know myself but i know that there is a free PHP you-tube like system. Maybe you could borrow some code?

I want to load the videos dynamically.

Thanks.

This code play video file
Coded by pavansengar2002

<head>
<title>VTC Movie Player</title>
<link href="scripts/style.css" type="text/css" rel="stylesheet"/>
<script src="scripts/qtFunctions.js" ttype="text/javascript" language="javascript"></script>
<script src="scripts/cookies.js" ttype="text/javascript" language="javascript"></script>

<script src="google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-106600-1";
urchinTracker();
</script>


</head>
<body>
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="" HEIGHT="" CODEBASE="apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="">
<PARAM name="CONTROLLER" VALUE="FALSE">
<PARAM name="AUTOPLAY" VALUE="FALSE">
<PARAM name="CACHE" VALUE="FALSE">
<PARAM NAME="MovieQTList" VALUE="
<info>
<mov_url>&type=mov</mov_url>
<caption_url>&type=txt</caption_url>
<volume>83</volume>
<captions>1</captions>
<debug_url></debug_url>
<debug_caption></debug_caption>
</info>">
<EMBED src="filenaewithextention"
WIDTH="" HEIGHT=""
CONTROLLER="FALSE"
AUTOPLAY="FALSE"
CACHE="FALSE"
TYPE="video/quicktime"
PLUGINSPAGE="apple.com/quicktime/download/"
MovieQTList="
<info>
<mov_url>&type=mov</mov_url>
<caption_url>&type=txt</caption_url>
<volume>83</volume>
<captions>1</captions>
<debug_url></debug_url>
<debug_caption></debug_caption>
</info>">
</EMBED>
</OBJECT>
</body>
</html>
commented: Please look at the age of a thread before posting. -2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.