Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ This directive requires the OpenTok JavaScript WebRTC library to be included in
#### Events

* `"otSubscriberError"` - This event is emitted on the scope if there is an error subscribing.
* `"otSubscriber"` - Emitted on the scope when a subscriber receives a `'loaded'` event. `streamId` and the `subscriber` object, which is needed for network testing, are passed as an array [ streamId, subscriber].

#### Example Usage

Expand Down
1 change: 1 addition & 0 deletions opentok-angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ ng.module('opentok', [])
});
subscriber.on('loaded', function() {
scope.$emit('otLayout');
scope.$emit('otSubscriber', [stream.streamId, subscriber]);
});
// Make transcluding work manually by putting the children back in there
ng.element(element).append(oldChildren);
Expand Down
2 changes: 1 addition & 1 deletion opentok-angular.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.