Playing Media Files (from compiled publications)

Applies to HTML Viewer, IE Browser publications

There are several ways to play music or video from compiled publications. In all cases, players require media files to be physically available on the hard disk in order to play them, so the runtime module will temporarily extract them.

Playing media files in external applications thanks to external links

You can have external links in your publication. Just add a hyperlink to a media file you want to play, set the target attribute to _heopenit and that's all. The end user's default media player will be launched to play the file.

Play a MP3 file

Play a WMV file

HTML syntax for this example:

It works with any media file (AVI, OGG...) provided that a player is available on the end user's computer. Otherwise an error message will be displayed.

Using Windows Media Player

IE Browser publications can work with Windows Media PlayerŽ to play music or video: players embedded in HTML pages are supported.

Play MP3 audio files:

 

HTML syntax for this example:

Play WMV video files: in order to play them, you need to use a special URL that begins with the ghe:// protocol. Syntax: ghe://heserver/[url to the virtual file]

 

HTML syntax for this example:

Important:

  • this feature is still experimental in HTML Executable 3.3. It was successfully tested with Windows Media Player 10 and 11 on Windows XP and Vista.
  • Very large media files may not be supported (in fact media files may not play on computers with restrictions on the space dedicated to the Temporary Internet Files folder); please also keep in mind that media files must be unpacked to the hard disk in order to be played.