Advertisement
geekshabeka

Janus Service

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