Ejemplo n.º 1
0
        public void Play(PlaylistItem item)
        {
            PlaylistItem = item;
            MediaPlayer.Instance.SetDataSource(item.Url);
            MediaPlayer.Instance.PrepareAsync();
            MediaPlayer.Instance.Prepared += (sender, args) =>
            {
                MediaPlayer.Instance.Start();
            };

            _receiver = new LivestreamReceiver(item.Url);
            _receiver.MetadataChanged += Stream_MetadataChanged;
            _receiver.NameChanged     += Stream_NameChanged;
            _receiver.Start();
            toolPlayStop.Icon = STOP_ICON;
        }
Ejemplo n.º 2
0
 internal LivestreamMetadataEventArgs(LivestreamReceiver receiver, Dictionary <string, string> metadata)
 {
     this.Receiver = receiver;
     this.Metadata = metadata;
 }
Ejemplo n.º 3
0
 internal LivestreamDataEventArgs(LivestreamReceiver receiver, byte[] data)
 {
     this.Receiver = receiver;
     this.Data     = data;
 }