public function isStreaming(): bool
    {
        $prefixes = [
            # Standard streams
            "x-sonosapi-stream:",

            # Other streams (eg Amazon)
            "x-sonosapi-radio:",

            # Line in
            "x-rincon-stream:",

            # Line in (playbar)
            "x-sonos-htastream:",
        ];

        $media = $this->getMediaInfo();

        foreach ($prefixes as $prefix) {
            if (strpos($media["CurrentURI"], $prefix) === 0) {
                return true;
            }
        }

        return false;
    }
public function isStreaming(): bool
    {
        $prefixes = [
            # Standard streams
            "x-sonosapi-stream:",

            # Other streams (eg Amazon)
            "x-sonosapi-radio:",

            # Line in
            "x-rincon-stream:",

            # Line in (playbar)
            "x-sonos-htastream:",
        ];

        $media = $this->getMediaInfo();

        foreach ($prefixes as $prefix) {
            if (strpos($media["CurrentURI"], $prefix) === 0) {
                return true;
            }
        }

        return false;
    }
public function isStreaming ( ) : bool { $ prefixes = [ # Standard streams "x-sonosapi-stream:" , # Other streams (eg Amazon) "x-sonosapi-radio:" , # Line in "x-rincon-stream:" , # Line in (playbar) "x-sonos-htastream:" , ] ; $ media = $ this -> getMediaInfo ( ) ; foreach ( $ prefixes as $ prefix ) { if ( strpos ( $ media [ "CurrentURI" ] , $ prefix ) === 0 ) { return true ; } } return false ; }
Check if this controller is currently playing a stream.

@return bool
Check if this controller is currently playing a stream .