2323 < script type ="text/javascript " src ="./scripts.js "> </ script >
2424
2525 < script type ="text/javascript ">
26+ window . addEventListener ( 'load' , async ( ) => {
27+ const playerWithDefaultProfile = await cloudinary . player ( 'player-default-profile' , {
28+ cloudName : 'demo' ,
29+ profile : 'cld-default' ,
2630 window . addEventListener ( 'load' , async ( ) => {
2731 const playerWithDefaultProfile = await cloudinary . player ( 'player-default-profile' , {
2832 cloudName : 'demo' ,
3236 playerWithDefaultProfile . source ( 'sea_turtle' ) ;
3337 } , false ) ;
3438
39+ window . addEventListener ( 'load' , async function ( ) {
40+ const playerWithCustomProfile = await cloudinary . player ( 'player-custom-profile' , {
41+ cloudName : 'prod' ,
42+ profile : 'myCustomProfile' ,
43+ } , false ) ;
44+
3545 window . addEventListener ( 'load' , async function ( ) {
3646 const playerWithCustomProfile = await cloudinary . player ( 'player-custom-profile' , {
3747 cloudName : 'prod' ,
5464
5565 playerWithCustomProfileAndOverrides . source ( 'samples/cld-sample-video' ) ;
5666 } , false ) ;
67+
68+ window . addEventListener ( 'load' , async function ( ) {
69+ const playerWithCustomProfileAndOverrides = await cloudinary . player ( 'player-custom-profile-overrides' , {
70+ cloudName : 'prod' ,
71+ profile : 'myCustomProfile' ,
72+ colors : {
73+ base : "#1532a8"
74+ } ,
75+ seekThumbnails : false ,
76+ aiHighlightsGraph : true ,
77+ } ) ;
78+
79+ playerWithCustomProfileAndOverrides . source ( 'samples/cld-sample-video' ) ;
80+ } , false ) ;
5781 </ script >
5882</ head >
5983< body >
@@ -77,6 +101,34 @@ <h5>Player with default profile</h5>
77101
78102 < h3 class ="mt-4 "> Example Code:</ h3 >
79103
104+ < pre >
105+ < code class ="language-html ">
106+
107+ <video
108+ id="player-default-profile"
109+ controls
110+ autoplay
111+ muted
112+ class="cld-video-player"
113+ width="500">
114+ </video>
115+
116+ </ code >
117+ < code class ="language-javascript ">
118+ window.addEventListener('load', async function() {
119+ const playerWithDefaultProfile = await cloudinary.player('player-default-profile', {
120+ cloudName: 'demo',
121+ profile: 'cld-default',
122+ });
123+
124+ playerWithDefaultProfile.source('sea_turtle');
125+ }, false);
126+ </ code >
127+ </ pre >
128+
129+ < h5 > Player with custom profile</ h5 >
130+ < h3 class ="mt-4 "> Example Code:</ h3 >
131+
80132 < pre >
81133 < code class ="language-html ">
82134
@@ -155,6 +207,7 @@ <h3 class="mt-4">Example Code:</h3>
155207
156208 < pre >
157209 < code class ="language-html ">
210+
158211 <video
159212 id="player-custom-profile-overrides"
160213 controls
@@ -163,6 +216,7 @@ <h3 class="mt-4">Example Code:</h3>
163216 class="cld-video-player"
164217 width="500">
165218 </video>
219+
166220 </ code >
167221 < code class ="language-javascript ">
168222 window.addEventListener('load', async function() {
0 commit comments