Added support for external video and audio files

This fixes #779.