2018-04-08 23:56:20 +00:00
|
|
|
import VideoDialog from '../components/VideoDialog.html'
|
|
|
|
import { createDialogElement } from '../helpers/createDialogElement'
|
|
|
|
import { createDialogId } from '../helpers/createDialogId'
|
2018-01-21 04:20:33 +00:00
|
|
|
|
2018-04-21 16:56:53 +00:00
|
|
|
export default function showVideoDialog (poster, src, width, height, description) {
|
2018-01-21 04:20:33 +00:00
|
|
|
let videoDialog = new VideoDialog({
|
2018-04-01 01:46:44 +00:00
|
|
|
target: createDialogElement(),
|
2018-01-21 04:20:33 +00:00
|
|
|
data: {
|
2018-04-08 23:56:20 +00:00
|
|
|
id: createDialogId(),
|
2018-02-05 03:15:35 +00:00
|
|
|
label: 'Video dialog',
|
2018-02-04 23:59:42 +00:00
|
|
|
poster,
|
|
|
|
src,
|
|
|
|
width,
|
|
|
|
height,
|
|
|
|
description
|
2018-01-21 04:20:33 +00:00
|
|
|
}
|
|
|
|
})
|
2018-02-04 21:49:43 +00:00
|
|
|
videoDialog.show()
|
2018-02-09 06:29:29 +00:00
|
|
|
}
|