// check if we're using an encoder first
Encoder encoder = getEncoder( track );
if ( encoder != null ) {
// use Chunked stream strategy
stream = new ChunkedStream( track, encoder, getProperties() );
}
else if ( hasRangeHeader() ) {
// stream from range
Range range = processRangeRequest(track);