Search code examples
silverlightsilverlight-4.0silverlight-toolkit

silverlight media play stop state


I am using SMF silverlight media player. I am using the following code to get me the current volume on player

this.item = function(){
        alert(this.player.GetVolume());
    }

which works fine but I also want the current status of the media. Whats the property for that. I didn't see that in API docs

thanks


Solution

  • I believe you want the PlayState property, which is of type MediaPluginState and can be one of these values:

    • Closed
    • Opening
    • Buffering
    • Playing
    • Paused
    • Stopped
    • Individualizing
    • AcquiringLicense
    • ClipPlaying