Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: talk/media/base/mediachannel.h

Issue 1613433002: Remove SendStreamFormat and ViewRequests. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/media/base/fakemediaengine.h ('k') | talk/media/base/streamparams.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected. 982 ERROR_PLAY_SRTP_REPLAY, // Packet replay detected.
983 }; 983 };
984 984
985 VideoMediaChannel() : renderer_(NULL) {} 985 VideoMediaChannel() : renderer_(NULL) {}
986 virtual ~VideoMediaChannel() {} 986 virtual ~VideoMediaChannel() {}
987 987
988 virtual bool SetSendParameters(const VideoSendParameters& params) = 0; 988 virtual bool SetSendParameters(const VideoSendParameters& params) = 0;
989 virtual bool SetRecvParameters(const VideoRecvParameters& params) = 0; 989 virtual bool SetRecvParameters(const VideoRecvParameters& params) = 0;
990 // Gets the currently set codecs/payload types to be used for outgoing media. 990 // Gets the currently set codecs/payload types to be used for outgoing media.
991 virtual bool GetSendCodec(VideoCodec* send_codec) = 0; 991 virtual bool GetSendCodec(VideoCodec* send_codec) = 0;
992 // Sets the format of a specified outgoing stream.
993 virtual bool SetSendStreamFormat(uint32_t ssrc,
994 const VideoFormat& format) = 0;
995 // Starts or stops transmission (and potentially capture) of local video. 992 // Starts or stops transmission (and potentially capture) of local video.
996 virtual bool SetSend(bool send) = 0; 993 virtual bool SetSend(bool send) = 0;
997 // Configure stream for sending. 994 // Configure stream for sending.
998 virtual bool SetVideoSend(uint32_t ssrc, 995 virtual bool SetVideoSend(uint32_t ssrc,
999 bool enable, 996 bool enable,
1000 const VideoOptions* options) = 0; 997 const VideoOptions* options) = 0;
1001 // Sets the renderer object to be used for the specified stream. 998 // Sets the renderer object to be used for the specified stream.
1002 // If SSRC is 0, the renderer is used for the 'default' stream. 999 // If SSRC is 0, the renderer is used for the 'default' stream.
1003 virtual bool SetRenderer(uint32_t ssrc, VideoRenderer* renderer) = 0; 1000 virtual bool SetRenderer(uint32_t ssrc, VideoRenderer* renderer) = 0;
1004 // If |ssrc| is 0, replace the default capturer (engine capturer) with 1001 // If |ssrc| is 0, replace the default capturer (engine capturer) with
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 // Signal when the media channel is ready to send the stream. Arguments are: 1129 // Signal when the media channel is ready to send the stream. Arguments are:
1133 // writable(bool) 1130 // writable(bool)
1134 sigslot::signal1<bool> SignalReadyToSend; 1131 sigslot::signal1<bool> SignalReadyToSend;
1135 // Signal for notifying that the remote side has closed the DataChannel. 1132 // Signal for notifying that the remote side has closed the DataChannel.
1136 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; 1133 sigslot::signal1<uint32_t> SignalStreamClosedRemotely;
1137 }; 1134 };
1138 1135
1139 } // namespace cricket 1136 } // namespace cricket
1140 1137
1141 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ 1138 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW
« no previous file with comments | « talk/media/base/fakemediaengine.h ('k') | talk/media/base/streamparams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698