connect(&xc, &XinemaControl::title_changed, this, &StreamControlItem::title_changed);
connect(&xc, &XinemaControl::duration_changed, this, &StreamControlItem::duration_changed);
connect(&xc, &XinemaControl::position_changed, this, &StreamControlItem::position_changed);
+ connect(&xc, &XinemaControl::size_changed, this, &StreamControlItem::size_changed);
+ connect(&xc, &XinemaControl::framerate_changed, this, &StreamControlItem::framerate_changed);
+ connect(&xc, &XinemaControl::codecs_changed, this, &StreamControlItem::codecs_changed);
connect(&xc, &XinemaControl::channels_changed, this, &StreamControlItem::control_channels_changed);
connect(&xc, &XinemaControl::current_audio_channel_changed, this, &StreamControlItem::current_audio_channel_changed);
connect(&xc, &XinemaControl::current_spu_channel_changed, this, &StreamControlItem::current_spu_channel_changed);
emit title_changed();
emit duration_changed();
emit position_changed();
+ emit size_changed();
+ emit framerate_changed();
+ emit codecs_changed();
emit channels_changed();
emit current_audio_channel_changed();
emit current_spu_channel_changed();
return control->get_control().get_position();
}
+QSize StreamControlItem::get_video_size() const
+{
+ if(!control)
+ return QSize();
+
+ return control->get_control().get_video_size();
+}
+
+float StreamControlItem::get_framerate() const
+{
+ if(!control)
+ return 0.0f;
+
+ return control->get_control().get_framerate();
+}
+
+QString StreamControlItem::get_video_codec() const
+{
+ if(!control)
+ return QString();
+
+ return control->get_control().get_video_codec();
+}
+
+QString StreamControlItem::get_audio_codec() const
+{
+ if(!control)
+ return QString();
+
+ return control->get_control().get_audio_codec();
+}
+
QStringList StreamControlItem::get_audio_channels() const
{
if(!control)