2 * Copyright 2013 Sveriges Television AB http://casparcg.com/
4 * This file is part of CasparCG (www.casparcg.com).
6 * CasparCG is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * CasparCG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
19 * Author: Helge Norberg, helge.norberg@svt.se
22 #include "html_cg_proxy.h"
26 namespace caspar { namespace html {
28 struct html_cg_proxy::impl
30 spl::shared_ptr<core::frame_producer> producer;
33 html_cg_proxy::html_cg_proxy(spl::shared_ptr<core::frame_producer> producer)
34 : impl_(new impl { producer })
38 html_cg_proxy::~html_cg_proxy()
42 void html_cg_proxy::add(
44 const std::wstring& template_name,
46 const std::wstring& start_from_label,
47 const std::wstring& data)
55 void html_cg_proxy::remove(int layer)
57 impl_->producer->call({ L"remove()" });
60 void html_cg_proxy::play(int layer)
62 impl_->producer->call({ L"play()" });
65 void html_cg_proxy::stop(int layer, unsigned int mix_out_duration)
67 impl_->producer->call({ L"stop()" });
70 void html_cg_proxy::next(int layer)
72 impl_->producer->call({ L"next()" });
75 void html_cg_proxy::update(int layer, const std::wstring& data)
80 std::wstring html_cg_proxy::invoke(int layer, const std::wstring& label)
85 std::wstring html_cg_proxy::description(int layer)
90 std::wstring html_cg_proxy::template_host_info()