Advertisement
geekshabeka

Untitled

May 11th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import { Injectable } from '@angular/core';
  2. import janus from 'janusjs';
  3. import adapter from 'webrtc-adapter';
  4. @Injectable({
  5. providedIn: 'root',
  6. })
  7. export class JanusService {
  8. janus: any;
  9. constructor() {
  10. this.janus = janus;
  11. (window as any).adapter = adapter;
  12. this.initJanus();
  13. }
  14. initJanus() {
  15. this.janus.init();
  16. }
  17. getJanus() {
  18. return this.janus;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement