#%bcond_with : disable ESPLUSPLAYER_UT by default, %bcond_without : enable ESPLUSPLAYER_UT
%bcond_without TIZEN_PUBLIC
+%bcond_without TIZEN_PUBLIC_DRM
%if ("%{_vd_cfg_product_type}" != "AUDIO")
%bcond_without ESPLUSPLAYER_UT
Name: esplusplayer
Summary: new multimedia streaming player
Version: 1.3.7
-Release: 4
+Release: 5
Group: Multimedia/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
%if %{with TIZEN_PUBLIC}
export CFLAGS+=" -DTIZEN_FEATURE_PUBLIC -DSYSCONFDIR=\\\"%{_hal_sysconfdir}\\\""
export CXXFLAGS+=" -DTIZEN_FEATURE_PUBLIC -DSYSCONFDIR=\\\"%{_hal_sysconfdir}\\\""
+
+%if %{with TIZEN_PUBLIC_DRM}
+export CFLAGS+=" -DTIZEN_FEATURE_PUBLIC_DRM"
+export CXXFLAGS+=" -DTIZEN_FEATURE_PUBLIC_DRM"
+%endif
+
%define TIZEN_PUBLIC ON
%define USE_MIXER no
%else
submit_data_type_ = type;
drm_property_.type = drm::Type::kPlayready;
// TODO: following SubmitDataType, need to set external_decryption
- drm_property_.external_decryption = true;
+ drm_property_.external_decryption =
+#ifdef TIZEN_FEATURE_PUBLIC_DRM
+ false; // In public, we don't use TrustZone.
+#else
+ true;
+#endif
drm::Property drm_property = drm_property_;
trackrenderer_->SetDrm(drm_property);
return true;