Chapter are not showing

13 posts, 0 answers
  1. Ramin Aminloo
    Ramin Aminloo avatar
    35 posts
    Member since:
    Dec 2009

    Posted 06 Apr 2010 Link to this post

    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
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 08 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. Ramin Aminloo
    Ramin Aminloo avatar
    35 posts
    Member since:
    Dec 2009

    Posted 09 Apr 2010 Link to this post

    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?




  5. Ramin Aminloo
    Ramin Aminloo avatar
    35 posts
    Member since:
    Dec 2009

    Posted 09 Apr 2010 Link to this post

    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
  6. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 14 Apr 2010 Link to this post

    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.
  7. Ramin Aminloo
    Ramin Aminloo avatar
    35 posts
    Member since:
    Dec 2009

    Posted 16 Apr 2010 Link to this post

    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>    



  8. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 21 Apr 2010 Link to this post

    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.
  9. Ramin Aminloo
    Ramin Aminloo avatar
    35 posts
    Member since:
    Dec 2009

    Posted 29 Apr 2010 Link to this post

    Hi,

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

    Thanks
  10. Vladislav
    Admin
    Vladislav avatar
    275 posts

    Posted 04 May 2010 Link to this post

    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.
  11. Ramin Aminloo
    Ramin Aminloo avatar
    35 posts
    Member since:
    Dec 2009

    Posted 04 May 2010 Link to this post

    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.



  12. Vladislav
    Admin
    Vladislav avatar
    275 posts

    Posted 10 May 2010 Link to this post

    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.
  13. Ramin Aminloo
    Ramin Aminloo avatar
    35 posts
    Member since:
    Dec 2009

    Posted 24 May 2010 Link to this post

    Hi;

    Any status on this bug, I still have the same problem with a new internal build.
  14. Vladislav
    Admin
    Vladislav avatar
    275 posts

    Posted 26 May 2010 Link to this post

    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.
Back to Top
DevCraft banner