To add a duration of time to a media element simply specify a dur attribute parameter in an appropriate media tag:
..... <body> <img src="cardiff.gif" alt="The Cardiff icon" region="cardiff_icon" dur="6s" /> </body> .....