botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Skype: Specifying thumbnailUrl disables video playing

Open euanlau opened this issue 9 years ago • 8 comments

     var msg = new builder.Message(session)
            .attachments([{
                contentType: "video/mp4",
                contentUrl: "http://mysite.com/somevideo.mp4",
                thumbnailUrl: "http://mysite.com/someimage.jpg"
            }]);

The thumbnail does show up properly on both Skype iOS and Mac. However, I am not able to play the video anymore. I am able to play the video on both clients after removing the thumbnailUrl.

euanlau avatar Dec 07 '16 19:12 euanlau

Hello @euanlau! Thank you for the issue. Unfortunately I wasn't able to reproduce that myself (the video is played with and without thumbnail). Could you please provide specific urls that don't play as well as your bot Id (that could give me some pointers in our logs). Thanks!

konstlut avatar Dec 19 '16 14:12 konstlut

Hi @euanlau, are you still experiencing this issue?

Andrea-Orimoto avatar Feb 14 '17 18:02 Andrea-Orimoto

@Andrea-Orimoto Yes. Just tried this again today. It is still a problem on both iOS and Mac.

     var msg = new builder.Message(session)
            .attachments([{
                contentType: "video/mp4",
                contentUrl: "http://d2gix7be81x68n.cloudfront.net/staging/20170217/a09b7a82-d5bc-4452-8e90-83e5a0e45909.mp4",
                thumbnailUrl: "https://d2gix7be81x68n.cloudfront.net/staging/20170217/60a8bf54-ae06-46eb-8911-1726bb9be4da.jpg"
            }]);

euanlau avatar Feb 17 '17 02:02 euanlau

what about using a video card (check the doc for details)

var card = new builder.VideoCard(session)
    .image({url: 'https://d2gix7be81x68n.cloudfront.net/staging/20170217/60a8bf54-ae06-46eb-8911-1726bb9be4da.jpg'})
    .media([
        { url: 'https://d2gix7be81x68n.cloudfront.net/staging/20170217/a09b7a82-d5bc-4452-8e90-83e5a0e45909.mp4' }
    ])
    .autoloop(false)
    .autostart(false)
    .aspect('9:16');

var msg = new builder.Message(session).addAttachment(card);
session.send(msg);

This is working for me (but it crashes on iOS Skype). @konstlut, I've tried many permutations of the above, adding all properties, resizing the image as specified in the doc, etc... but the video card always crashes on iOS. Any known issue with videocards on iOS? my bot name is andreonodebasic3 (c58774e9-9fe3-425f-b463-b5342a94ed78) just in case you needed it.

btw, I can repro the original issue, if I send a video attachment with the thumbnail, it doesn't play. It plays without the thumbnail.

Andrea-Orimoto avatar Feb 17 '17 07:02 Andrea-Orimoto

If VideoCard crashes on iOS, then it isn't really a workaround.

Its great that you could reproduce the original issue.

euanlau avatar Feb 17 '17 17:02 euanlau

if it crashes it's a bug that should be fixed. Have you tried?

Andrea-Orimoto avatar Feb 17 '17 17:02 Andrea-Orimoto

@euanlau We found an issue that caused iOS to crash when using video cards. As a workaround try to set one of profiles ("sd", "hd") for your media.

var card = new builder.VideoCard(session)
    .image({url: 'https://d2gix7be81x68n.cloudfront.net/staging/20170217/60a8bf54-ae06-46eb-8911-1726bb9be4da.jpg'})
    .media([
        { url: 'https://d2gix7be81x68n.cloudfront.net/staging/20170217/a09b7a82-d5bc-4452-8e90-83e5a0e45909.mp4',
          profile: 'sd'
       }
    ])
    .autoloop(false)
    .autostart(false)
    .aspect('9:16');

var msg = new builder.Message(session).addAttachment(card);
session.send(msg);

aery-aery avatar Mar 21 '17 14:03 aery-aery

@aery-aery I will give it a try and report back. Thanks!

euanlau avatar Mar 27 '17 15:03 euanlau