gemercheung 3 anos atrás
pai
commit
8974276638
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/scene/stream/stream.service.ts

+ 2 - 2
src/scene/stream/stream.service.ts

@@ -18,7 +18,7 @@ export class StreamService {
     clipPath: '',
     clipPath: '',
     metaData: '',
     metaData: '',
   });
   });
-  constructor(private cacheService: CacheService) {}
+  constructor(private cacheService: CacheService) { }
 
 
   setChannel(channel: DataChannel) {
   setChannel(channel: DataChannel) {
     this.channel = channel;
     this.channel = channel;
@@ -95,7 +95,7 @@ export class StreamService {
       try {
       try {
         // if (!this.onSteaming) {
         // if (!this.onSteaming) {
         const clipPath = stream.clipPath;
         const clipPath = stream.clipPath;
-        const metaData = stream.metaData;
+        const metaData = stream.metaData || '{}';
         const frame = stream.frame;
         const frame = stream.frame;
         const serverTime = stream.serverTime || 754871824;
         const serverTime = stream.serverTime || 754871824;
         const dir = stream.DIR || 1;
         const dir = stream.DIR || 1;