View Single Post
Old 06-04-2008, 07:30 AM   #37 (permalink)
daneboyzzz
Experienced Zuner
 
daneboyzzz's Avatar
 
Join Date: May 2008
Location: FL
Posts: 130
daneboyzzz is on a distinguished road
Send a message via AIM to daneboyzzz
Default

Quote:
Also, Shoutout
I noticed you play the songs from the very beginning(which might be bad for some people) here is the trick i used:
The mediaplayer class has a method called playposition, which defines where you want the song to start(default is 0:0:0.0)
To start it at any time you want just set the playposition to a TimeSpan variable like so:

Code:
MediaPlayer.PlayPosition = new TimeSpan(0, 0, 30)This example starts the song at 0 hours, 0 minutes, and 30 seconds into the song
What if the songs less than 30 seconds long?




daneboyzzz is offline