Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How play mpeg in ASPX page?

Reply
Thread Tools

How play mpeg in ASPX page?

 
 
VB Programmer
Guest
Posts: n/a
 
      11-18-2004
How do you play an mpeg in an ASPX page? Do you need to add a reference of
some sort?

I added this in the html:
<object ID="MediaPlayer" WIDTH="320" HEIGHT="285"
CLASSID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft® Windows® Media Player components..."
TYPE="application/x-oleobject" border="0" hspace="0" VIEWASTEXT>
<param name="AutoStart" value="1">
<param name="AnimationAtStart" value="0">
<param name="BufferingTime" value="5">
<param name="ClickToPlay" value="1">
<param name="EnableTracker" value="1">
<param name="Filename"
value="/assets/work/eds/cats_te_mpl_mpg.mpg">
<param name="PlayCount" value="1">
<param name="ShowControls" value="1">
<param name="ShowAudioControls" value="1">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="1">
<param name="ShowStatusBar" value="1">
<param name="ShowTracker" value="1">
<embed TYPE="video/x-ms-asf-plugin"
PLUGINSPAGE="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
SRC="SOURCEFILE" NAME="MediaPlayer" WIDTH="320" HEIGHT="285" AutoStart="1"
ShowStatusBar="1" ShowTracker="1" ShowControls="1" ShowAudioControls="1"
ShowPositionControls="1" PlayCount="1" EnableTracker="1" ClickToPlay="1">
</embed>
</object>

But it keeps changing it to this:
<OBJECT id="MediaPlayer"
codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
type="application/x-oleobject" height="285" hspace="0"
standby="Loading Microsoft® Windows® Media Player components..." width="320"
border="0" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" VIEWASTEXT>
<embed TYPE="video/x-ms-asf-plugin"
PLUGINSPAGE="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
SRC="SOURCEFILE" NAME="MediaPlayer" WIDTH="320" HEIGHT="285"
AutoStart="1" ShowStatusBar="1"
ShowTracker="1" ShowControls="1" ShowAudioControls="1"
ShowPositionControls="1" PlayCount="1"
EnableTracker="1" ClickToPlay="1"> </embed>
</OBJECT>

Notice that "Filename" is MISSING. Any ideas?


 
Reply With Quote
 
 
 
 
Daniel Fisher\(lennybacon\)
Guest
Posts: n/a
 
      11-18-2004
What about setting the src attribute?

--
Daniel Fisher(lennybacon)
MCP ASP.NET C#
Blog: http://www.lennybacon.com/


"VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
news:%(E-Mail Removed)...
> How do you play an mpeg in an ASPX page? Do you need to add a reference
> of some sort?
>
> I added this in the html:
> <object ID="MediaPlayer" WIDTH="320" HEIGHT="285"
> CLASSID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
> CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
> STANDBY="Loading Microsoft® Windows® Media Player components..."
> TYPE="application/x-oleobject" border="0" hspace="0" VIEWASTEXT>
> <param name="AutoStart" value="1">
> <param name="AnimationAtStart" value="0">
> <param name="BufferingTime" value="5">
> <param name="ClickToPlay" value="1">
> <param name="EnableTracker" value="1">
> <param name="Filename"
> value="/assets/work/eds/cats_te_mpl_mpg.mpg">
> <param name="PlayCount" value="1">
> <param name="ShowControls" value="1">
> <param name="ShowAudioControls" value="1">
> <param name="ShowDisplay" value="0">
> <param name="ShowGotoBar" value="0">
> <param name="ShowPositionControls" value="1">
> <param name="ShowStatusBar" value="1">
> <param name="ShowTracker" value="1">
> <embed TYPE="video/x-ms-asf-plugin"
> PLUGINSPAGE="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
> SRC="SOURCEFILE" NAME="MediaPlayer" WIDTH="320" HEIGHT="285"
> AutoStart="1" ShowStatusBar="1" ShowTracker="1" ShowControls="1"
> ShowAudioControls="1" ShowPositionControls="1" PlayCount="1"
> EnableTracker="1" ClickToPlay="1">
> </embed>
> </object>
>
> But it keeps changing it to this:
> <OBJECT id="MediaPlayer"
> codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
> type="application/x-oleobject" height="285" hspace="0"
> standby="Loading Microsoft® Windows® Media Player components..."
> width="320" border="0"
> classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" VIEWASTEXT>
> <embed TYPE="video/x-ms-asf-plugin"
> PLUGINSPAGE="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
> SRC="SOURCEFILE" NAME="MediaPlayer" WIDTH="320" HEIGHT="285"
> AutoStart="1" ShowStatusBar="1"
> ShowTracker="1" ShowControls="1" ShowAudioControls="1"
> ShowPositionControls="1" PlayCount="1"
> EnableTracker="1" ClickToPlay="1"> </embed>
> </OBJECT>
>
> Notice that "Filename" is MISSING. Any ideas?
>
>



 
Reply With Quote
 
 
 
 
VB Programmer
Guest
Posts: n/a
 
      11-18-2004
I think it was a bug in my IDE. I pasted the correct section again and
saved it and it worked. Hmmm..
Thanks.
"Daniel Fisher(lennybacon)" <info@(removethis)lennybacon.com> wrote in
message news:(E-Mail Removed)...
> What about setting the src attribute?
>
> --
> Daniel Fisher(lennybacon)
> MCP ASP.NET C#
> Blog: http://www.lennybacon.com/
>
>
> "VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
> news:%(E-Mail Removed)...
>> How do you play an mpeg in an ASPX page? Do you need to add a reference
>> of some sort?
>>
>> I added this in the html:
>> <object ID="MediaPlayer" WIDTH="320" HEIGHT="285"
>> CLASSID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
>> CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
>> STANDBY="Loading Microsoft® Windows® Media Player components..."
>> TYPE="application/x-oleobject" border="0" hspace="0" VIEWASTEXT>
>> <param name="AutoStart" value="1">
>> <param name="AnimationAtStart" value="0">
>> <param name="BufferingTime" value="5">
>> <param name="ClickToPlay" value="1">
>> <param name="EnableTracker" value="1">
>> <param name="Filename"
>> value="/assets/work/eds/cats_te_mpl_mpg.mpg">
>> <param name="PlayCount" value="1">
>> <param name="ShowControls" value="1">
>> <param name="ShowAudioControls" value="1">
>> <param name="ShowDisplay" value="0">
>> <param name="ShowGotoBar" value="0">
>> <param name="ShowPositionControls" value="1">
>> <param name="ShowStatusBar" value="1">
>> <param name="ShowTracker" value="1">
>> <embed TYPE="video/x-ms-asf-plugin"
>> PLUGINSPAGE="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
>> SRC="SOURCEFILE" NAME="MediaPlayer" WIDTH="320" HEIGHT="285"
>> AutoStart="1" ShowStatusBar="1" ShowTracker="1" ShowControls="1"
>> ShowAudioControls="1" ShowPositionControls="1" PlayCount="1"
>> EnableTracker="1" ClickToPlay="1">
>> </embed>
>> </object>
>>
>> But it keeps changing it to this:
>> <OBJECT id="MediaPlayer"
>> codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
>> type="application/x-oleobject" height="285" hspace="0"
>> standby="Loading Microsoft® Windows® Media Player components..."
>> width="320" border="0"
>> classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" VIEWASTEXT>
>> <embed TYPE="video/x-ms-asf-plugin"
>> PLUGINSPAGE="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
>> SRC="SOURCEFILE" NAME="MediaPlayer" WIDTH="320" HEIGHT="285"
>> AutoStart="1" ShowStatusBar="1"
>> ShowTracker="1" ShowControls="1" ShowAudioControls="1"
>> ShowPositionControls="1" PlayCount="1"
>> EnableTracker="1" ClickToPlay="1"> </embed>
>> </OBJECT>
>>
>> Notice that "Filename" is MISSING. Any ideas?
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert popular video formats (including MPEG, m1p, m2p, DAT, MPEG, MOV, AVI, WMV) to DVD with Video to DVD Burner bobo DVD Video 2 06-24-2009 10:01 AM
How to convert popular video formats (including MPEG, m1p, m2p, DAT, MPEG, MOV, AVI, WMV) to DVD with Video to DVD Burner zijuan Computer Support 0 07-26-2006 02:05 AM
How to convert popular video formats (including MPEG, m1p, m2p, DAT, MPEG, MOV, AVI, WMV) to DVD with Video to DVD Burner bobo DVD Video 0 07-25-2006 06:46 AM
Play Mpeg files over internet Greg Kamer HTML 2 06-03-2004 02:48 AM
how to play mpeg file received in new group? Andy Liu Computer Support 3 12-04-2003 03:05 AM



Advertisments