3
MediaTomb - http://www.mediatomb.cc/
5
youtube_video_url.h - this file is part of MediaTomb.
7
Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
8
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
10
Copyright (C) 2006-2008 Gena Batyan <bgeradz@mediatomb.cc>,
11
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
12
Leonhard Wimmer <leo@mediatomb.cc>
14
MediaTomb is free software; you can redistribute it and/or modify
15
it under the terms of the GNU General Public License version 2
16
as published by the Free Software Foundation.
18
MediaTomb is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU General Public License for more details.
23
You should have received a copy of the GNU General Public License
24
version 2 along with MediaTomb; if not, write to the Free Software
25
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
27
$Id: youtube_video_url.h 1698 2008-02-23 20:48:30Z lww $
30
/// \file youtube_video_url.h
31
/// \brief Definition of the YouTubeVideoURL class.
35
#ifndef __YOUTUBE_VIDEO_URL_H__
36
#define __YOUTUBE_VIDEO_URL_H__
38
#include <curl/curl.h>
39
#include "zmmf/zmmf.h"
44
/// \brief this class keeps all data associated with one transcoding profile.
45
class YouTubeVideoURL : public zmm::Object
51
/// \brief Takes the usual YouTube style URL as argument
52
/// and returns the URL to the associated video.
54
/// \param video_id id of the video
55
/// \return the url to the .flv file
56
zmm::String getVideoURL(zmm::String video_id);
59
// the handle *must never be used from multiple threads*
62
zmm::Ref<RExp> reVideoURLParams;
63
zmm::Ref<RExp> redirectLocation;
66
#endif//__YOUTUBE_VIDEO_URL_H__