Status |
---|
| |
---|
colour | Yellow |
---|
title | 릴리즈 2.2.0 이상 |
---|
|
비디오를 업로드 하기 전에 발생합니다. 이벤트 진행 취소가 가능합니다.
...
This event occurs before a video is uploaded.. This event can be cancelled.
Adding Event: Using API
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var editor = new SynapEditor(editorId, editorConfig, html);
editor.setEventListener('beforeUploadVideo', function (e) {
}); |
...
Adding Event:
...
Function
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
function SynapEditorBeforeUploadVideo(e) {
}
new SynapEditor(editorId, editorConfig, html); |
...
Adding Event: When the Editor is initialized
Code Block |
---|
|
var editorId = 'synapEditor';
var editorConfig = {};
var html = '';
var eventListeners = {
beforeUploadVideo: function (e) {
}
};
new SynapEditor(editorId, editorConfig, html, eventListeners); |
함수로 전달되는 객체 형태
...
Object Delivered through Functions
In the form of parameter e delivered through functions
Code Block |
---|
|
// release 2.2.0
{
editor: SynapEditor,
eventType: 'beforeUploadVideo',
cancelable: true,
returnValue: null,
fileName: 'filename.mp4' // Name of 업로드the 대상file 파일to 이름upload.
}
// release 2.2.1 or 이상above
{
editor: SynapEditor,
eventType: 'beforeUploadVideo',
cancelable: true,
returnValue: null,
fileType: 'video', // [2.2.1] 파일File 타입type
fileName: 'filename.mp4',
uploadCount: 0 // [2.2.1] Number 업로드of 중인files 파일being 수uploaded (아직 업로드 되지 않은 업로드 대상 수the number of files to be uploaded whose upload is not completed yet)
} |