~morphis/aethercast/audio-streaming

« back to all changes in this revision

Viewing changes to src/mcs/mir/sourcemediamanager.h

  • Committer: CI Train Bot
  • Author(s): Simon Fels
  • Date: 2016-04-29 09:54:49 UTC
  • mfrom: (136.1.17 trunk)
  • Revision ID: ci-train-bot@canonical.com-20160429095449-diyen52l869w9siw
Various fixes and improvements for stability

* React on RTSP timeouts and disconnect when one happens
* Don't save state on shutdown as its already saved
* Implement state saving / property guards
* Implement proper dbus errors and fix spec
* Fix H264Encoder tests
* Implement backend logic for the Enabled property
* Add Enabled property for our manager interface
* Bring back resending of failed packets
* Handle error/terminate cases for buffer queue
Approved by: Alfonso Sanchez-Beato

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
namespace mcs {
41
41
namespace mir {
42
42
 
43
 
class SourceMediaManager : public mcs::BaseSourceMediaManager {
 
43
class SourceMediaManager : public std::enable_shared_from_this<SourceMediaManager>,
 
44
                           public mcs::BaseSourceMediaManager,
 
45
                           public mcs::streaming::TransportSender::Delegate {
44
46
public:
45
47
    typedef std::shared_ptr<SourceMediaManager> Ptr;
46
48
 
68
70
 
69
71
    int GetLocalRtpPort() const override;
70
72
 
 
73
    void OnTransportNetworkError() override;
 
74
 
71
75
protected:
72
76
    bool Configure() override;
73
77