
[Define]
KErrNotFound -1
KErrNotSupported -5
KErrArgument -6
KErrNotReady -18
KErrAccessDenied -21

KTrue 1
KFalse 0

// UID definition for playback mode
KPbModeDefault 271067440       // 0x10282930  Uses same player as any other player running in same.
KPbModeActivePlayer 271067441  // 0x10282931  Currently active player or any player if no active player.
KPbModeNewPlayer 271067442     // 0x10282932  New player
KPbModeAppUID 111              // Application UID

// Category for playback utility creation.
KMPXCategoryUndefined  0
KMPXCategoryMusic 1
KMPXCategoryVideo 2

// UID for Helix Plugin
KVideoHelixPlaybackPluginUid 271066449   // 0x10282551

// Timers
KTimerEndTest 5000             // 5 sec

[Enddefine]


[Test]
//
//  Test NewL
//  - Mode NewPlayer
//  - Category Default(Music)
//
title 1  MMPXPlaybackUtilityNewL
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityNewL KPbModeNewPlayer
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test NewL
//  - Mode ActivePlayer
//  - Category Video
//
title 2  MMPXPlaybackUtilityNewL with category video
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityNewWithCatL KMPXCategoryVideo KPbModeActivePlayer
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test UtilityL
//  - Mode UID
//  - Category Default(Music)
//
title 3  MMPXPlaybackUtilityUtilityL
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityL KPbModeAppUID
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test UtilityL
//  - Mode Default
//  - Category Video
//
title 4  MMPXPlaybackUtilityUtilityL with category video
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityWithCatL KMPXCategoryVideo KPbModeDefault
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test InitL with Playlist
//  - Mode NewPlayer
//  - Category Default (Music)
//
title 5  MMPXPlaybackUtilityInitL(playlist)
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityL KPbModeNewPlayer
pbutil MMPXPlaybackUtilityAddObserverL
pbutil MMPXPlaybackUtilityInitWithPlaylistL
pause KTimerEndTest
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test InitL with URI
//  - UtilityL with Mode NewPlayer, Category Video
//  - Add Observer
//  - SelectPlayerL with HelixPlugin UID
//  - InitL with URI, File Battle_160x100_30kbps.rm
//
title 6  MMPXPlaybackUtilityInitL(uri)
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityWithCatL KMPXCategoryVideo KPbModeNewPlayer
pbutil MMPXPlaybackUtilityAddObserverL
pbutil MMPXPlaybackUtilityPlayerManagerSelectPlayerL KVideoHelixPlaybackPluginUid
pbutil MMPXPlaybackUtilityInitWithUriL Battle_160x100_30kbps.rm
pause KTimerEndTest
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test InitL with URI
//  - UtilityL with Mode NewPlayer, Category Video
//  - Add Observer
//  - SelectPlayerL with HelixPlugin UID
//  - InitL with URI, File XVID_176x144_15fps_261Kbps.avi
//
title 7  MMPXPlaybackUtilityInitL(uri)
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityWithCatL KMPXCategoryVideo KPbModeNewPlayer
pbutil MMPXPlaybackUtilityAddObserverL
pbutil MMPXPlaybackUtilityPlayerManagerSelectPlayerL KVideoHelixPlaybackPluginUid
pbutil MMPXPlaybackUtilityInitWithUriL XVID_176x144_15fps_261Kbps.avi
pause KTimerEndTest
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test InitL with RFile
//  - UtilityL with Mode NewPlayer, Category Video
//  - Add Observer
//  - SelectPlayerL with HelixPlugin UID
//  - InitL with RFile, File 20k_H263_WB_176x144_15fps.3gp
//
title 8  MMPXPlaybackUtilityInitL(rfile)
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityWithCatL KMPXCategoryVideo KPbModeNewPlayer
pbutil MMPXPlaybackUtilityAddObserverL
pbutil MMPXPlaybackUtilityPlayerManagerSelectPlayerL KVideoHelixPlaybackPluginUid
pbutil MMPXPlaybackUtilityInitWithRFileL 20k_H263_WB_176x144_15fps.3gp
pause KTimerEndTest
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test InitStreamingL with URI
//  - UtilityL with Mode NewPlayer, Category Video
//  - Add Observer
//  - SelectPlayerL with HelixPlugin UID
//  - InitStreamingL with URI, File 30k_MPEG4_AAC_8Khz_176x144_15fps_30secs.mp4
//
title 9  MMPXPlaybackUtilityInitStreamingL(uri)
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityWithCatL KMPXCategoryVideo KPbModeNewPlayer
pbutil MMPXPlaybackUtilityAddObserverL
pbutil MMPXPlaybackUtilityPlayerManagerSelectPlayerL KVideoHelixPlaybackPluginUid
pbutil MMPXPlaybackUtilityInitStreamingWithUriL 30k_MPEG4_AAC_8Khz_176x144_15fps_30secs.mp4
pause KTimerEndTest
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test InitStreamingL with RFile
//  - UtilityL with Mode NewPlayer, Category Video
//  - Add Observer
//  - SelectPlayerL with HelixPlugin UID
//  - InitStreamingL with RFile, File 80k_H264_AAC16M22_176x144_15fps.3gp
//
title 10  MMPXPlaybackUtilityInitStreamingL(rfile)
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityWithCatL KMPXCategoryVideo KPbModeNewPlayer
pbutil MMPXPlaybackUtilityAddObserverL
pbutil MMPXPlaybackUtilityPlayerManagerSelectPlayerL KVideoHelixPlaybackPluginUid
pbutil MMPXPlaybackUtilityInitStreamingWithRFileL 80k_H264_AAC16M22_176x144_15fps.3gp
pause KTimerEndTest
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test Init64L
//  - UtilityL with Mode NewPlayer, Category Video
//  - Add Observer
//  - SelectPlayerL with HelixPlugin UID
//  - Init64L with RFile64, File DivX_MP3_256x112_30fps_300Kbps.avi
//
title 11  MMPXPlaybackUtilityInit64L
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityWithCatL KMPXCategoryVideo KPbModeNewPlayer
pbutil MMPXPlaybackUtilityAddObserverL
pbutil MMPXPlaybackUtilityPlayerManagerSelectPlayerL KVideoHelixPlaybackPluginUid
pbutil MMPXPlaybackUtilityInit64L DivX_MP3_256x112_30fps_300Kbps.avi
pause KTimerEndTest
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test InitStreaming64L
//  - UtilityL with Mode NewPlayer, Category Video
//  - Add Observer
//  - SelectPlayerL with HelixPlugin UID
//  - InitStreaming64L with RFile64, File honey_im_home_horror_ad.avi
//
title 12  MMPXPlaybackUtilityInitStreaming64L
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityWithCatL KMPXCategoryVideo KPbModeNewPlayer
pbutil MMPXPlaybackUtilityAddObserverL
pbutil MMPXPlaybackUtilityPlayerManagerSelectPlayerL KVideoHelixPlaybackPluginUid
pbutil MMPXPlaybackUtilityInitStreaming64L honey_im_home_horror_ad.avi
pause KTimerEndTest
pbutil EndTest
delete pbutil
[Endtest] 

[Test]
//
//  Test File64L
//  - UtilityL with Mode NewPlayer, Category Video
//  - Add Observer
//  - SelectPlayerL with HelixPlugin UID
//  - Init64L with RFile64, File MPEG4_VBR_176x144_15fps.3gp
//  - File64L to get RFile64 file handler
//
title 13  MMPXPlaybackUtilityFile64L
create mpxplaybackutilitytest pbutil
pbutil MMPXPlaybackUtilityUtilityWithCatL KMPXCategoryVideo KPbModeNewPlayer
pbutil MMPXPlaybackUtilityAddObserverL
pbutil MMPXPlaybackUtilityPlayerManagerSelectPlayerL KVideoHelixPlaybackPluginUid
pbutil MMPXPlaybackUtilityInit64L MPEG4_VBR_176x144_15fps.3gp
pause KTimerEndTest
pbutil MMPXPlaybackUtilityFile64L
pbutil EndTest
delete pbutil
[Endtest] 

