How to make Kik video message show a thumbnail that fills the message box

1.3k views Asked by At

We would like to get our thumbnail images to fully fill the Kik message bubble the way other Kik video apps do (see image below). On iOS we are sharing like this:

KikMessage * msg = [KikMessage articleMessageWithTitle:nil
                                                  text:@"Check out this video I found"
                                            contentURL:self.video.shortURL
                                            previewURL:self.video.thumbnailURL]; 

However, the result is a small thumbnail image on the left of the Kik message box, and then the article text at right. Can anyone advise how to have only an image preview that fills the entire message box?

Kik video share

1

There are 1 answers

1
Anthony Wong On

What you are looking for is the 'photo' layout message style.

Try using

KikMessage *message = [KikMessage photoMessageWithImageURL:self.video.shortURL
                                                previewURL:self.video.thumbnailURL];

Note that the behavior will be slightly different as you are sharing from another native application, whereas "Video Kik" and "Video For Kik" are Kik optimized webpages (see dev.kik.com for more details)