|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
31 #include "AampUtils.h"
37 #define HDMIINPUT_CALLSIGN "org.rdk.HdmiInput.1"
53 AAMPLOG_WARN(
"destructor ");
62 retval = InitHelper(tuneType);
64 #ifdef USE_CPP_THUNDER_PLUGIN_ACCESS
65 std::function<void(
const WPEFramework::Core::JSON::VariantContainer&)> videoInfoUpdatedMethod = std::bind(&StreamAbstractionAAMP_HDMIIN::OnVideoStreamInfoUpdate,
this, std::placeholders::_1);
66 RegisterEvent(
"videoStreamInfoUpdate", videoInfoUpdatedMethod);
77 int hdmiInputPort = -1;
78 if( sscanf(url,
"hdmiin://localhost/deviceid/%d", &hdmiInputPort ) == 1 )
98 AAMPLOG_WARN(
"StreamAbstractionAAMP_HDMIIN");
99 return std::vector<StreamInfo*>();
108 AAMPLOG_WARN(
"StreamAbstractionAAMP_HDMIIN");
109 return std::vector<StreamInfo*>();
118 (void)thumbnailIndex;
128 return std::vector<ThumbnailData>();
132 #ifdef USE_CPP_THUNDER_PLUGIN_ACCESS
137 void StreamAbstractionAAMP_HDMIIN::OnVideoStreamInfoUpdate(
const JsonObject& parameters)
140 parameters.ToString(message);
141 AAMPLOG_WARN(
"%s",message.c_str());
143 JsonObject videoInfoObj = parameters;
146 double frameRate = 0.0;
147 double frameRateN =
static_cast<double> (videoInfoObj[
"frameRateN"].Number());
148 double frameRateD =
static_cast<double> (videoInfoObj[
"frameRateD"].Number());
149 if((0 != frameRateN) && (0 != frameRateD))
150 frameRate = frameRateN / frameRateD;
152 aamp->
NotifyBitRateChangeEvent(0, eAAMP_BITRATE_CHANGE_BY_HDMIIN, videoInfoObj[
"width"].Number(), videoInfoObj[
"height"].Number(), frameRate, 0,
false, videoScanType, 0, 0);
#define HDMIINPUT_CALLSIGN
void SetContentType(const char *contentType)
Set Content Type.
PrivateInstanceAAMP * aamp
std::vector< ThumbnailData > GetThumbnailRangeData(double, double, std::string *, int *, int *, int *, int *) override
To get thumbnail range data.
std::vector< StreamInfo * > GetAvailableVideoTracks(void) override
To get the available video tracks.
std::string & GetManifestUrl(void)
Get manifest URL.
VideoScanType
VideoScanType - Progressive/Interlaced.
void StartHelper(int port, const std::string &methodName)
calls start on video in specified by port and method name
~StreamAbstractionAAMP_HDMIIN()
StreamAbstractionAAMP_HDMIIN Destructor.
void Stop(bool clearChannelData) override
Stops streaming.
Private functions and types used internally by AAMP.
void StopHelper(const std::string &methodName)
Stops streaming.
Class representing the AAMP player's private instance, which is not exposed to outside world.
bool SetThumbnailTrack(int) override
To set the thumbnail track by index.
AAMPStatusType
AAMP Function return values.
AAMPStatusType Init(TuneType tuneType) override
Initialize a newly created object.
StreamAbstractionAAMP_HDMIIN(AampLogManager *logObj, class PrivateInstanceAAMP *aamp, double seekpos, float rate)
StreamAbstractionAAMP_HDMIIN Constructor.
void Start() override
Starts streaming.
shim for dispatching UVE HDMI input playback
void NotifyBitRateChangeEvent(int bitrate, BitrateChangeReason reason, int width, int height, double framerate, double position, bool GetBWIndex=false, VideoScanType scantype=eVIDEOSCAN_UNKNOWN, int aspectRatioWidth=0, int aspectRatioHeight=0)
Notify bit rate change event to listeners.
Fragment collector for MPEG DASH.
std::vector< StreamInfo * > GetAvailableThumbnailTracks(void) override
To get the available thumbnail tracks.