@@ -50,6 +50,7 @@ type Participant interface {
|
||||
|
||||
// permissions
|
||||
Hidden() bool
|
||||
IsRecorder() bool
|
||||
|
||||
Start()
|
||||
Close(sendLeave bool) error
|
||||
|
||||
@@ -95,6 +95,16 @@ type FakeParticipant struct {
|
||||
identityReturnsOnCall map[int]struct {
|
||||
result1 livekit.ParticipantIdentity
|
||||
}
|
||||
IsRecorderStub func() bool
|
||||
isRecorderMutex sync.RWMutex
|
||||
isRecorderArgsForCall []struct {
|
||||
}
|
||||
isRecorderReturns struct {
|
||||
result1 bool
|
||||
}
|
||||
isRecorderReturnsOnCall map[int]struct {
|
||||
result1 bool
|
||||
}
|
||||
RemoveSubscriberStub func(types.LocalParticipant, livekit.TrackID, bool)
|
||||
removeSubscriberMutex sync.RWMutex
|
||||
removeSubscriberArgsForCall []struct {
|
||||
@@ -636,6 +646,59 @@ func (fake *FakeParticipant) IdentityReturnsOnCall(i int, result1 livekit.Partic
|
||||
}{result1}
|
||||
}
|
||||
|
||||
func (fake *FakeParticipant) IsRecorder() bool {
|
||||
fake.isRecorderMutex.Lock()
|
||||
ret, specificReturn := fake.isRecorderReturnsOnCall[len(fake.isRecorderArgsForCall)]
|
||||
fake.isRecorderArgsForCall = append(fake.isRecorderArgsForCall, struct {
|
||||
}{})
|
||||
stub := fake.IsRecorderStub
|
||||
fakeReturns := fake.isRecorderReturns
|
||||
fake.recordInvocation("IsRecorder", []interface{}{})
|
||||
fake.isRecorderMutex.Unlock()
|
||||
if stub != nil {
|
||||
return stub()
|
||||
}
|
||||
if specificReturn {
|
||||
return ret.result1
|
||||
}
|
||||
return fakeReturns.result1
|
||||
}
|
||||
|
||||
func (fake *FakeParticipant) IsRecorderCallCount() int {
|
||||
fake.isRecorderMutex.RLock()
|
||||
defer fake.isRecorderMutex.RUnlock()
|
||||
return len(fake.isRecorderArgsForCall)
|
||||
}
|
||||
|
||||
func (fake *FakeParticipant) IsRecorderCalls(stub func() bool) {
|
||||
fake.isRecorderMutex.Lock()
|
||||
defer fake.isRecorderMutex.Unlock()
|
||||
fake.IsRecorderStub = stub
|
||||
}
|
||||
|
||||
func (fake *FakeParticipant) IsRecorderReturns(result1 bool) {
|
||||
fake.isRecorderMutex.Lock()
|
||||
defer fake.isRecorderMutex.Unlock()
|
||||
fake.IsRecorderStub = nil
|
||||
fake.isRecorderReturns = struct {
|
||||
result1 bool
|
||||
}{result1}
|
||||
}
|
||||
|
||||
func (fake *FakeParticipant) IsRecorderReturnsOnCall(i int, result1 bool) {
|
||||
fake.isRecorderMutex.Lock()
|
||||
defer fake.isRecorderMutex.Unlock()
|
||||
fake.IsRecorderStub = nil
|
||||
if fake.isRecorderReturnsOnCall == nil {
|
||||
fake.isRecorderReturnsOnCall = make(map[int]struct {
|
||||
result1 bool
|
||||
})
|
||||
}
|
||||
fake.isRecorderReturnsOnCall[i] = struct {
|
||||
result1 bool
|
||||
}{result1}
|
||||
}
|
||||
|
||||
func (fake *FakeParticipant) RemoveSubscriber(arg1 types.LocalParticipant, arg2 livekit.TrackID, arg3 bool) {
|
||||
fake.removeSubscriberMutex.Lock()
|
||||
fake.removeSubscriberArgsForCall = append(fake.removeSubscriberArgsForCall, struct {
|
||||
@@ -1100,6 +1163,8 @@ func (fake *FakeParticipant) Invocations() map[string][][]interface{} {
|
||||
defer fake.iDMutex.RUnlock()
|
||||
fake.identityMutex.RLock()
|
||||
defer fake.identityMutex.RUnlock()
|
||||
fake.isRecorderMutex.RLock()
|
||||
defer fake.isRecorderMutex.RUnlock()
|
||||
fake.removeSubscriberMutex.RLock()
|
||||
defer fake.removeSubscriberMutex.RUnlock()
|
||||
fake.setMetadataMutex.RLock()
|
||||
|
||||
Reference in New Issue
Block a user