             }
             else
             {
+                if (sourceLastPlayed != null)
+                {
+                    videoPlayer.close();
+                    videoPlayer.clear();
+                }
+                
                 flvSource =  new DynamicStreamItem();
                 sourceLastPlayed = source;
         

            }
            else
            {
                sourceString = String(this.source);
                sourceLastPlayed = sourceString;
            }

            {
                sourceString = String(this.source);
                sourceLastPlayed = sourceString;
                
                if (sourceLastPlayed != null)
                {
                    videoPlayer.close();
                    videoPlayer.clear();
                }
            }
           
            // load the video up
            mx_internal::videoPlayer.load(sourceString);
        }
        else
        {
            if (sourceLastPlayed != null)
            {
                videoPlayer.close();
                videoPlayer.clear();
            }
        }
        
        setPlaying(false);
