|
@@ -392,8 +392,8 @@ export const startLive = async (resetTime = true) => {
|
|
|
// await builder.setOutputVideoRenderMode?.(RTC.MixVideoRenderMode.WHOLE)
|
|
|
// // @ts-ignore
|
|
|
// await builder.flush()
|
|
|
- await request.post('/api-web/imLiveBroadcastRoom/opsLiveVideo', {
|
|
|
- data: {
|
|
|
+ await request.get('/api-web/imLiveBroadcastRoom/opsLiveVideo', {
|
|
|
+ params: {
|
|
|
type: '1',
|
|
|
roomUid: runtime.roomUid,
|
|
|
userId: state.user?.speakerId,
|
|
@@ -412,8 +412,8 @@ export const startLive = async (resetTime = true) => {
|
|
|
*/
|
|
|
export const closeLive = async () => {
|
|
|
// removeMedia(runtime.mediaStreams, runtime.mediaStreamTrack)
|
|
|
- await request.post('/api-web/imLiveBroadcastRoom/opsLiveVideo', {
|
|
|
- data: {
|
|
|
+ await request.get('/api-web/imLiveBroadcastRoom/opsLiveVideo', {
|
|
|
+ params: {
|
|
|
type: '2',
|
|
|
roomUid: runtime.roomUid,
|
|
|
userId: state.user?.speakerId,
|