Underlay

Description

Adds an image or a text layer as an underlay under the base layer.

Examples

			import {Cloudinary} from "@cloudinary/url-gen";
			
			const yourCldInstance = new Cloudinary({cloud:{cloudName:'demo'}});
			const myVideo = yourCldInstance.video('dog');
			
			import {source} from "@cloudinary/url-gen/actions/underlay"
			import {image, video, text} from "@cloudinary/url-gen/qualifiers/source"
			import {TextStyle} from '@cloudinary/url-gen/qualifiers/textStyle
			
			myVideo.underlay(
			      source(image('myImage'))
			    )
			
			myVideo.underlay(
			      source(video('myVideo'))
			    )
			
			myVideo.underlay(
			      source(text('My text'), 'arial_15')
			    )
			
			// Or a text with more complex options
			myVideo.underlay(
			      source(text('My text'), new TextStyle('arial', 50))
			    )
Details