Migrate from legacy player to current version
<script>
tag loads the BeyondWords Player and instantiates a new player instance.
target: this
places the player immediately after the script tag in the <body>
. If you need a different placement, you can specify another target.
<ID>
placeholders in the script with your projectId and contentId to ensure the correct audio is played.
Property | Description |
---|---|
contentId | Unique UUID string for the audio content. You can also pass the previous integer audio ID as a string for users migrating from the legacy API. |
sourceId | The externally provided source identifier for a content item. This could be the ID from your CMS, the <guid> from an RSS <item> , or the post ID if generated using the WordPress Plugin. |
sourceUrl | The URL containing the source content. This could be the public URL submitted via the API, the <link> from an RSS <item> , or the post URL from the WordPress Plugin. |
playlistId | The unique ID for a playlist created in the dashboard or through the API. |
Add the new player NPM package
Add a target <div>
Initialize the player
<ID>
placeholders in the script with your projectId and contentId to ensure the correct audio is played.Property | Description |
---|---|
contentId | Unique UUID string for the audio content. You can also pass the previous integer audio ID as a string for users migrating from the legacy API. |
sourceId | The externally provided source identifier for a content item. This could be the ID from your CMS, the <guid> from an RSS <item> , or the post ID if generated using the WordPress Plugin. |
sourceUrl | The URL containing the source content. This could be the public URL submitted via the API, the <link> from an RSS <item> , or the post URL from the WordPress Plugin. |
playlistId | The unique ID for a playlist created in the dashboard or through the API. |