Skip to main content
1 of 2
Igor Skochinsky
  • 36.9k
  • 7
  • 65
  • 116

Any such functionality is dependent on the player or viewer used. I know of no image formats that require any kind of interaction from the viewer, but some video formats do (or, rather, did) use it.

In addition to Quicktime mentioned by 0xea, the Windows Media/ASF format allows embedding of script commands, and one of them is opening an URL:

http://support.microsoft.com/kb/828026

When a content owner creates an audio or a video stream, that content owner can add script commands (such as URL script commands and custom script commands) that are embedded in the stream. When the stream is played back, the script commands can trigger events in an embedded player program, or they can start your Web browser and then connect to a particular Web page. This behavior is by design.

However, this behavior:

  • relies on the player supporting it (e.g. I don't think VLC or mplayer support it)
  • can be disabled by the user

So, I would not rely on it.

Igor Skochinsky
  • 36.9k
  • 7
  • 65
  • 116