media/webrtc/signaling/include/CSFVideoControl.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/signaling/include/CSFVideoControl.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#pragma once
     1.9 +
    1.10 +#include "CC_Common.h"
    1.11 +#include "ECC_Types.h"
    1.12 +
    1.13 +#include <string>
    1.14 +#include <vector>
    1.15 +
    1.16 +namespace CSF
    1.17 +{
    1.18 +	DECLARE_NS_PTR(VideoControl)
    1.19 +	class ECC_API VideoControl
    1.20 +	{
    1.21 +	public:
    1.22 +                NS_INLINE_DECL_THREADSAFE_REFCOUNTING(VideoControl)
    1.23 +		virtual ~VideoControl() {};
    1.24 +
    1.25 +		virtual void setVideoMode( bool enable ) = 0;
    1.26 +
    1.27 +		// window type is platform-specific
    1.28 +		virtual void setPreviewWindow( VideoWindowHandle window, int top, int left, int bottom, int right, RenderScaling style ) = 0;
    1.29 +		virtual void showPreviewWindow( bool show ) = 0;
    1.30 +
    1.31 +		// device names are in UTF-8 encoding
    1.32 +		virtual std::vector<std::string> getCaptureDevices() = 0;
    1.33 +
    1.34 +		virtual std::string getCaptureDevice() = 0;
    1.35 +		virtual bool setCaptureDevice( const std::string& name ) = 0;
    1.36 +	};
    1.37 +
    1.38 +}; // namespace

mercurial