import 'mocha'
import { omit } from 'lodash'
-import { HttpStatusCode } from '@shared/models'
import {
buildAbsoluteFixturePath,
cleanupTests,
LiveCommand,
makePostBodyRequest,
makeUploadRequest,
- sendRTMPStream,
PeerTubeServer,
+ sendRTMPStream,
setAccessTokensToServers,
stopFfmpeg
} from '@shared/extra-utils'
-import { VideoCreateResult, VideoPrivacy } from '@shared/models'
+import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models'
describe('Test video lives API validator', function () {
const path = '/api/v1/videos/live'
const live = await command.get({ videoId: video.id })
- const ffmpegCommand = sendRTMPStream(live.rtmpUrl, live.streamKey)
+ const ffmpegCommand = sendRTMPStream({ rtmpBaseUrl: live.rtmpUrl, streamKey: live.streamKey })
await command.waitUntilPublished({ videoId: video.id })
await command.update({ videoId: video.id, fields: {}, expectedStatus: HttpStatusCode.BAD_REQUEST_400 })
const live = await command.get({ videoId: video.id })
- const ffmpegCommand = sendRTMPStream(live.rtmpUrl, live.streamKey)
+ const ffmpegCommand = sendRTMPStream({ rtmpBaseUrl: live.rtmpUrl, streamKey: live.streamKey })
await command.waitUntilPublished({ videoId: video.id })