Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How to add .mpeg file in a html page.
Old 12-02-2005, 11:15 PM How to add .mpeg file in a html page.
gps
Experienced Talker

Posts: 47
Location: Chandigarh
Trades: 0
Hi,

Please help me out from this problem.

I want that when a viewer click on a play button of Windows Media Player embeded in a web page the linked video (.mpeg) file will run online. But this will not happen instead of playing the file it asked for download the file. Here is the code what i put on my web page.

<tr>
<td width="100%" align="center">
<object id="MediaPlayer1"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
<BR>standby="Loading Microsoft Windows® Media Player components..."
type="application/x-oleobject" width="250" height="246"><param name="fileName" value="PromoNew.mpg"><param name="animationatStart" value="true"><param name="transparentatStart" value="true"><param name="autoStart" value="false"><param name="showControls" value="true"><param name="Volume" value="-450"><embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="PromoNew.mpg"> name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1
volume=-450></object>
</td>
</tr>


Please help me out to solve the problem. Please tell me what is wrong in this code. Thanks in advance for your valuable suggestions and time.

G.P.Singh
www.sasnagarinfo.com
gps is offline
Reply With Quote
View Public Profile Visit gps's homepage!
 
 
Register now for full access!
Old 12-03-2005, 01:05 AM
TrentonD's Avatar
Ultra Talker

Posts: 253
Location: Calgary, Alberta, Canada
Trades: 0
Well first of all, what is that <br> doing in the middle of the <object> tag?
__________________
Signature Coming Soon! :)
Please login or register to view this content. Registration is FREE
TrentonD is offline
Reply With Quote
View Public Profile Visit TrentonD's homepage!
 
Old 12-03-2005, 04:19 AM
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
There were a few problems, like the line-break (br) and a missing open tag.

HTML Code:
<object id="MediaPlayer1" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" width="250" height="246">
<param name="fileName" value="PromoNew.mpg">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="false">
<param name="showControls" value="true">
<param name="Volume" value="-450">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="PromoNew.mpg">
<name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450></object>
That's the code you want.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 12-06-2005, 03:53 AM
gps
Experienced Talker

Posts: 47
Location: Chandigarh
Trades: 0
Thank you very much for the help. Now it is working. But it still asked to download the file when the page loads. the url of the said web page is http://www.sarghimohali.com/tallyfilm.htm

I really appricate the valuable time which you spend to solve my problem. Thanks again

G.P.Singh

Last edited by gps; 12-06-2005 at 03:55 AM..
gps is offline
Reply With Quote
View Public Profile Visit gps's homepage!
 
Old 12-06-2005, 05:18 AM
dotcomguy's Avatar
Skilled Talker

Posts: 89
Location: Manchester, UK
Trades: 0
Quote:
Originally Posted by TrentonD
Well first of all, what is that <br> doing in the middle of the <object> tag?

This made me laugh... not sure why!
__________________

Please login or register to view this content. Registration is FREE
from just $1.85 per post.
dotcomguy is offline
Reply With Quote
View Public Profile Visit dotcomguy's homepage!
 
Old 12-06-2005, 04:58 PM
TrentonD's Avatar
Ultra Talker

Posts: 253
Location: Calgary, Alberta, Canada
Trades: 0
Lol dotcomguy, what can I say... I'm just one of those people

And to gps.. I viewed that website in both Firefox and Internet Explorer, and in it seemed to work (automatically start playing) fine in both..

Can you possibly elaborate on your problem, or check again to see if you are still running into this problem?
__________________
Signature Coming Soon! :)
Please login or register to view this content. Registration is FREE
TrentonD is offline
Reply With Quote
View Public Profile Visit TrentonD's homepage!
 
Old 12-09-2005, 05:11 AM
gps
Experienced Talker

Posts: 47
Location: Chandigarh
Trades: 0
Thanks TrentonD for your visit. But on my PC the problem is same. when ever i go to that link it asked for download then i close the window. But the movie clip play fine.

The problem exist in my side.
gps is offline
Reply With Quote
View Public Profile Visit gps's homepage!
 
Old 12-12-2005, 12:25 AM
Ultra Talker

Posts: 253
Trades: 0
Yeah, if you still need it just type EMBED SRC .WMV intol google search, most all of those willw ork for your .mpeg.
takita is offline
Reply With Quote
View Public Profile
 
Old 12-13-2005, 08:34 PM
Extreme Talker

Posts: 170
Location: Canada
Trades: 0
Has this failed?

HTML Code:
<embed src="file.mpeg" autostart="false" hidden="false">
Sometimes the simplest route works the best.

Edit: I viewed the link, and everything seemed to work fine.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE

Last edited by collyer_1; 12-13-2005 at 08:37 PM..
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Reply     « Reply to How to add .mpeg file in a html page.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41636 seconds with 12 queries