Contents

mediaGroup(forIdentifier:)

Returns the media group with the specified identifier.

Declaration

func mediaGroup(forIdentifier mediaGroupIdentifier: String) -> MLMediaGroup?

Parameters

  • mediaGroupIdentifier:

    The media group identifier to search for in the source.

Discussion

The media source must have finished loading before this method returns valid data. Specifically, the root media group must be available before the lookup methods will succeed. Otherwise, the return value is undefined.

See Also

Accessing Media