|
@@ -666,10 +666,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
try {
|
|
try {
|
|
console.log('frame', frame);
|
|
console.log('frame', frame);
|
|
if (frame === 1) {
|
|
if (frame === 1) {
|
|
- const redisData = await this.rotateService.echo(
|
|
|
|
- this.user_id,
|
|
|
|
- false,
|
|
|
|
- );
|
|
|
|
|
|
+ const redisData = await this.rotateService.echo(this.user_id, true);
|
|
this.onSteaming = true;
|
|
this.onSteaming = true;
|
|
this.holdSteam();
|
|
this.holdSteam();
|
|
|
|
|
|
@@ -708,7 +705,10 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
!this.onRotating.value &&
|
|
!this.onRotating.value &&
|
|
this.firstRender
|
|
this.firstRender
|
|
) {
|
|
) {
|
|
- const redisDataAuto = await this.rotateService.echo(this.user_id);
|
|
|
|
|
|
+ const redisDataAuto = await this.rotateService.echo(
|
|
|
|
+ this.user_id,
|
|
|
|
+ false,
|
|
|
|
+ );
|
|
if (redisDataAuto) {
|
|
if (redisDataAuto) {
|
|
console.log(`空白流::有数据:${frame}`);
|
|
console.log(`空白流::有数据:${frame}`);
|
|
'mediaSrc' in redisDataAuto && delete redisDataAuto.mediaSrc;
|
|
'mediaSrc' in redisDataAuto && delete redisDataAuto.mediaSrc;
|