};
/**
+ * @brief The values of this enum determine how the video should be display mode to the view
+ */
+ struct DisplayMode
+ {
+ enum Type
+ {
+ LETTER_BOX = 0, /**< Letter box */
+ ORIGIN_SIZE, /**< Origin size */
+ FULL_SCREEN, /**< Full-screen */
+ CROPPED_FULL, /**< Cropped full-screen */
+ ORIGIN_OR_LETTER, /**< Origin size (if surface size is larger than video size(width/height)) or Letter box (if video size(width/height) is larger than surface size) */
+ DST_ROI /**< Region of Interest */
+ };
+ };
+
+ /**
* @brief Constructor.
* @SINCE_1_1.38
*/
* @return CodecType
*/
virtual VideoPlayerPlugin::CodecType GetCodecType() const = 0;
+
+ /**
+ * @brief Sets the display mode for playback.
+ * @param[in] mode of playback
+ */
+ virtual void SetDisplayMode( VideoPlayerPlugin::DisplayMode::Type mode ) = 0;
+
+ /**
+ * @brief Returns the current display mode.
+ * @return The current display mode of playback
+ */
+ virtual VideoPlayerPlugin::DisplayMode::Type GetDisplayMode() const = 0;
+
};
} // namespace Dali;
return GetImplementation( *this ).GetCodecType();
}
+void VideoPlayer::SetDisplayMode( Dali::VideoPlayerPlugin::DisplayMode::Type mode )
+{
+ GetImplementation( *this ).SetDisplayMode( mode );
+}
+
+Dali::VideoPlayerPlugin::DisplayMode::Type VideoPlayer::GetDisplayMode() const
+{
+ return GetImplementation( *this ).GetDisplayMode();
+}
+
} // namespace Dali;
*/
Dali::VideoPlayerPlugin::CodecType GetCodecType() const;
+ /**
+ * @brief Sets the display mode for playback.
+ * @param[in] mode of playback
+ */
+ void SetDisplayMode( Dali::VideoPlayerPlugin::DisplayMode::Type mode );
+
+ /**
+ * @brief Gets display mode
+ * @return DisplayMode
+ */
+ Dali::VideoPlayerPlugin::DisplayMode::Type GetDisplayMode() const;
+
private: // Not intended for application developers
/**
return Dali::VideoPlayerPlugin::CodecType::DEFAULT;
}
+void VideoPlayer::SetDisplayMode( Dali::VideoPlayerPlugin::DisplayMode::Type mode )
+{
+ if( mPlugin != NULL )
+ {
+ mPlugin->SetDisplayMode( mode );
+ }
+}
+
+Dali::VideoPlayerPlugin::DisplayMode::Type VideoPlayer::GetDisplayMode() const
+{
+ if( mPlugin != NULL )
+ {
+ return mPlugin->GetDisplayMode();
+ }
+
+ return Dali::VideoPlayerPlugin::DisplayMode::DST_ROI;
+}
+
} // namespace Adaptor;
} // namespace Internal;
} // namespace Dali;
*/
Dali::VideoPlayerPlugin::CodecType GetCodecType() const;
+ /**
+ * @copydoc Dali::VideoPlayer::SetDisplayMode()
+ */
+ void SetDisplayMode( Dali::VideoPlayerPlugin::DisplayMode::Type mode );
+
+ /**
+ * @brief Dali::VideoPlayer::GetDisplayMode()
+ */
+ Dali::VideoPlayerPlugin::DisplayMode::Type GetDisplayMode() const;
+
private:
/**