MPlayer and applescript

I d’like to include a box in my applescript application to preview some videos.

I d’like to use Mplayer with a do shell script command but i don’t know how to incorpore the video into the main window of my software.

If somebody have an idea, thanks a lot.

Francois