~ubuntu-branches/ubuntu/precise/gmlive/precise

« back to all changes in this revision

Viewing changes to src/pplivePlayer.h

  • Committer: Bazaar Package Importer
  • Author(s): Aron Xu
  • Date: 2010-01-28 10:02:52 UTC
  • Revision ID: james.westby@ubuntu.com-20100128100252-b0yb0n4zm7s85ce7
Tags: upstream-0.22.2
Import upstream version 0.22.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * =====================================================================================
 
3
 *
 
4
 *       Filename:  pplivePlayer.h
 
5
 *
 
6
 *    Description:  pplive播放器类
 
7
 *
 
8
 *        Version:  1.0
 
9
 *        Created:  2009年08月06日 20时04分15秒
 
10
 *       Revision:  none
 
11
 *       Compiler:  gcc
 
12
 *
 
13
 *         Author:  wind (xihe), xihels@gmail.com
 
14
 *        Company:  cyclone
 
15
 *
 
16
 * =====================================================================================
 
17
 */
 
18
 
 
19
#ifndef PPLIVE_PLAYER_H_
 
20
#define PPLIVE_PLAYER_H_
 
21
#include "livePlayer.h"
 
22
 
 
23
class GMplayer;
 
24
class PpLivePlayer : public LivePlayer {
 
25
        public:
 
26
                static PpLivePlayer* create(const std::string& stream_);
 
27
                ~PpLivePlayer();
 
28
                void start(GMplayer&);
 
29
                void stop();
 
30
 
 
31
        protected:
 
32
                PpLivePlayer(const std::string& stream_);
 
33
                bool on_sop_sock(const Glib::IOCondition& condition);
 
34
                bool on_sop_time_status();
 
35
                
 
36
        private:
 
37
                sigc::connection sop_time_conn;
 
38
                sigc::connection sop_sock_conn;
 
39
                GMplayer* gmplayer;
 
40
                static PpLivePlayer* self;
 
41
                int pplive_pid;
 
42
                int sop_sock;
 
43
                bool is_running;
 
44
};
 
45
 
 
46
 
 
47
#endif // PPLIVE_PLAYER_H_
 
48