equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: This class plays local video file |
14 * Description: This class plays local video file |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: ou1cpsw#41 % |
18 // Version : %version: 43 % |
19 |
19 |
20 |
20 |
21 // |
21 // |
22 // INCLUDE FILES |
22 // INCLUDE FILES |
23 // |
23 // |
73 _LIT( KAuthor, "Author" ); |
73 _LIT( KAuthor, "Author" ); |
74 _LIT( KFormat, "MimeType" ); |
74 _LIT( KFormat, "MimeType" ); |
75 _LIT( KTrue, "1" ); |
75 _LIT( KTrue, "1" ); |
76 _LIT( KFalse, "0" ); |
76 _LIT( KFalse, "0" ); |
77 _LIT (KMPStreamingPauseSupported, "StreamingPauseSupported"); |
77 _LIT (KMPStreamingPauseSupported, "StreamingPauseSupported"); |
|
78 _LIT( KDescription, "Description" ); |
|
79 _LIT( KAbstract, "Abstract" ); |
|
80 _LIT( KLocation, "Location" ); |
|
81 _LIT( KRightCopy, "Copyright" ); |
|
82 _LIT( KLanguage, "Language" ); |
|
83 _LIT( KKeywords, "Keywords" ); |
78 |
84 |
79 |
85 |
80 // ============================ MEMBER FUNCTIONS =================================================== |
86 // ============================ MEMBER FUNCTIONS =================================================== |
81 |
87 |
82 // ------------------------------------------------------------------------------------------------ |
88 // ------------------------------------------------------------------------------------------------ |
1271 // |
1277 // |
1272 // Drm Protected |
1278 // Drm Protected |
1273 // |
1279 // |
1274 if ( iFileHandle.SubSessionHandle() ) |
1280 if ( iFileHandle.SubSessionHandle() ) |
1275 { |
1281 { |
1276 iFileDetails->iDrmProtected = iDrmHelper->IsProtected( iFileHandle ); |
1282 iFileDetails->iDrmProtected = iDrmHelper->IsProtectedL( iFileHandle ); |
1277 } |
1283 } |
1278 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
1284 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
1279 else if ( iFileHandle64.SubSessionHandle() ) |
1285 else if ( iFileHandle64.SubSessionHandle() ) |
1280 { |
1286 { |
1281 iFileDetails->iDrmProtected = iDrmHelper->IsProtected64( iFileHandle64 ); |
1287 iFileDetails->iDrmProtected = iDrmHelper->IsProtected64L( iFileHandle64 ); |
1282 } |
1288 } |
1283 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
1289 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
1284 |
1290 |
1285 |
1291 |
1286 // |
1292 // |
1362 iFileDetails->iTitle = metaData->Value().AllocL(); |
1368 iFileDetails->iTitle = metaData->Value().AllocL(); |
1363 } |
1369 } |
1364 else if ( ( ! metaData->Name().CompareF( KArtist ) ) || |
1370 else if ( ( ! metaData->Name().CompareF( KArtist ) ) || |
1365 ( ! metaData->Name().CompareF( KAuthor ) ) ) |
1371 ( ! metaData->Name().CompareF( KAuthor ) ) ) |
1366 { |
1372 { |
1367 iFileDetails->iArtist = metaData->Value().AllocL(); |
1373 // |
|
1374 // Do not overwrite the artist |
|
1375 // |
|
1376 if ( ! iFileDetails->iArtist ) |
|
1377 { |
|
1378 iFileDetails->iArtist = metaData->Value().AllocL(); |
|
1379 } |
1368 } |
1380 } |
1369 else if ( ! metaData->Name().CompareF( KFormat ) ) |
1381 else if ( ! metaData->Name().CompareF( KFormat ) ) |
1370 { |
1382 { |
1371 // |
1383 // |
1372 // Do not overwrite the mime type |
1384 // Do not overwrite the mime type |
1382 { |
1394 { |
1383 // Streaming Pause is not supported by server |
1395 // Streaming Pause is not supported by server |
1384 iFileDetails->iPausableStream = EFalse; |
1396 iFileDetails->iPausableStream = EFalse; |
1385 } |
1397 } |
1386 } |
1398 } |
1387 |
1399 else if ( ( ! metaData->Name().CompareF( KDescription ) ) || |
|
1400 ( ! metaData->Name().CompareF( KAbstract ) ) ) |
|
1401 { |
|
1402 // |
|
1403 // Do not overwrite the description |
|
1404 // |
|
1405 if ( ! iFileDetails->iDescription ) |
|
1406 { |
|
1407 iFileDetails->iDescription = metaData->Value().AllocL(); |
|
1408 } |
|
1409 } |
|
1410 else if ( !metaData->Name().CompareF( KLocation ) ) |
|
1411 { |
|
1412 iFileDetails->iLocation = metaData->Value().AllocL(); |
|
1413 } |
|
1414 else if ( !metaData->Name().CompareF( KRightCopy ) ) |
|
1415 { |
|
1416 iFileDetails->iCopyright = metaData->Value().AllocL(); |
|
1417 } |
|
1418 else if ( !metaData->Name().CompareF( KLanguage ) ) |
|
1419 { |
|
1420 iFileDetails->iLanguage = metaData->Value().AllocL(); |
|
1421 } |
|
1422 else if ( !metaData->Name().CompareF( KKeywords ) ) |
|
1423 { |
|
1424 iFileDetails->iKeywords = metaData->Value().AllocL(); |
|
1425 } |
|
1426 |
1388 CleanupStack::PopAndDestroy( metaData ); |
1427 CleanupStack::PopAndDestroy( metaData ); |
1389 } |
1428 } |
1390 |
1429 |
1391 // Update the seek value for asx clips with the value |
1430 // Update the seek value for asx clips with the value |
1392 // received from the engine ( single item ) |
1431 // received from the engine ( single item ) |