import { PhotoSession } from './Session'; import camera from "@ohos.multimedia.camera"; import { VideoSession } from './VideoSession'; export class DefaultSessionFactory { constructor(n10) { this.sysCameraManager = camera.getCameraManager(n10.getApplicationContext()); } getSession(m10) { return new PhotoSession(this.sysCameraManager, m10); } } export class VideoSessionFactory { constructor(l10) { this.sysCameraManager = l10; } getSession(k10) { return new VideoSession(this.sysCameraManager, k10); } } 