[Show all top banners]

Raxi
Replies to this thread:

More by Raxi
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Computer expersts :: need help
[VIEWED 1443 TIMES]
SAVE! for ease of future access.
Posted on 12-11-07 10:19 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

hi

Can any one help me on how to embed the media player in asp.net  to play a sound file which is stored in Database as image or binary.

Thanks


 
Posted on 12-11-07 10:44 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

bro it is the html <object> element .. If you know the basic of html and asp.net. you should be able to change the parameter from the code.

<OBJECT id="VIDEO" width="320" height="240"
    style="position:absolute; left:0;top:0;"
    CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
    type="application/x-oleobject">
   
    <PARAM NAME="URL" VALUE="your file or url">
    <PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
    <PARAM NAME="AutoStart" VALUE="True">
    <PARAM name="uiMode" value="none">
    <PARAM name="PlayCount" value="9999">
</OBJECT>

change the value attribute of the param element from the code using database query

 
Posted on 12-11-07 10:47 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

further more

Most important parameters supported by Windows Media Player 7 and later:

Parameter Default Description
autoStart true Specifies or retrieves a value indicating whether the current media item begins playing automatically.
balance 0 Specifies the current stereo balance.
Values range from –100 to 100.
baseURL
Specifies the base URL used for relative path resolution with URL script commands that are embedded in media items.
captioningID 0 Specifies the name of the element displaying the captioning.
currentMarker 0 Specifies the current marker number.
currentPosition 0 Specifies the current position in the media item in seconds.
defaultFrame - Specifies the name of the frame used to display a URL.
enableContextMenu true Specifies a value indicating whether to enable the context menu, which appears when the right mouse button is clicked.
enabled false Specifies whether the Windows Media Player control is enabled.
fullScreen false Specifies whether video content is played back in full-screen mode.
InvokeURLs true Specifies a value indicating whether URL events should launch a Web browser.
Mute false Specifies if audio is muted.
PlayCount 1 Specifies the number of times a media item will play. Minimum value of one.
Rate 1.0 Specifies the playback rate.
0.5 equates to half the normal playback speed, 2 equates to twice.
stretchToFit false Specifies whether video displayed by the control automatically sizes to fit the video window, when the video window is larger than the dimensions of the video image.
uiMode full Specifies which controls are shown in the user interface.
Possible values: invisible, none, mini, full.
URL - Specifies the name of the media item to play.
You can specify a local filename or a URL.
Volume Last setting Zero specifies no volume and 100 specifies full volume.
windowlessVideo false Specifies or retrieves a value indicating whether the Windows Media Player control renders video in windowless mode.
When windowlessVideo is set to true, the Player control renders video directly in the client area, so you can apply special effects or layer the video with text.
Supported by Windows Media Player for Windows XP or later.


 
Posted on 12-11-07 10:57 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

i have a file that was playing in realplayer, how can i change the file to a wmv or mpeg or avi extension?
 
Posted on 12-11-07 11:57 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

You Need to buy or download software to do that.
Some you can find free on the internet.
Search for RM to WMV convertor.

 
Posted on 12-12-07 12:56 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

But my file is stored in database as image file or binary... so what will be the file url or name?

 


 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 7 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
nrn citizenship
emergency donation needed
ढ्याउ गर्दा दसैँको खसी गनाउच
मन भित्र को पत्रै पत्र!
जाडो, बा र म……
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters