2022-06-17 13:03:29 +02:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-11-18 10:16:11 +01:00
|
|
|
exports[`MVideoBody does not crash when given a portrait image 1`] = `
|
|
|
|
<DocumentFragment>
|
|
|
|
<span
|
|
|
|
class="mx_MVideoBody"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_MVideoBody_container"
|
|
|
|
style="max-width: 182px; max-height: 324px;"
|
|
|
|
>
|
|
|
|
<video
|
|
|
|
class="mx_MVideoBody"
|
|
|
|
controls=""
|
|
|
|
controlslist="nodownload"
|
|
|
|
poster="data:image/png;base64,00"
|
|
|
|
preload="none"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
style="width: 182px; height: 324px;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
2023-07-17 14:07:58 +02:00
|
|
|
|
|
|
|
exports[`MVideoBody should show poster for encrypted media before downloading it 1`] = `
|
|
|
|
<DocumentFragment>
|
|
|
|
<span
|
|
|
|
class="mx_MVideoBody"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_MVideoBody_container"
|
|
|
|
style="max-width: 40px; max-height: 50px;"
|
|
|
|
>
|
|
|
|
<video
|
|
|
|
class="mx_MVideoBody"
|
|
|
|
controls=""
|
|
|
|
controlslist="nodownload"
|
2023-08-14 10:25:13 +02:00
|
|
|
poster="https://server/_matrix/media/v3/download/server/encrypted-poster"
|
2023-07-17 14:07:58 +02:00
|
|
|
preload="none"
|
|
|
|
title="alt for a test video"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
style="width: 40px; height: 50px;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</DocumentFragment>
|
|
|
|
`;
|