Protected
constructorReadonly
isReturns true if an external music track is set.
The name of the Asset in Lens Studio.
Readonly
onEvent that triggers when the external music track changes.
Readonly
onEvent that fires when an external music track is removed.
Readonly
onEvent that fires when an external music track starts playing.
Readonly
onEvent that fires when an external music track stops playing.
Readonly
uniqueReturns the ExternalMusicInfo object for the current external music track. This can be used to compare two audio tracks during the Lens runtime.
Returns the LyricsTracker for the current external music track.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Provides an interface to the
ExternalMusic
feature, and opts the Lens into using the feature when present in the scene.Remarks
When this module is present in a scene, an unbundled and licensed AudioTrack asset must be present in the scene as well. This means the Lens developer should:
Bundled
is disabled@input audioAsset: AudioTrackAsset
)When this module is present in a Lens, the client running the Lens (either Snapchat or Lens Studio) will automatically fetch and auto-play the licensed music track included in the Lens.
This provides the benefits of:
This also adds the following limitations, some of which are due to the inclusion of Licensed Audio Tracks:
Example