2019-01-20 22:59:06 +01:00
import VideoAlignment from '../../common/enums/video-alignment.enum' ;
import Stretch from '../../common/enums/stretch.enum' ;
import ExtensionMode from '../../common/enums/extension-mode.enum' ;
2018-12-30 23:16:09 +01:00
var ActionList = {
'set-ar' : {
name : 'Set aspect ratio' ,
args : [ {
name : 'Automatic' ,
arg : 'auto' ,
} , {
name : 'Fit width' ,
arg : 'fitw'
} , {
name : 'Fit height' ,
arg : 'fith' ,
} , {
name : 'Reset' ,
arg : 'reset' ,
} , {
name : 'Ratio' ,
customArg : true ,
hintHTML : '' ,
} ] ,
scopes : {
global : false ,
site : false ,
page : true ,
}
} ,
2019-01-20 22:59:06 +01:00
'set-stretch' : {
2018-12-30 23:16:09 +01:00
name : 'Set stretch' ,
args : [ {
name : 'Normal' ,
2019-01-20 22:59:06 +01:00
arg : Stretch . NoStretch
2018-12-30 23:16:09 +01:00
} , {
name : 'Basic' ,
2019-01-20 22:59:06 +01:00
arg : Stretch . Basic ,
2018-12-30 23:16:09 +01:00
} , {
name : 'Hybrid' ,
2019-01-20 22:59:06 +01:00
arg : Stretch . Hybrid ,
2018-12-30 23:16:09 +01:00
} , {
name : 'Thin borders' ,
2019-01-20 22:59:06 +01:00
arg : Stretch . Conditional ,
2018-12-30 23:16:09 +01:00
} , {
2019-02-27 21:59:57 +01:00
name : 'Default' ,
arg : Stretch . Default ,
2018-12-30 23:16:09 +01:00
scopes : {
site : true
}
} ] ,
scopes : {
global : true ,
site : true ,
page : true ,
}
} ,
2018-12-31 03:34:26 +01:00
'set-alignment' : {
2018-12-30 23:16:09 +01:00
name : 'Set video alignment' ,
args : [ {
name : 'Left' ,
2019-01-20 22:59:06 +01:00
arg : VideoAlignment . Left ,
2018-12-30 23:16:09 +01:00
} , {
name : 'Center' ,
2019-01-20 22:59:06 +01:00
arg : VideoAlignment . Center ,
2018-12-30 23:16:09 +01:00
} , {
name : 'Right' ,
2019-01-20 22:59:06 +01:00
arg : VideoAlignment . Right
2018-12-30 23:16:09 +01:00
} , {
name : 'Default' ,
2019-01-20 22:59:06 +01:00
arg : VideoAlignment . Default ,
2018-12-30 23:16:09 +01:00
scopes : {
site : true ,
}
2018-12-31 03:34:26 +01:00
} ] ,
scopes : {
global : true ,
site : true ,
page : true ,
}
} ,
'pan' : {
name : 'Pan' ,
args : [ {
name : '' ,
arg : 'toggle'
} ] ,
scopes : {
page : true ,
}
} ,
'toggle-pan' : {
name : 'Toggle panning mode' ,
args : [ {
name : 'Toggle' ,
arg : 'toggle' ,
} , {
name : 'Enable' ,
arg : 'enable' ,
} , {
name : 'Disable' ,
arg : 'disable'
} ] ,
scopes : {
page : true
}
} ,
2019-01-03 02:07:16 +01:00
'change-zoom' : {
2018-12-31 03:34:26 +01:00
name : 'Zoom' ,
args : [ {
name : 'Zoom level increase/decrease' ,
customArg : true ,
hintHTML : '<small>Positive values zoom in, negative values zoom out. Increases/decreases are logarithmic: value of \'1\' will double the zoom, value of \'-1\' will halve it.</small>'
} ] ,
scopes : {
page : true ,
}
} ,
2019-01-03 02:07:16 +01:00
'set-zoom' : {
name : 'Set zoom level' ,
args : [ {
name : 'Zoom level increase/decrease' ,
customArg : true ,
hintHTML : '<small>Examples: 0.5 sets zoom to 50%, 1 sets zoom to 100%, 2 sets zoom to 200%. Don\'t use negative values unless you want to experience Australian youtube.</small>'
} ] ,
scopes : {
page : true ,
}
} ,
2018-12-31 03:34:26 +01:00
'set-extension-mode' : {
name : 'Set extension mode' ,
args : [ {
name : 'Enable' ,
2019-01-20 22:59:06 +01:00
arg : ExtensionMode . Enabled ,
2018-12-31 03:34:26 +01:00
} , {
name : 'On whitelisted only' ,
2019-01-20 22:59:06 +01:00
arg : ExtensionMode . Whitelist ,
2018-12-31 03:34:26 +01:00
scopes : {
global : true ,
}
} , {
name : 'Default' ,
2019-01-20 22:59:06 +01:00
arg : ExtensionMode . Default ,
2018-12-31 03:34:26 +01:00
scopes : {
page : true ,
}
} , {
name : 'Disable' ,
2019-01-20 22:59:06 +01:00
arg : ExtensionMode . Default
2018-12-31 03:34:26 +01:00
} ] ,
scopes : {
global : true ,
site : true ,
}
} ,
'set-autoar-mode' : {
name : 'Set automatic aspect ratio detection mode' ,
args : [ {
name : 'Enable' ,
2019-01-20 22:59:06 +01:00
arg : ExtensionMode . Enabled ,
2018-12-31 03:34:26 +01:00
} , {
name : 'On whitelisted only' ,
2019-01-20 22:59:06 +01:00
arg : ExtensionMode . Whitelist ,
2018-12-31 03:34:26 +01:00
scopes : {
global : true ,
}
} , {
name : 'Default' ,
2019-01-20 22:59:06 +01:00
arg : ExtensionMode . Default ,
2018-12-31 03:34:26 +01:00
scopes : {
page : true ,
}
} , {
name : 'Disable' ,
2019-01-20 22:59:06 +01:00
arg : ExtensionMode . Disabled
2018-12-31 03:34:26 +01:00
} ] ,
scopes : {
global : true ,
site : true ,
}
2018-12-30 23:16:09 +01:00
}
} ;
export default ActionList ;