Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mediaplaying

Status
Not open for further replies.

cehanovr

Technical User
Joined
Aug 31, 2004
Messages
2
Location
US
I'm adding in audio narration to my AW file, and I cannot get the buttons to play, pause and stop. Right now my audio just plays and that is not what I want.

I'd like to customize the design of the buttons to play, pause and stop. But I'm not sure how to do the coding for it.

Can anybody help me?
 
[tt]MediaPause(IconID@"Sound Icon Title", TRUE) [/tt]will pause it. Replace the TRUE with FALSE to unpause it & resume play. [tt]MediaSeek(IconID@"Sound Icon Title", position) [/tt] where position is the position in milliseconds. Using the [tt]MediaPosition [/tt]system variable, you could do:
[tt]MediaSeek(IconID@"Sound Icon Title", (MediaPostion@"Sound Icon Title" + 10000)) [/tt]
to fast forward 10 seconds ahead of the current position.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top