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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 bool enable, | 999 bool enable, |
1000 const VideoOptions* options) = 0; | 1000 const VideoOptions* options) = 0; |
1001 // Sets the renderer object to be used for the specified stream. | 1001 // Sets the renderer object to be used for the specified stream. |
1002 // If SSRC is 0, the renderer is used for the 'default' stream. | 1002 // If SSRC is 0, the renderer is used for the 'default' stream. |
1003 virtual bool SetRenderer(uint32_t ssrc, VideoRenderer* renderer) = 0; | 1003 virtual bool SetRenderer(uint32_t ssrc, VideoRenderer* renderer) = 0; |
1004 // If |ssrc| is 0, replace the default capturer (engine capturer) with | 1004 // If |ssrc| is 0, replace the default capturer (engine capturer) with |
1005 // |capturer|. If |ssrc| is non zero create a new stream with |ssrc| as SSRC. | 1005 // |capturer|. If |ssrc| is non zero create a new stream with |ssrc| as SSRC. |
1006 virtual bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) = 0; | 1006 virtual bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) = 0; |
1007 // Gets quality stats for the channel. | 1007 // Gets quality stats for the channel. |
1008 virtual bool GetStats(VideoMediaInfo* info) = 0; | 1008 virtual bool GetStats(VideoMediaInfo* info) = 0; |
1009 // Send an intra frame to the receivers. | |
1010 virtual bool SendIntraFrame() = 0; | |
1011 // Reuqest each of the remote senders to send an intra frame. | |
1012 virtual bool RequestIntraFrame() = 0; | |
1013 virtual void UpdateAspectRatio(int ratio_w, int ratio_h) = 0; | |
1014 | 1009 |
1015 protected: | 1010 protected: |
1016 VideoRenderer *renderer_; | 1011 VideoRenderer *renderer_; |
1017 }; | 1012 }; |
1018 | 1013 |
1019 enum DataMessageType { | 1014 enum DataMessageType { |
1020 // Chrome-Internal use only. See SctpDataMediaChannel for the actual PPID | 1015 // Chrome-Internal use only. See SctpDataMediaChannel for the actual PPID |
1021 // values. | 1016 // values. |
1022 DMT_NONE = 0, | 1017 DMT_NONE = 0, |
1023 DMT_CONTROL = 1, | 1018 DMT_CONTROL = 1, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 // Signal when the media channel is ready to send the stream. Arguments are: | 1132 // Signal when the media channel is ready to send the stream. Arguments are: |
1138 // writable(bool) | 1133 // writable(bool) |
1139 sigslot::signal1<bool> SignalReadyToSend; | 1134 sigslot::signal1<bool> SignalReadyToSend; |
1140 // Signal for notifying that the remote side has closed the DataChannel. | 1135 // Signal for notifying that the remote side has closed the DataChannel. |
1141 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; | 1136 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; |
1142 }; | 1137 }; |
1143 | 1138 |
1144 } // namespace cricket | 1139 } // namespace cricket |
1145 | 1140 |
1146 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ | 1141 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ |
OLD | NEW |