diff --git a/include/f1x/openauto/autoapp/Service/VideoService.hpp b/include/f1x/openauto/autoapp/Service/VideoService.hpp index 4c67a05..391e1bc 100644 --- a/include/f1x/openauto/autoapp/Service/VideoService.hpp +++ b/include/f1x/openauto/autoapp/Service/VideoService.hpp @@ -48,6 +48,7 @@ public: void onChannelOpenRequest(const aasdk::proto::messages::ChannelOpenRequest& request) override; void onAVChannelSetupRequest(const aasdk::proto::messages::AVChannelSetupRequest& request) override; void onAVChannelStartIndication(const aasdk::proto::messages::AVChannelStartIndication& indication) override; + void onAVChannelStopIndication(const aasdk::proto::messages::AVChannelStopIndication& indication) override; void onAVMediaWithTimestampIndication(aasdk::messenger::Timestamp::ValueType timestamp, const aasdk::common::DataConstBuffer& buffer) override; void onAVMediaIndication(const aasdk::common::DataConstBuffer& buffer) override; void onVideoFocusRequest(const aasdk::proto::messages::VideoFocusRequest& request) override; diff --git a/src/autoapp/Service/VideoService.cpp b/src/autoapp/Service/VideoService.cpp index 4abdc29..804ffec 100644 --- a/src/autoapp/Service/VideoService.cpp +++ b/src/autoapp/Service/VideoService.cpp @@ -110,6 +110,15 @@ void VideoService::onAVChannelStartIndication(const aasdk::proto::messages::AVCh channel_->receive(this->shared_from_this()); } +void VideoService::onAVChannelStopIndication(const aasdk::proto::messages::AVChannelStopIndication& indication) +{ + OPENAUTO_LOG(info) << "[VideoService] stop indication" + << ", channel: " << aasdk::messenger::channelIdToString(channel_->getId()) + << ", session: " << session_; + session_ = -1; + channel_->receive(this->shared_from_this()); +} + void VideoService::onAVMediaWithTimestampIndication(aasdk::messenger::Timestamp::ValueType timestamp, const aasdk::common::DataConstBuffer& buffer) { videoOutput_->write(timestamp, buffer);