[Clientapps-cvs] symbianMmf hxmmfmetadata.cpp,1.5.2.5,1.5.2.6
suramakr at helixcommunity.org suramakr at helixcommunity.orgUpdate of /cvsroot/clientapps/symbianMmf
In directory cvs02.internal.helixcommunity.org:/tmp/cvs-serv11294
Modified Files:
Tag: hxclient_2_1_0_cayennes
hxmmfmetadata.cpp
Log Message:
"Nokia submits this code under the terms of a commercial contribution agreement with Real Networks, and I am authorized to contribute this code under said agreement."
Modified by:
Sunitha.Ramakrishna at nokia.com
Reviewed by:
Date:
July-25-2006
Project:
Helix plug-in for Symbian
Error ID: EOVL-6PHU5T
Synopsis:
During live and SLTA streaming if the stream properties are changed when the player is in stop state, Helix played the new stream but did not update the title and properties on the S60 Media Player.
A check for live stream has been added in OnPresentationComplete(). If it's a live stream and we have an error event, Helix gets destroyed and recreated when the user resumes play.
Files Modified:
clientapps\symbianMmf\hxmmfctrlimpl.cpp
clientapps\symbianMmf\hxmmfmetadata.cpp
clientapps\symbianMmf\hxmmfmetadata.h
Files Added:
None
Image Size and Heap Use impact:
None
Platforms and Profiles Build Verified:
helix-client-s60-mmf-mdf-arm
helix-client-s60-mmf-mdf-dsp
Platforms and Profiles Functionality verified:
armv5
Branch:
head and hxclient_2_1_0_cayennes
Index: hxmmfmetadata.cpp
===================================================================
RCS file: /cvsroot/clientapps/symbianMmf/hxmmfmetadata.cpp,v
retrieving revision 1.5.2.5
retrieving revision 1.5.2.6
diff -u -d -r1.5.2.5 -r1.5.2.6
--- hxmmfmetadata.cpp 10 Mar 2006 15:16:10 -0000 1.5.2.5
+++ hxmmfmetadata.cpp 26 Jul 2006 19:54:37 -0000 1.5.2.6
@@ -261,7 +261,7 @@
CMMFMetaDataEntry* pTmp = m_metaData[aIndex];
if (pTmp)
- {
+ {
pEntry = CMMFMetaDataEntry::NewL(pTmp->Name(), pTmp->Value());
}
}
@@ -269,6 +269,58 @@
return pEntry;
}
+
+
+void
+HXMMFMetaData::FindMetaDataValueByName(const char* pKey, CHXString& aValue)
+{
+
+ TInt numElements = m_metaData.Nelements();
+
+ for ( TInt32 idx=0; idx < numElements; ++idx)
+ {
+
+ CMMFMetaDataEntry* pEntry = m_metaData[idx];
+
+ if(pEntry)
+ {
+ CHXString strKey = CHXAvStringUtils::DescToString(pEntry->Name());
+ if(strKey == pKey)
+ {
+ aValue = CHXAvStringUtils::DescToString(pEntry->Value());
+ break;
+ }
+ }
+ }
+}
+
+
+void
+HXMMFMetaData::FindMetaDataValueByName(const char* pKey, TInt& aInt)
+{
+
+ TInt numElements = m_metaData.Nelements();
+
+ for ( TInt32 idx=0; idx < numElements; ++idx)
+ {
+
+ CMMFMetaDataEntry* pEntry = m_metaData[idx];
+
+ if(pEntry)
+ {
+ CHXString strKey = CHXAvStringUtils::DescToString(pEntry->Name());
+ if(strKey == pKey)
+ {
+ aInt = atoi( (const char*) CHXAvStringUtils::DescToString(pEntry->Value()));
+ break;
+ }
+ }
+ }
+}
+
+
+
+
void
HXMMFMetaData::Reset(void)
{