public HttpSupportNet(Uri base_url, MediaCache media) { this.base_url = base_url; this.media = media; client = new HttpClient(); client.BaseAddress = base_url; }
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); }
public SoundSupportXAML(Canvas container, Uri base_url, MediaCache cache) { this.container = container; this.base_url = base_url; this.cache = cache; }