OLD | NEW |
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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 | 1133 |
1134 VideoMediaChannel() : renderer_(NULL) {} | 1134 VideoMediaChannel() : renderer_(NULL) {} |
1135 virtual ~VideoMediaChannel() {} | 1135 virtual ~VideoMediaChannel() {} |
1136 | 1136 |
1137 virtual bool SetSendParameters(const VideoSendParameters& params) = 0; | 1137 virtual bool SetSendParameters(const VideoSendParameters& params) = 0; |
1138 virtual bool SetRecvParameters(const VideoRecvParameters& params) = 0; | 1138 virtual bool SetRecvParameters(const VideoRecvParameters& params) = 0; |
1139 // Gets the currently set codecs/payload types to be used for outgoing media. | 1139 // Gets the currently set codecs/payload types to be used for outgoing media. |
1140 virtual bool GetSendCodec(VideoCodec* send_codec) = 0; | 1140 virtual bool GetSendCodec(VideoCodec* send_codec) = 0; |
1141 // Sets the format of a specified outgoing stream. | 1141 // Sets the format of a specified outgoing stream. |
1142 virtual bool SetSendStreamFormat(uint32 ssrc, const VideoFormat& format) = 0; | 1142 virtual bool SetSendStreamFormat(uint32 ssrc, const VideoFormat& format) = 0; |
1143 // Starts or stops playout of received video. | |
1144 virtual bool SetRender(bool render) = 0; | |
1145 // Starts or stops transmission (and potentially capture) of local video. | 1143 // Starts or stops transmission (and potentially capture) of local video. |
1146 virtual bool SetSend(bool send) = 0; | 1144 virtual bool SetSend(bool send) = 0; |
1147 // Configure stream for sending. | 1145 // Configure stream for sending. |
1148 virtual bool SetVideoSend(uint32 ssrc, bool mute, | 1146 virtual bool SetVideoSend(uint32 ssrc, bool mute, |
1149 const VideoOptions* options) = 0; | 1147 const VideoOptions* options) = 0; |
1150 // Sets the renderer object to be used for the specified stream. | 1148 // Sets the renderer object to be used for the specified stream. |
1151 // If SSRC is 0, the renderer is used for the 'default' stream. | 1149 // If SSRC is 0, the renderer is used for the 'default' stream. |
1152 virtual bool SetRenderer(uint32 ssrc, VideoRenderer* renderer) = 0; | 1150 virtual bool SetRenderer(uint32 ssrc, VideoRenderer* renderer) = 0; |
1153 // If |ssrc| is 0, replace the default capturer (engine capturer) with | 1151 // If |ssrc| is 0, replace the default capturer (engine capturer) with |
1154 // |capturer|. If |ssrc| is non zero create a new stream with |ssrc| as SSRC. | 1152 // |capturer|. If |ssrc| is non zero create a new stream with |ssrc| as SSRC. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 // Signal when the media channel is ready to send the stream. Arguments are: | 1291 // Signal when the media channel is ready to send the stream. Arguments are: |
1294 // writable(bool) | 1292 // writable(bool) |
1295 sigslot::signal1<bool> SignalReadyToSend; | 1293 sigslot::signal1<bool> SignalReadyToSend; |
1296 // Signal for notifying that the remote side has closed the DataChannel. | 1294 // Signal for notifying that the remote side has closed the DataChannel. |
1297 sigslot::signal1<uint32> SignalStreamClosedRemotely; | 1295 sigslot::signal1<uint32> SignalStreamClosedRemotely; |
1298 }; | 1296 }; |
1299 | 1297 |
1300 } // namespace cricket | 1298 } // namespace cricket |
1301 | 1299 |
1302 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ | 1300 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ |
OLD | NEW |