-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed crash in debug mode by removing thread arguments to peer connec…
…tion factory creator; a couple of new examples (mostly sanity checks); disabled data channels and media streams (for now)
- Loading branch information
Alan K
committed
Apr 24, 2014
1 parent
e87b003
commit 3642bee
Showing
21 changed files
with
332 additions
and
240 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--suppressions=.valgrind.supp | ||
--track-origins=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var wrtc = require('../'); | ||
|
||
var pc = new wrtc.RTCPeerConnection(); | ||
pc.close(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var wrtc = require('../'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "create-answer-observer.h" | ||
#include "peerconnection.h" | ||
#include "common.h" | ||
|
||
void CreateAnswerObserver::OnSuccess(webrtc::SessionDescriptionInterface* sdp) | ||
{ | ||
TRACE_CALL; | ||
PeerConnection::SdpEvent* data = new PeerConnection::SdpEvent(sdp); | ||
parent->QueueEvent(PeerConnection::CREATE_ANSWER_SUCCESS, static_cast<void*>(data)); | ||
TRACE_END; | ||
} | ||
|
||
void CreateAnswerObserver::OnFailure(const std::string& msg) | ||
{ | ||
TRACE_CALL; | ||
PeerConnection::ErrorEvent* data = new PeerConnection::ErrorEvent(msg); | ||
parent->QueueEvent(PeerConnection::CREATE_ANSWER_ERROR, (void*)data); | ||
TRACE_END; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "talk/app/webrtc/peerconnectioninterface.h" | ||
|
||
class PeerConnection; | ||
|
||
class CreateAnswerObserver | ||
: public webrtc::CreateSessionDescriptionObserver | ||
{ | ||
private: | ||
PeerConnection* parent; | ||
|
||
public: | ||
CreateAnswerObserver( PeerConnection* connection ): parent(connection) {}; | ||
|
||
virtual void OnSuccess( webrtc::SessionDescriptionInterface* sdp ); | ||
virtual void OnFailure( const std::string& msg ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "create-offer-observer.h" | ||
#include "peerconnection.h" | ||
#include "common.h" | ||
|
||
void CreateOfferObserver::OnSuccess(webrtc::SessionDescriptionInterface* sdp) | ||
{ | ||
TRACE_CALL; | ||
PeerConnection::SdpEvent* data = new PeerConnection::SdpEvent(sdp); | ||
parent->QueueEvent(PeerConnection::CREATE_OFFER_SUCCESS, static_cast<void*>(data)); | ||
TRACE_END; | ||
} | ||
|
||
void CreateOfferObserver::OnFailure(const std::string& msg) | ||
{ | ||
TRACE_CALL; | ||
PeerConnection::ErrorEvent* data = new PeerConnection::ErrorEvent(msg); | ||
parent->QueueEvent(PeerConnection::CREATE_OFFER_ERROR, (void*)data); | ||
TRACE_END; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "talk/app/webrtc/peerconnectioninterface.h" | ||
|
||
class PeerConnection; | ||
|
||
class CreateOfferObserver | ||
: public webrtc::CreateSessionDescriptionObserver | ||
{ | ||
private: | ||
PeerConnection* parent; | ||
|
||
public: | ||
CreateOfferObserver( PeerConnection* connection ): parent(connection) {}; | ||
|
||
virtual void OnSuccess( webrtc::SessionDescriptionInterface* sdp ); | ||
virtual void OnFailure( const std::string& msg ); | ||
}; |
Oops, something went wrong.