Single-bitrate playback

Work in progress. Updated version of PR #6.