Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@akkadu/agora-rtc-mock

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@akkadu/agora-rtc-mock - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0-alpha.0

32

index.js

@@ -85,3 +85,3 @@ /* eslint-disable class-methods-use-this */

*/
getAllPublisherStreamObjects() {
getResetPublisherStreamObjects() {
const publisherIds = Object.keys(this.publishers)

@@ -137,4 +137,10 @@ const events = []

unsubscribe(stream) {
unsubscribe(stream, onFailure) {
if (!stream) {
onFailure(new Error('stream has to be defined on unsubscribe'))
}
// if (!stream.stream) {
// onFailure(new Error('stream needs to have a attached mediastream on unsubscribe'))
// }
stream.stream = null
}

@@ -156,2 +162,3 @@

}
stream.stream = { MediaStream:true }
this.emitter.emit('stream-subscribed', { stream })

@@ -203,2 +210,5 @@ }

}
/**
* @see https://docs.agora.io/en/Audio%20Broadcast/API%20Reference/web/interfaces/agorartc.stream.html#isplaying
*/
isPlaying() {

@@ -236,4 +246,12 @@ return this.playing

muteAudio() {
this.playingAudio = false
if (!this.playingAudio && !this.playingVideo) {
this.playing = false
}
}
muteVideo() {
this.playingVideo = false
if (!this.playingAudio && !this.playingVideo) {
this.playing = false
}
}

@@ -247,5 +265,13 @@ hasAudio() {

unmuteAudio() {
this.playingAudio = true
if (this.playingAudio || this.playingVideo) {
this.playing = true
}
}
unmuteVideo() {
this.playingVideo = true
if (this.playingAudio || this.playingVideo) {
this.playing = true
}
}

@@ -252,0 +278,0 @@

4

package.json
{
"name": "@akkadu/agora-rtc-mock",
"version": "2.1.0",
"version": "2.2.0-alpha.0",
"module": "dist/index.js",

@@ -29,3 +29,3 @@ "license": "ISC",

"description": "",
"gitHead": "a837028182a5bfc69edbcff68a119a24a09ba984"
"gitHead": "53ae3e1baf4a73c3de6d1f7b46a282568f321b67"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc