mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 11:15:13 +00:00
26 lines
509 B
C++
26 lines
509 B
C++
//
|
|
// Created by ax on 25/09/16.
|
|
//
|
|
|
|
#ifndef LIBWEBRTC_CREATEOFFEROBSERVER_H
|
|
#define LIBWEBRTC_CREATEOFFEROBSERVER_H
|
|
|
|
#include <webrtc/api/jsep.h>
|
|
#include "Peer.h"
|
|
|
|
class CreateSessionObserver: public webrtc::CreateSessionDescriptionObserver {
|
|
public:
|
|
CreateSessionObserver(Peer *peer);
|
|
|
|
void OnSuccess(webrtc::SessionDescriptionInterface* desc);
|
|
void OnFailure(const std::string& error);
|
|
|
|
private:
|
|
Peer *_peer;
|
|
|
|
protected:
|
|
~CreateSessionObserver() {}
|
|
};
|
|
|
|
|
|
#endif //LIBWEBRTC_CREATEOFFEROBSERVER_H
|