□ YouTube synced player with a MusicXML loaded locally.Two implementation examples are available in our example repository: Once a track is configured, you must call the method useTrack to enable it. asureIdx: for measure point, the index of the score where the point is located.time in seconds, the position of the synchronization point.Each point can have the following information: synchronizationPoints (required): the list of synchronization points to use.totalTime (required for external): the total time of the media played. ![]() mediaId (required for youtube, vimeo): the video identifier to embed.url (required for soundcloud and audio): the URL of the Souncloud or the audio file to load.type (required): The type of track to configure, using one of the following types: youtube, soundcloud, vimeo, audio, external.id (required): An unique identifier for the configuration, that can be used later for the method useTrack. ![]() This method uses the same system as our audio tracks manager in our editor app, but allows you to dynamically configure any track or connect an external player to an embedded score. getElementById ( 'embed-container' ) const embed = new Embed ( container, ) setTrack(object): PromiseĬonfigure a new video or audio track for the current embedded score. Import Embed from 'flat-embed' const container = document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |