Customizing the default image for PictureInPicture Sets

Application Default image
Usually, if you pass a URL to a DirectSmile Set that is contains a Picture In Picture frame, the image is downloaded and placed while the image is rendered. Sometimes, if the download failes for instance, the image can’t be placed and a default image is taken instead. Typically the image would look like this:

image

As you can see the text field does not contain a valid URL and the default image, built into the application, is taken.

Providing your own default image
The default image can easily be customized by placing a JPG file in the DirectSmile Set directory. Let’s take the following image.

image

It is important to name the image default.jpg, otherwise the VDP Studio won’t find the image.

image

The VDP Studio recognizes the file and automatically replaces the default image by the customized image.

image

About Oliver Dehne
Father of two little boys, good boys. Sometimes I like coding, trying to be a good developer.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: