private enableApi = false
private startTime: number | string = 0
private stopTime: number | string
+ private playbackRate: number | string
private title: boolean
private warningTitle: boolean
this.subtitle = getParamString(params, 'subtitle')
this.startTime = getParamString(params, 'start')
this.stopTime = getParamString(params, 'stop')
+ this.playbackRate = getParamString(params, 'playbackRate')
this.bigPlayBackgroundColor = getParamString(params, 'bigPlayBackgroundColor')
this.foregroundColor = getParamString(params, 'foregroundColor')
? playlistTracker.getCurrentElement().stopTimestamp
: this.stopTime,
+ playbackRate: this.playbackRate,
+
videoCaptions,
inactivityTimeout: 2500,
videoViewUrl: this.videoFetcher.getVideoViewsUrl(video.uuid),
})
it('Should send notification to moderators on new video with auto-blacklist', async function () {
- this.timeout(50000)
+ this.timeout(120000)
videoName = 'video with auto-blacklist ' + buildUUID()
const video = await servers[0].videos.upload({ token: userToken1, attributes: { name: videoName } })
})
it('Should not send video publish notification if auto-blacklisted', async function () {
+ this.timeout(120000)
+
await checkVideoIsPublished({ ...userBaseParams, videoName, shortUUID, checkType: 'absence' })
})
it('Should not send a local user subscription notification if auto-blacklisted', async function () {
+ this.timeout(120000)
+
await checkNewVideoFromSubscription({ ...adminBaseParamsServer1, videoName, shortUUID, checkType: 'absence' })
})
})
it('Should send video published and unblacklist after video unblacklisted', async function () {
- this.timeout(40000)
+ this.timeout(120000)
await servers[0].blacklist.remove({ videoId: uuid })
})
it('Should send a local user subscription notification after removed from blacklist', async function () {
+ this.timeout(120000)
+
await checkNewVideoFromSubscription({ ...adminBaseParamsServer1, videoName, shortUUID, checkType: 'presence' })
})
it('Should send a remote user subscription notification after removed from blacklist', async function () {
+ this.timeout(120000)
+
await checkNewVideoFromSubscription({ ...adminBaseParamsServer2, videoName, shortUUID, checkType: 'presence' })
})
it('Should send unblacklist but not published/subscription notes after unblacklisted if scheduled update pending', async function () {
- this.timeout(50000)
+ this.timeout(120000)
const updateAt = new Date(new Date().getTime() + 1000000)
})
it('Should not send publish/subscription notifications after scheduled update if video still auto-blacklisted', async function () {
- this.timeout(40000)
+ this.timeout(120000)
// In 2 seconds
const updateAt = new Date(new Date().getTime() + 2000)
})
it('Should not send a notification to moderators on new video without auto-blacklist', async function () {
- this.timeout(50000)
+ this.timeout(120000)
const name = 'video without auto-blacklist ' + buildUUID()
// ---------------------------------------------------------------------------
it('Should upload a private video and have appropriate object storage ACL', async function () {
- this.timeout(60000)
+ this.timeout(120000)
{
const { uuid } = await server.videos.quickUpload({ name: 'video', privacy: VideoPrivacy.PRIVATE })
})
it('Should upload a public video and have appropriate object storage ACL', async function () {
- this.timeout(60000)
+ this.timeout(120000)
const { uuid } = await server.videos.quickUpload({ name: 'video', privacy: VideoPrivacy.UNLISTED })
await waitJobs([ server ])