Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Injectable } from '@angular/core';
- import janus from 'janusjs';
- import adapter from 'webrtc-adapter';
- @Injectable({
- providedIn: 'root',
- })
- export class JanusService {
- janus: any;
- constructor() {
- this.janus = janus;
- (window as any).adapter = adapter;
- this.initJanus();
- }
- initJanus() {
- this.janus.init();
- }
- getJanus() {
- return this.janus;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement