public function getStreamType() { $data = $this->getMetadata(); return isset($data['stream_type']) ? $data['stream_type'] : 'undefined'; }