@@ -56,32 +56,34 @@ <h4 class="mt-4 mb-2">via data-cld-transformation</h4>
5656 import 'cloudinary-video-player/cld-video-player.min.css' ;
5757 import player from 'cloudinary-video-player/player' ;
5858
59- const myPlayer = player ( 'player-1' , {
60- cloudName : 'demo'
61- } ) ;
59+ ( async ( ) => {
60+ const myPlayer = await player ( 'player-1' , {
61+ cloudName : 'demo'
62+ } ) ;
6263
63- myPlayer . source ( {
64- publicId : 'snow_horses' ,
65- info : { title : 'Snow Horses' , subtitle : 'A movie about horses' } ,
66- transformation : [
67- { width : 400 , crop : 'limit' } ,
68- { effect : 'blur:500' } ,
69- { effect : 'saturation:-100' }
70- ]
71- } ) ;
64+ myPlayer . source ( {
65+ publicId : 'snow_horses' ,
66+ info : { title : 'Snow Horses' , subtitle : 'A movie about horses' } ,
67+ transformation : [
68+ { width : 400 , crop : 'limit' } ,
69+ { effect : 'blur:500' } ,
70+ { effect : 'saturation:-100' }
71+ ]
72+ } ) ;
7273
73- player ( 'player-2' , {
74- cloudName : 'demo' ,
75- transformation : [
76- { width : 400 , crop : 'limit' } ,
77- { effect : 'blur:500' } ,
78- { effect : 'saturation:-100' }
79- ]
80- } ) ;
74+ player ( 'player-2' , {
75+ cloudName : 'demo' ,
76+ transformation : [
77+ { width : 400 , crop : 'limit' } ,
78+ { effect : 'blur:500' } ,
79+ { effect : 'saturation:-100' }
80+ ]
81+ } ) ;
8182
82- player ( 'player-3' , {
83- cloudName : 'demo'
84- } ) ;
83+ player ( 'player-3' , {
84+ cloudName : 'demo'
85+ } ) ;
86+ } ) ( ) ;
8587 </ script >
8688
8789 <!-- Bootstrap -->
0 commit comments