|
@@ -13,7 +13,7 @@ import { CacheService } from 'src/cache/cache.service';
|
|
|
|
|
|
@Injectable()
|
|
@Injectable()
|
|
export class SceneService implements OnModuleInit {
|
|
export class SceneService implements OnModuleInit {
|
|
- constructor(private cacheService: CacheService) {}
|
|
|
|
|
|
+ constructor(private cacheService: CacheService) { }
|
|
@Client(grpcClientOptions) private readonly client: ClientGrpc;
|
|
@Client(grpcClientOptions) private readonly client: ClientGrpc;
|
|
private sceneGrpcService: SceneGrpcService;
|
|
private sceneGrpcService: SceneGrpcService;
|
|
|
|
|
|
@@ -46,6 +46,7 @@ export class SceneService implements OnModuleInit {
|
|
init(request: InitRequest) {
|
|
init(request: InitRequest) {
|
|
try {
|
|
try {
|
|
// this.logger.log('rtc::init::start', JSON.stringify(request));
|
|
// this.logger.log('rtc::init::start', JSON.stringify(request));
|
|
|
|
+
|
|
const initReply = this.sceneGrpcService.init(request);
|
|
const initReply = this.sceneGrpcService.init(request);
|
|
initReply.subscribe((reply) => {
|
|
initReply.subscribe((reply) => {
|
|
console.log('initReply', reply);
|
|
console.log('initReply', reply);
|
|
@@ -268,7 +269,7 @@ export class SceneService implements OnModuleInit {
|
|
console.log('首屏--数据');
|
|
console.log('首屏--数据');
|
|
const paths = path.join(__dirname, '../ws/video');
|
|
const paths = path.join(__dirname, '../ws/video');
|
|
// const clipPath = paths + `/1.v2.h264`;
|
|
// const clipPath = paths + `/1.v2.h264`;
|
|
- const testClipPath = paths + `/254.h264`;
|
|
|
|
|
|
+ const testClipPath = paths + `/2.h264`;
|
|
const metaData = {
|
|
const metaData = {
|
|
traceIds: [],
|
|
traceIds: [],
|
|
vehicle: null,
|
|
vehicle: null,
|