Ejemplo n.º 1
0
 public HttpSupportNet(Uri base_url, MediaCache media)
 {
     this.base_url      = base_url;
     this.media         = media;
     client             = new HttpClient();
     client.BaseAddress = base_url;
 }
Ejemplo n.º 2
0
            public void play()
            {
                if (sound.cached == null)
                {
                    if (sound.pending == null)
                    {
                        sound.pending = new List <SoundChannel>();
                    }

                    sound.pending.Add(this);
                    return;
                }

                element.AutoPlay = (start_at == 0);
                element.Source   = MediaCache.fileToLink(sound.cached);
            }
Ejemplo n.º 3
0
 public SoundSupportXAML(Canvas container, Uri base_url, MediaCache cache)
 {
     this.container = container;
     this.base_url  = base_url;
     this.cache     = cache;
 }