Exemplo n.º 1
0
        private void OnButtonClicked(object sender, EventArgs e)
        {
            var items = new List <PlaylistItem>();

            items.Add(new PlaylistItem
            {
                Title         = "Test1",
                ServerAddress = "http://synergygrid.smartarrow.aware.net/wms/2/177639/106547085.mp4",
                AutoPlay      = true
            });
            items.Add(new PlaylistItem
            {
                Title         = "Test2",
                ServerAddress = "http://synergygrid.smartarrow.aware.net/wms/2/177635/106490070.mp4",
                AutoPlay      = true
            });
            items.Add(new PlaylistItem
            {
                Title         = "Test3",
                ServerAddress = "http://synergygrid.smartarrow.aware.net/wms/2/177635/106490481.mp4",
                AutoPlay      = true
            });

            var hyperPlaylist = new ODS.Infrastructure.HyperMedia.Playlist {
                Items = items.ToArray()
            };

            mediaPlayer.LoadPlayList(hyperPlaylist);
            mediaPlayer.Play();
        }
Exemplo n.º 2
0
        private void OnButtonWMVListClicked(object sender, EventArgs e)
        {
            var items = new List <PlaylistItem>
            {
                new PlaylistItem
                {
                    Title         = "Test WMV",
                    ServerAddress = "http://synergygrid.smartarrow.aware.net/wms/2/96736/45454916.wmv",
                    AutoPlay      = true
                }
            };

            var hyperPlaylist = new ODS.Infrastructure.HyperMedia.Playlist {
                Items = items.ToArray()
            };

            mediaPlayer.LoadPlayList(hyperPlaylist);
            mediaPlayer.Play();
        }
Exemplo n.º 3
0
        private void OnButtonLargeListClicked(object sender, EventArgs e)
        {
            var items = new List <PlaylistItem>();

            var fullGameList = new FullGameList();

            foreach (var url in fullGameList.Instant)
            {
                items.Add(new PlaylistItem
                {
                    Title         = url,
                    ServerAddress = url,
                    AutoPlay      = true
                });
            }

            var hyperPlaylist = new ODS.Infrastructure.HyperMedia.Playlist {
                Items = items.ToArray()
            };

            mediaPlayer.LoadPlayList(hyperPlaylist);
            mediaPlayer.Play();
        }
Exemplo n.º 4
0
        private void OnButtonWMVListClicked(object sender, EventArgs e)
        {
            var items = new List<PlaylistItem>
            {
                new PlaylistItem
                {
                    Title = "Test WMV",
                    ServerAddress = "http://synergygrid.smartarrow.aware.net/wms/2/96736/45454916.wmv",
                    AutoPlay = true
                }
            };

            var hyperPlaylist = new ODS.Infrastructure.HyperMedia.Playlist { Items = items.ToArray() };

            mediaPlayer.LoadPlayList(hyperPlaylist);
            mediaPlayer.Play();
        }
Exemplo n.º 5
0
        private void OnButtonLargeListClicked(object sender, EventArgs e)
        {
            var items = new List<PlaylistItem>();

            var fullGameList = new FullGameList();

            foreach (var url in fullGameList.Instant)
            {
                items.Add(new PlaylistItem
                {
                    Title = url,
                    ServerAddress = url,
                    AutoPlay = true
                });
            }

            var hyperPlaylist = new ODS.Infrastructure.HyperMedia.Playlist { Items = items.ToArray() };

            mediaPlayer.LoadPlayList(hyperPlaylist);
            mediaPlayer.Play();
        }
Exemplo n.º 6
0
        private void OnButtonClicked(object sender, EventArgs e)
        {
            var items = new List<PlaylistItem>();

            items.Add(new PlaylistItem
            {
                Title = "Test1",
                ServerAddress = "http://synergygrid.smartarrow.aware.net/wms/2/177639/106547085.mp4",
                AutoPlay = true
            });
            items.Add(new PlaylistItem
            {
                Title = "Test2",
                ServerAddress = "http://synergygrid.smartarrow.aware.net/wms/2/177635/106490070.mp4",
                AutoPlay = true
            });
            items.Add(new PlaylistItem
            {
                Title = "Test3",
                ServerAddress = "http://synergygrid.smartarrow.aware.net/wms/2/177635/106490481.mp4",
                AutoPlay = true
            });

            var hyperPlaylist = new ODS.Infrastructure.HyperMedia.Playlist { Items = items.ToArray() };

            mediaPlayer.LoadPlayList(hyperPlaylist);
            mediaPlayer.Play();
        }