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

Seeking problem

7 Answers 89 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Joe Giese
Top achievements
Rank 1
Joe Giese asked on 09 Mar 2010, 11:34 PM
We are having seek problem. Although the stream server allows seeking, the Telerik media player will freeze if manually seek forward. Please help.

7 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 10 Mar 2010, 07:58 AM
Hi Martin Herrman,

Can you please download the current beta version of the media player and let us know if the problem is still reproducible. If so - can you send us the url of the stream that you are using.

Thanks!

Regards,
Valentin.Stoychev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Joe Giese
Top achievements
Rank 1
answered on 10 Mar 2010, 06:15 PM
Valentin,

Where is the beta download? Also, our mms urls are internal and it is not public.

Thanks
0
Valentin.Stoychev
Telerik team
answered on 11 Mar 2010, 08:46 AM
Hi Martin Herrman,

The Q1.2010 release is now official - you can download it from your account.

Greetings,
Valentin.Stoychev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Joe Giese
Top achievements
Rank 1
answered on 11 Mar 2010, 10:14 PM
Hi,

New version did not work and I think now I start having bigger problem than before. Seeking does not work using telerik and will cause the freezing. I have to kill the browser. I am able to use windows media and be able to seek forward or backward.

I can't autoplay the video.

RadMediaPlayer1.SelectedIndex = 0;




and I have only one item in my media list



            RadMediaPlayer1.SelectedIndex = -1;
            if (e.Result.Count == 0)
                return;

            var items = e.Result;
            ObservableCollection<RadMediaItem> itemsSource = new ObservableCollection<RadMediaItem>();

            foreach (OnlineTraining item in items)
            {
                RadMediaItem media = new RadMediaItem();

                media.Source = new Uri(item.FileName, UriKind.RelativeOrAbsolute);
                media.Title = item.Title;
                media.Header = item.Title;
                media.Description = item.Description;
                media.VideoStretch = Stretch.None;
                media.IsStreamingSource = true;
                QuizID = item.QuizID;
                AllowBackward = item.AllowBackward;
                AllowForward = item.AllowForward;
                AllowPause = item.AllowPause;
                AllowSeek = item.AllowSeek;

                media.ImageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri(item.ImageSource, UriKind.RelativeOrAbsolute));
                ObservableCollection<Chapter> chapters = item.Chapters;
                foreach (Chapter chap in chapters)
                {
                    RadMediaChapter chapter = new RadMediaChapter();
                    string[] timespan = chap.Position.Split(':');
                    chapter.Position = new TimeSpan(Convert.ToInt32(timespan[0]), Convert.ToInt32(timespan[1]), Convert.ToInt32(timespan[2]));

                    chapter.Content = chap.Title;
                    chapter.Tag = chap.ChapterID.ToString();
                    media.Items.Add(chapter);
                }

                
                itemsSource.Add(media);
                
                RadMediaPlayer1.SelectedItem = media;
            }
            RadMediaPlayer1.ItemsSource = itemsSource;
            RadMediaPlayer1.SelectedIndex = 0;


0
Miro Miroslavov
Telerik team
answered on 12 Mar 2010, 12:59 PM
Hello Martin Herrman,

You can use RadMediaPlayer in two different ways:
  • set ItemsSource to collection of custom obects - you need to provide DataTemplate to be used for the items that will be created. See example here.
  • or add RadMediaItems to the Items collection. See example here.
In the snipped you provide you should go with Items collection and not ItemsSource.
About seeking - the RadMediaPlayer is wrapper around the standard Silverlight MediaElement, so it's about if the MediaElement support it. Can you please give us the url to the video so we can test it?
Regards,
Miro Miroslavov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Joe Giese
Top achievements
Rank 1
answered on 12 Mar 2010, 06:09 PM
The URL is internal and its something like this:

mms://hortensia.ad.ocsd.local:8081/xyz.wmv
0
Miro Miroslavov
Telerik team
answered on 15 Mar 2010, 08:54 AM
Hello Martin Herrman,

Thank you for the details. Silverlight MediaElement actually doesn't support "real" streaming even when using with mms (it'll fallback to http) - more on this here, this means that when seeking you have to wait for http downloading the video and etc. Windows Media Player won't fallback and this way you'll have real streaming. If you need real streaming you can think of using Smooth Streaming media, which is supported by RadMediaPlayer.
If you have further questions please contact us.

Greetings,
Miro Miroslavov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
MediaPlayer
Asked by
Joe Giese
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Joe Giese
Top achievements
Rank 1
Miro Miroslavov
Telerik team
Share this question
or