This is a migrated thread and some comments may be shown as answers.

AG_E_Network_error #4001

3 Answers 164 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
venu
Top achievements
Rank 1
venu asked on 06 May 2009, 06:00 AM
hi,
   i am getting an error when ever i drag the time slider to its end point.

error is as follows.

a runtime error as occured
do u wish to debug?
line:453
error.sys.invalidoperationexception:Mediaerror error #4001 in control
'xaml1':AG_E_NETWORK_ERROR    

the code for this project is in previous post. my email id is avenugopalsjcit@gmail.com
please suggest me.
regards
venugopal

3 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 06 May 2009, 01:31 PM
Hi Venu,

As far as I remember, you were doing some things on the MediaEnded event. Could you please follow my suggestion in the other thread and then see whether this helps here as well.

Normally this error comes up when the media uri is not a valid one, it may be something that is played after the current item finishes.

Greetings,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Chris Rathermel
Top achievements
Rank 1
answered on 14 May 2009, 03:45 PM
I got this error because I figured out the hard way that the source has to be a url.  I had a file path set and it doesn't work:

    Private Sub Page_Loaded(ByVal sender As ObjectByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded  
        Dim radMediaPlayer1 As New RadMediaPlayer()  
        radMediaPlayer1.Width = 600  
        radMediaPlayer1.Height = 400  
        Dim mediaSource As String = "file://virchowkrause.net/webcasts/BTNameChange.wmv" 
        Dim imageSource As String = "http://vkforms.virchowkrause.net/ApplicationImages/timchristen.jpg" 
 
        Dim mediaItem As New RadMediaItem()  
        mediaItem.Source = New Uri(mediaSource, UriKind.RelativeOrAbsolute)  
        mediaItem.ImageSource = New BitmapImage(New Uri(imageSource, UriKind.RelativeOrAbsolute))  
        mediaItem.Title = "CEO Message - May 2009" 
        mediaItem.Description = "Baker Tilly Starts Now!" 
 
        radMediaPlayer1.Items.Add(mediaItem)  
        LayoutRoot.Children.Add(radMediaPlayer1)  
    End Sub 

This file path works fine in windows media player but not in telerik's media player.  Not good...
0
Valentin.Stoychev
Telerik team
answered on 15 May 2009, 06:37 AM
Hello Chris Rathermel,

This is a limitation in the framework. You can read more info on the topic here:
(URL Access Restrictions in Silverlight 2) http://msdn.microsoft.com/en-us/library/cc189008%28VS.95%29.aspx

Greetings,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
MediaPlayer
Asked by
venu
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Chris Rathermel
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Share this question
or