I ve got a problem with the media player control (autoplay = true).
I want to play an audio along the navigation of my website... but each time i m making a postback, the mediaplayer restart the mp3, even if i use session state
Is there something special to do ?
Does anyone have solve this thing or add the same problem?
Also, are you using the latest controls from the new release that occurred yesterday?
If you want to retrieve and play the location of the movie from a point in the moview, you can use the set_position() API in JavaScript. If you hook up the OnClientMediaOpened (on the server control) to a JavaScript handler - you could perhaps then get hold
of the client-side type that manages the interactions with the media player and call on it's position property with a specific position. To obtain the position prior to pos-back, you could handle the client-side click of the postback control and then use the
same model as above to get_position and perhaps store as a hidden field value.
Therealbappy
0 Points
2 Posts
Problem Postback with the MediaPlayer Control
Feb 18, 2008 09:23 PM|LINK
Hi ,
I ve got a problem with the media player control (autoplay = true).
I want to play an audio along the navigation of my website... but each time i m making a postback, the mediaplayer restart the mp3, even if i use session state
Is there something special to do ?
Does anyone have solve this thing or add the same problem?
tx
Therealbappy
0 Points
2 Posts
Re: Problem Postback with the MediaPlayer Control
Mar 03, 2008 11:34 AM|LINK
Does someone have ever use the mediacontrol ??
SimonCal
Participant
1910 Points
384 Posts
Microsoft
Re: Problem Postback with the MediaPlayer Control
Mar 06, 2008 06:12 PM|LINK
We set up a new forum for you to discuss these controls: http://forums.asp.net/1154.aspx
Also, are you using the latest controls from the new release that occurred yesterday?
If you want to retrieve and play the location of the movie from a point in the moview, you can use the set_position() API in JavaScript. If you hook up the OnClientMediaOpened (on the server control) to a JavaScript handler - you could perhaps then get hold of the client-side type that manages the interactions with the media player and call on it's position property with a specific position. To obtain the position prior to pos-back, you could handle the client-side click of the postback control and then use the same model as above to get_position and perhaps store as a hidden field value.
Here are some links for you:
Client-side media (JS) type http://quickstarts.asp.net/3-5-extensions/reference/silverlightref/P_Sys_UI_Silverlight_MediaPlayer_position.aspx
Server-side control API: http://quickstarts.asp.net/3-5-extensions/reference/silverlightref/T_System_Web_UI_SilverlightControls_MediaPlayer.aspx
Quickstarts have some details about client JS interaction also: http://quickstarts.asp.net/3-5-extensions/silverlight/MediaPlayerControl.aspx
Hope this helps - I'll get a sample together sometime.
BTW some post-back handling support was something we were also considering adding to these controls.
This posting is provided "AS IS" with no warranties, and confers no rights.