예제 #1
0
        public PlayListSong(string i_URL)
        {
            m_SongURL = URLSongFactory.CreateURLSong(i_URL);

            if (m_SongURL == null)
            {
                throw new Exception("The app doesnt support this kind of links: " + i_URL);
            }

            m_CurrentMode = eSongMode.Video;
        }
예제 #2
0
        public static URLSong CreateURLSong(string i_URL)
        {
            URLSong newSong = null;

            if (i_URL.Contains("youtube"))
            {
                newSong = new YoutubeSong(i_URL);
            }
            else if (i_URL.Contains("soundcloud"))
            {
                newSong = new SoundCloudSong(i_URL);
            }
            else if (i_URL.Contains("vimeo"))
            {
                newSong = new VimeoSong(i_URL);
            }

            return(newSong);
        }