XWikiTubeCode

De SupraWiki
Revisão de 14h56min de 1 de junho de 2023 por Administrator (discussão | contribs) (Importacão de dados via API)
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)

XWikiTube home

Predefinição:Velocity
#**
* This page is used to list all added videos
*#

## Globals
#set($discard = $xwiki.ssx.use("XWikiTubeCode.WebHome"))
#set($discard = $xwiki.jsx.use("XWikiTubeCode.WebHome"))
#set($videoUploader = $xwiki.parseGroovyFromPage("XWikiTubeCode.VideoUploadGroovy"))
#set($discard = $videoUploader.init($xwiki, $xcontext, $services))
## Check FFmpeg installation
#set($ffmpeg = $videoUploader.mediaTranscoder.checkFFmpeg())
#set($liveTableSourceURL = $xwiki.getURL('XWikiTubeCode.VideoUpload','view','xpage=plain&outputSyntax=plain&action=getXWikiTubeVideos'))
#set($columns = ["name", "extension", "mimeType", "size", "duration", "resolution", "creator", "creationDate", "encoded", "actions"])
#set($columnsProperties = {
"name" : { "type" : "text", "sortable":false, "filterable":true},
"extension" : { "type" : "text", "sortable":false, "filterable":false},
"mimeType" : { "type" : "text", "sortable":false, "filterable":false},
"size" : { "type" : "text", "sortable":false, "filterable":false},
"duration" : { "type" : "text", "sortable":false, "filterable":false},
"resolution" : { "type" : "text", "sortable":false, "filterable":false},
"creator" : { "type" : "text", "sortable":false, "filterable":false},
"creationDate" : { "type" : "text", "sortable":false, "filterable":false},
"encoded" : { "type" : "text", "sortable":false, "filterable":false},
"actions" : {"type" : "none", "link" : "none", "html" : "true", "sortable":false}
})
#set($options = {
"url":"$liveTableSourceURL",
"rowCount": 10
})
#if(!$ffmpeg)
Predefinição:WarningFFmpeg library is not installed on your server. FFmpeg is required to encode videos.Predefinição:/warning
#end

#livetable("medias" $columns $columnsProperties $options)
Predefinição:/velocity