{"_id":"@codeda/flashphoner","_rev":"1-d86dce1a5914d7a8486283561e4dd5d7","name":"@codeda/flashphoner","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"$schema":"./node_modules/ng-packagr/package.schema.json","name":"@codeda/flashphoner","version":"0.0.1","description":"Flashphoner implementation for Angular","repository":{"type":"git","url":"git+https://github.com/codeda/flashphoner_tools.git"},"engines":{"node":">= 6.9.0","npm":">= 3.0.0"},"peerDependencies":{"@angular/core":">=6.0.0 <7.0.0"},"keywords":["flashphoner","streaming","angular"],"author":{"name":"Ivan Gemba","email":"gembaivan@gmail.com","url":"https://github.com/looffee"},"license":"MIT","devDependencies":{"@angular/compiler":"^6.1.9","@angular/compiler-cli":"^6.1.9","@angular/core":"^6.1.9","ng-packagr":"^4.2.0","rxjs":"^6.3.3","tslib":"^1.9.3","typescript":"^2.9.2"},"main":"bundles/codeda-flashphoner.umd.js","module":"fesm5/codeda-flashphoner.js","es2015":"fesm2015/codeda-flashphoner.js","esm5":"esm5/codeda-flashphoner.js","esm2015":"esm2015/codeda-flashphoner.js","fesm5":"fesm5/codeda-flashphoner.js","fesm2015":"fesm2015/codeda-flashphoner.js","typings":"codeda-flashphoner.d.ts","metadata":"codeda-flashphoner.metadata.json","sideEffects":false,"dependencies":{"tslib":"^1.9.0"},"bugs":{"url":"https://github.com/codeda/flashphoner_tools/issues"},"homepage":"https://github.com/codeda/flashphoner_tools#readme","_id":"@codeda/flashphoner@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"looffee","email":"gembaivan@gmail.com"},"dist":{"integrity":"sha512-BMbfZPay4yHEyLE/ZCsybmbyqHG5v09Bjs7Yy5lZYvVcokru4C0FU4gPgrj56zqZ/aljeRmpw+xn/62dyBEApw==","shasum":"3df0aa105ea64f97a910b59bb1b086230b4889dd","tarball":"https://registry.npmjs.org/@codeda/flashphoner/-/flashphoner-0.0.1.tgz","fileCount":65,"unpackedSize":216708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtTuOCRA9TVsSAnZWagAANswQAJT0LPsRRRy9pKJ7nAJ8\nx8hIPCIxWLikETkrOVdD3KTKR1W3v3sQxSSMciD+m/PLi8l0EBxEpN0/9exz\nIDbIS8oZLYGIBHBAwzr2eGnqABXaIwFLJOI1OlwX6aQFPQFKLFj09/gq/YUc\noS6di4JtPhinKYhY89feLOAAh/VbimDhWsDy3AR87m5xJbP7Q0c4vqQc6Ly0\nuqeU2FqcB/0xG6fw7GafFXtt+Xwr8hA8cLWKUTaPRx52OkJXVkN9AG5Uf76z\nqHf6EDbXqBVHDloBjj1lKfHKmA14Fyk/PiFxooY9HJL9N0XuM6UxXBlk1fjZ\n5B6Bq24GL7aHurqQdGcSukNjuRCRa6jVKSGQVbqOOrLTrETfcgY/nKpbEjAs\n1/2riM10CtDRdVJSgGMUpcSkFH58gHZ0sEHTV9qeOVqGf7PeZgnZFJqEL5kS\nEpndG7g5KrzeyOY36bUjiNin6FDh8HNL7ovx0EN2Z40W9CH+JjxRddi/knl8\nEWOAcWl6mCAKb9FXhuSaS7/06jlUrCD0T6fIRe8P0tXaNzb1cGjnFsFjmr2Z\n1PvLSlyqCHi/PMCGQJS0+sFfduKdRUdgY6iWcEmSKQQXPp6o4WUtiwcPTN+M\n5w2vby2lSs8xURCB9i5L1l5r/00tOtUuc3Pis0m+xaNRux/YlANmiFLsDdp3\nO62N\r\n=GaVx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHR0BZV4YZnjLcnJXcnzrTpg/AcBu04UIQVMG+qa0B3AIhAK9oEmYcqJOEvWUJzbO4LYS5VOBWjxRnYgU2z7PmRGqN"}]},"maintainers":[{"name":"looffee","email":"gembaivan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flashphoner_0.0.1_1538603917888_0.13547311730535516"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-03T21:58:37.733Z","0.0.1":"2018-10-03T21:58:38.086Z","modified":"2022-04-05T00:01:47.793Z"},"maintainers":[{"name":"looffee","email":"gembaivan@gmail.com"}],"description":"Flashphoner implementation for Angular","homepage":"https://github.com/codeda/flashphoner_tools#readme","keywords":["flashphoner","streaming","angular"],"repository":{"type":"git","url":"git+https://github.com/codeda/flashphoner_tools.git"},"author":{"name":"Ivan Gemba","email":"gembaivan@gmail.com","url":"https://github.com/looffee"},"bugs":{"url":"https://github.com/codeda/flashphoner_tools/issues"},"license":"MIT","readme":"# @codeda/flashphoner\nFlashphoner implementation for Angular\n# Installation\nUsing npm:\n```\n$ npm install @codeda/flashphoner\n```\nUsing yarn:\n```\n$ yarn add @codeda/flashphoner\n```\n# Usage\n1. Init ```FlashphonerModule```:\n```import { FlashphonerModule } from '@codeda/flashphoner';\n\n@NgModule({\n  imports: [\n    ...,\n    FlashphonerModule.forRoot({\n      session: {\n        urlServer: ${flashphonerServerUrl}\n      }\n    })\n  ]\n})\nexport class AppModule {}\n```\n2. Create/play stream:\n```\nimport { FlashphonerService } from '@codeda/flashphoner';\n\n@Component(...)\nexport class MyComponent {\n\n  constructor(flashphonerService: FlashphonerService) {\n    // Create stream\n    flashphonerService\n      .createStream({\n        name: ${streamName},\n        display: ${someHTMLElement},\n        constraints: [MediaStreamConstraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamConstraints)\n      })\n      .subscribe(stream => console.log(stream));\n\n    // Play stream\n    flashphonerService\n      .playStream({\n        name: ${streamName},\n        display: ${someHTMLElement}\n      })\n      .subscribe(stream => console.log(stream));\n  }\n\n}\n\n```\n# Note\n1. Requires [Flashphoner WebSDK](https://flashphoner.com/downloads/builds/flashphoner_client/wcs_api-2.0/).\n2. For proper stream playing in iOS you should pass extra params to ```FlashphonerModule.forRoot``` method:\n```\nFlashphonerModule.forRoot({\n  session: {\n    flashphoner: {\n      flashMediaProviderSwfLocation: ${your path to media-provider.swf},\n      receiverLocation: ${your path to WSReceiver2.js},\n      decoderLocation: ${your path to video-worker2.js}\n    },\n    urlServer: ${flashphonerServerUrl}\n  }\n})\n```\nAnd before calling ```flashphonerService.createStream``` use this code:\n```\nif (Flashphoner.getMediaProviders()[0] === 'WSPlayer') {\n  Flashphoner.playFirstSound();\n} else if (\n  Browser.isSafariWebRTC() ||\n  Flashphoner.getMediaProviders()[0] === 'MSE'\n) {\n  Flashphoner.playFirstVideo(options.display);\n}\n```\nAlso serve [preloader.mp4](https://github.com/codeda/flashphoner_tools/blob/master/assets/dependencies/preloader.mp4) at url path /dependencies/preloader.mp4.\n\n[utils.js](https://github.com/codeda/flashphoner_tools/blob/master/assets/utils.js) - contains Browser;\n[media-provider.swf](https://github.com/codeda/flashphoner_tools/blob/master/assets/media-provider.swf)\n[WSReceiver2.js](https://github.com/codeda/flashphoner_tools/blob/master/assets/WSReceiver2.js)\n[video-worker2.js](https://github.com/codeda/flashphoner_tools/blob/master/assets/video-worker2.js)\n","readmeFilename":"README.md"}