Exemple #1
0
    protected override void OnMediaTypeChanged(MediaTypeChanged e)
    {
        if (e.MediaType == MediaType.Advert)
        {
            if (m_albumArt != null)
            {
                m_albumArt.sprite = AdvertSprite;
            }

            SetTrackInfo("Advert", "Unknown", "Unknown");
        }
    }
Exemple #2
0
 /// <summary>
 /// Callback for when the type of media being played has changed
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnMediaTypeChanged(MediaTypeChanged e)
 {
 }