internal void loadData(SongData songData, MediaPrepared mediaPrepared) { this.songData = songData; isVideo = songData.isYoutube; if (isVideo) { videoSource.init(songData.path, mediaPrepared); } else { audioSource.clip = songData.getClip(); mediaPrepared(); } }
void OnUpdateStreamInfo(object sender, EventArgs e) { Duration = _impl.Duration; MediaPrepared?.Invoke(this, EventArgs.Empty); }