--- a/videoplayback/videohelix/src/mpxvideodrmhelper.cpp Mon May 03 12:32:50 2010 +0300
+++ b/videoplayback/videohelix/src/mpxvideodrmhelper.cpp Fri May 14 15:53:50 2010 +0300
@@ -15,7 +15,8 @@
*
*/
-// Version : %version: 8 %
+
+// Version : %version: 9 %
#include <caf/data.h>
@@ -110,41 +111,6 @@
return drmError;
}
-TBool CMpxVideoDrmHelper::IsTvOutAllowedL( RFile& aFile )
-{
- TBool tvOutAllowed = ETrue;
-
- if ( IsProtectedL( aFile ) )
- {
- ContentAccess::CContent* content = ContentAccess::CContent::NewLC( aFile );
-
- ContentAccess::CData* data = content->OpenContentL( ContentAccess::EPeek );
-
- TInt fileType;
-
- TInt error = data->GetAttribute( ContentAccess::EFileType, fileType );
-
- if ( error == KErrNone )
- {
- //
- // TV-out is not allowed for DRM content other than OMA1 DRM
- //
- if ( fileType != ContentAccess::EOma1Dcf )
- {
- tvOutAllowed = EFalse;
- }
- }
-
- delete data;
-
- CleanupStack::PopAndDestroy( content );
- }
-
- MPX_DEBUG(_L("CMpxVideoDrmHelper::IsTvOutAllowedL(%d)"), tvOutAllowed);
-
- return tvOutAllowed;
-}
-
#ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
// ------------------------------------------------------------------------------------------------
@@ -203,45 +169,6 @@
return drmError;
}
-// ------------------------------------------------------------------------------------------------
-// CMpxVideoDrmHelper::IsTvOutAllowed64L()
-// ------------------------------------------------------------------------------------------------
-//
-TBool CMpxVideoDrmHelper::IsTvOutAllowed64L( RFile64& aFile )
-{
- TBool tvOutAllowed = ETrue;
-
- if ( IsProtected64L( aFile ) )
- {
- ContentAccess::CContent* content = ContentAccess::CContent::NewLC( aFile );
-
- ContentAccess::CData* data = content->OpenContentL( ContentAccess::EPeek );
-
- TInt fileType;
-
- TInt error = data->GetAttribute( ContentAccess::EFileType, fileType );
-
- if ( error == KErrNone )
- {
- //
- // TV-out is not allowed for DRM content other than OMA1 DRM
- //
- if ( fileType != ContentAccess::EOma1Dcf )
- {
- tvOutAllowed = EFalse;
- }
- }
-
- delete data;
-
- CleanupStack::PopAndDestroy( content );
- }
-
- MPX_DEBUG(_L("CMpxVideoDrmHelper::IsTvOutAllowed64L(%d)"), tvOutAllowed);
-
- return tvOutAllowed;
-}
-
#endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
// EOF