src/FingersDance.Control.Player/UserControlPlayer.xaml.cs
changeset 122 b489c2756a13
parent 121 32611257e99f
child 134 f5108a598aa7
child 143 9f157d9c725b
equal deleted inserted replaced
121:32611257e99f 122:b489c2756a13
    50 
    50 
    51         #endregion
    51         #endregion
    52 
    52 
    53 
    53 
    54         #region Methodes
    54         #region Methodes
    55         void initPlayer()
       
    56         {/*
       
    57             //init player
       
    58             isPlaying = false;
       
    59             //Pour se diriger vers le Dossier ressources du projet et non le bin/ressources
       
    60             //DirectoryInfo info = Directory.GetParent(@".");
       
    61             FileInfo assemblyPath = new FileInfo(Assembly.GetExecutingAssembly().Location);
       
    62             DirectoryInfo info = assemblyPath.Directory;
       
    63             MediaElementVideo.Source = new Uri(@"" + info.FullName.ToString() + "\\Resources\\Lake.wmv", UriKind.Relative);
       
    64             MediaElementVideo.LoadedBehavior = MediaState.Manual;
       
    65             MediaElementVideo.UnloadedBehavior = MediaState.Manual;
       
    66             MediaElementVideo.ScrubbingEnabled= true;*/
       
    67         }
       
    68 
    55 
    69         public void initPlayer(string path)
    56         public void initPlayer(string path)
    70         {
    57         {
    71             //init player
    58             //init player
    72             isPlaying = false;
    59             isPlaying = false;