You are here

static function MediaSoundCloudStreamWrapper::getMimeType in Media: SoundCloud 7.2

Same name and namespace in other branches
  1. 7 includes/MediaSoundCloudStreamWrapper.inc \MediaSoundCloudStreamWrapper::getMimeType()

File

includes/MediaSoundCloudStreamWrapper.inc, line 16
Extends the MediaReadOnlyStreamWrapper class to handle SoundCloud audio.

Class

MediaSoundCloudStreamWrapper
Create an instance like this: $soundcloud = new MediaSoundCloudStreamWrapper('soundcloud://u/[user-name]/a/[audio-code]');

Code

static function getMimeType($uri, $mapping = NULL) {
  return 'audio/soundcloud';
}