23 { Commands.Initialize(); |
23 { Commands.Initialize(); |
24 FactoryVideoLivre.Initialize(); |
24 FactoryVideoLivre.Initialize(); |
25 //FactoryVideoLivre.xmlClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(xmlClient_DownloadStringCompleted); |
25 //FactoryVideoLivre.xmlClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(xmlClient_DownloadStringCompleted); |
26 FactoryVideoLivre.Load("ProjectConfig.xml"); |
26 FactoryVideoLivre.Load("ProjectConfig.xml"); |
27 List<VideoBook> SelectedVideoBooks = new List<VideoBook>(); |
27 List<VideoBook> SelectedVideoBooks = new List<VideoBook>(); |
|
28 |
|
29 |
28 /*************** Content Demo ***************/ |
30 /*************** Content Demo ***************/ |
29 /* Pour pouvoir tester avec des vidéos : |
31 /* Pour pouvoir tester avec des vidéos : |
30 * - Placer les video dans le dossier Bin |
32 * - Placer les video dans le dossier Bin |
31 * - Rajouter Application.Current.Host.Source.Host devant le nom du fichier |
33 * - Rajouter Application.Current.Host.Source.Host devant le nom du fichier |
32 */ |
34 */ |
33 LDTFile file = new LDTFile(); |
35 Loader.RegisterType("ldt", LDTFileReader.ConvertToVideoBook); |
|
36 |
|
37 |
|
38 //SelectedVideoBooks = Loader.LoadAvailableVideoBooks("Content/AvailableVideoBooks.xml"); |
|
39 /* LDTFile file = new LDTFile(); |
34 // file.Load(new Uri("Modernisation.FileConvertor;component/ENMI08-I-bernard_stiegler-jauffret.ldt", UriKind.Relative).ToString()); |
40 // file.Load(new Uri("Modernisation.FileConvertor;component/ENMI08-I-bernard_stiegler-jauffret.ldt", UriKind.Relative).ToString()); |
35 file.Load("Content/ENMI08-I-bernard_stiegler-jauffret.ldt"); |
41 file.Load("Content/ENMI08-I-bernard_stiegler-jauffret.ldt"); |
36 |
42 |
37 LDTFileReader _LDTFR = new LDTFileReader("Content/ENMI08-I-bernard_stiegler-jauffret.ldt"); |
43 LDTFileReader _LDTFR = new LDTFileReader("Content/ENMI08-I-bernard_stiegler-jauffret.ldt"); |
38 VideoBook temp = _LDTFR.VideoBook; |
44 VideoBook temp = _LDTFR.VideoBook; |
43 temp = new LDTFileReader("Content/ENMI08-II-antoine_masson-jauffret.ldt").VideoBook; |
49 temp = new LDTFileReader("Content/ENMI08-II-antoine_masson-jauffret.ldt").VideoBook; |
44 |
50 |
45 temp.MediaPath = Application.Current.Host.Source.Host + @"/video.mp4"; |
51 temp.MediaPath = Application.Current.Host.Source.Host + @"/video.mp4"; |
46 SelectedVideoBooks.Add(temp); |
52 SelectedVideoBooks.Add(temp); |
47 SelectedVideoBooks.Add(new LDTFileReader("Content/ENMI08-III_elizabethrosse-psychologie_et_reseaux_sociaux-jauffret.ldt").VideoBook); |
53 SelectedVideoBooks.Add(new LDTFileReader("Content/ENMI08-III_elizabethrosse-psychologie_et_reseaux_sociaux-jauffret.ldt").VideoBook); |
|
54 */ |
|
55 |
|
56 |
48 // SelectedVideoBooks.Add(new LDTFileReader("Content/ENMI08-IV-dominiquepasquier-jauffret.ldt").VideoBook); |
57 // SelectedVideoBooks.Add(new LDTFileReader("Content/ENMI08-IV-dominiquepasquier-jauffret.ldt").VideoBook); |
49 /********************************************/ |
58 /********************************************/ |
50 |
59 |
51 /*************** Initialisation des commandes ***************/ |
60 /*************** Initialisation des commandes ***************/ |
52 InitializeComponent(); |
61 InitializeComponent(); |