I have what I hope is a simple problem. I'm using the RadMediaPlayer to show a video. When a user gets through the video, I want to record that fact to the database. For whatever reason, my code never fires. Here's my code:
Unfortunately I'm using this in a Azure project, so the debugger spins up the AppFabric and as such it can't be attached to iexplore.exe to investigate. Please help!
private void PlayVideo(string url, string title) |
{ |
var item = new RadMediaItem { Source = new Uri(url, UriKind.RelativeOrAbsolute), Title = title }; |
player.Items.Clear(); |
player.AutoPlay = true; |
player.MediaEnded += PlayerMediaEnded; |
player.CurrentItem = item; |
player.Play(); |
} |
void PlayerMediaEnded(object sender, Telerik.Windows.RadRoutedEventArgs e) |
{ |
// record to DB, but this never happens |
Utility.MarkVideoCompleted(); |
} |
Unfortunately I'm using this in a Azure project, so the debugger spins up the AppFabric and as such it can't be attached to iexplore.exe to investigate. Please help!