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

Chapter are not showing

12 Answers 146 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 06 Apr 2010, 06:28 PM
Hi,

We have downloaded a new version and now our chartering is not available. I do see the splitter but nothing will display with mouse-over.


                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);
                }




Thanks

12 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 08 Apr 2010, 12:21 PM
Hello Martin Herrman,

Can you please find the attached project and check if this is what you need?
Hope will works for you.

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 09 Apr 2010, 10:29 AM
Hi,

Thanks for the source.
Please see the attachment image, during mouse-over I could see the chapter bar raise but not to its full extend.



Your code works but I am still having issue with mine. Although I am doing the same steps with exception of coverflow and playing inside telerik window.

Finally I was able to see the chapters by re-selecting the single item from the playlist. I already have set the selectedindex = 0

Is there anyway to have the chapter to be shown at all time?




0
Joe Giese
Top achievements
Rank 1
answered on 09 Apr 2010, 04:40 PM
Mad another discovery, managed to see the chapters by first clicking on already loaded item in playlist, maximize the control few times the I see it.

Our code been working with your older version.

Thanks
0
Miro Miroslavov
Telerik team
answered on 14 Apr 2010, 07:33 AM
Hello Martin Herrman,

We still can't reproduce this issue. We've created example with RadMediaPlayer inside RadWindow and is working as expected. Can you please find the attached project and helps us, making the needed changes in the project, so we can find the problem.
Thank you.

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 16 Apr 2010, 06:01 PM
Hi,

I was able to reproduce the problem with your sample code as well. You need to open and close the Telerik window multiple time to see the problem. Here are the change I made to your code:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using Telerik.Windows.Controls;

namespace MediaPlayerTestChapters
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();


        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Player1.Items.Clear();

            ObservableCollection<Chapter> chapters = new ObservableCollection<Chapter>
            {
                new Chapter{Title="Chapter 1", Position= TimeSpan.FromMinutes(2)},
                new Chapter{Title="Chapter 2", Position= TimeSpan.FromMinutes(10)},
                new Chapter{Title="Chapter 3", Position= TimeSpan.FromMinutes(20)},
            };

            RadMediaItem media1 = new RadMediaItem();
            media1.Source = new Uri("http://ecn.channel9.msdn.com/o9/mix/10/wmv/CL03.wmv");

            foreach (Chapter chap in chapters)
            {

                RadMediaChapter chapter1 = new RadMediaChapter();
                chapter1.Position = chap.Position;
                chapter1.Content = chap.Title;
                chapter1.Tag = chap.ChapterID.ToString();
                media1.Items.Add(chapter1);
            }
            Player1.Items.Add(media1);
            window1.ShowDialog();
        }
    }

    public class Chapter
    {
        public int ChapterID { get; set; }
        public string Title { get; set; }
        public TimeSpan Position { get; set; }
    }
}


//xaml code


<UserControl x:Class="MediaPlayerTestChapters.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
        xmlns:nav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:player="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.MediaPlayer">
    <Grid x:Name="LayoutRoot">
        <Button HorizontalAlignment="Center" VerticalAlignment="Top" Content="Show Second"
                Click="Button_Click" />



        <nav:RadWindow x:Name="window1">
            <player:RadMediaPlayer x:Name="Player1" SelectedIndex="0">

            </player:RadMediaPlayer>
        </nav:RadWindow>

    </Grid>
</UserControl>    



0
Miro Miroslavov
Telerik team
answered on 21 Apr 2010, 03:24 PM
Hi Martin Herrman,

Thank you for reporting that bug. It actually happened when you close the Window before you show the chapters.  I've created backlog item for it and will be fixed soon. I've also updated your Telerik points with 1000.
Thank you and if we can help you with something, just ask us.

All the best,
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 29 Apr 2010, 10:49 PM
Hi,

Can you please let me know when this bug is fixed?

Thanks
0
Vladislav
Telerik team
answered on 04 May 2010, 06:32 AM
Hello Martin Herrman,

This issue is logged in our PITS application.
You can track the issue's progress and vote for it there.
You can find the reported problem logged under the name "MediaPlayer: Chapters got lost when collapse the player and open it, before you show them.".

Best wishes,
Vladislav
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 04 May 2010, 08:39 PM
We have lost our chaptering so is there any solution? I can't wait for voting.....

F.Y.I.

Bug reporting site is not compatible with Firefox. I had to use IE to search or enter comments.



0
Vladislav
Telerik team
answered on 10 May 2010, 10:34 AM
Hi Martin Herrman,

I am sorry for the delayed response.
We have increased the priority of this issue and currently are doing our best to fix it.
We hope that will be able to provide a fixed binaries in our internal build (it should be available this Friday 14.V).

We are sorry for the inconvenience caused and hope that this time frame is acceptable for you.

Best wishes,
Vladislav
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 24 May 2010, 07:14 PM
Hi;

Any status on this bug, I still have the same problem with a new internal build.
0
Vladislav
Telerik team
answered on 26 May 2010, 08:13 AM
Hi Martin Herrman,

Thank you for this report.
It seems that we missed a border case while fixing this issue. This is the reason that you still observe the bug.
We will do our best to provide a complete fix for it in some of our consecutive release/internal build.
We will let you know once the fix is ready.

Kind regards,
Vladislav
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
Miro Miroslavov
Telerik team
Joe Giese
Top achievements
Rank 1
Vladislav
Telerik team
Share this question
or