equal
deleted
inserted
replaced
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; |