Skip to content

Commit

Permalink
feat: add url template for video player profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-roch committed Oct 1, 2024
1 parent 3e8d981 commit a6b3f63
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/es-modules/profiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,20 @@ <h5>Player with default profile</h5>
muted
></video>

<h5>Player with custom profile</h5>
<video
id="player-custom-profile"
class="cld-video-player"
width="500"
playsinline
controls
autoplay
muted
></video>

<p class="mt-4">
<a href="https://cloudinary.com/documentation/cloudinary_video_player"
>Full documentation</a
>Full documentation</a
>
</p>
</div>
Expand All @@ -49,6 +60,15 @@ <h5>Player with default profile</h5>

playerWithDefaultProfile.source('sea_turtle');
})();

(async () => {
const playerWithCustomProfile = await player('player-custom-profile', {
cloudName: 'demo',
profile: 'myCustomProfile'
});

playerWithCustomProfile.source('sea_turtle');
})();
</script>

<!-- Bootstrap -->
Expand Down

0 comments on commit a6b3f63

Please sign in to comment.