mmlibs/mmfw/tsrc/mmfintegrationtest/vclnt/src/TestPlayer.cpp
changeset 2 5c1df44f2eed
parent 0 b8ed18f6c07b
equal deleted inserted replaced
1:fcaf4606ba4e 2:5c1df44f2eed
   107 		// Wait for initialisation callback
   107 		// Wait for initialisation callback
   108 		INFO_PRINTF1(_L("CVideoPlayerUtility: Opening file"));
   108 		INFO_PRINTF1(_L("CVideoPlayerUtility: Opening file"));
   109 		CActiveScheduler::Start();
   109 		CActiveScheduler::Start();
   110 		}
   110 		}
   111 
   111 
   112 	// Until JetStream
       
   113 #ifndef JETSTREAM_TESTS
   112 #ifndef JETSTREAM_TESTS
   114 	if(iError == KErrNotSupported)
   113 	if(iError == KErrNotSupported)
   115 		ret = EPass;
   114 		ret = EPass;
   116 #endif
   115 #endif
   117 
   116 
   282 		INFO_PRINTF1(_L("CVideoPlayerUtility: Opening descriptor"));
   281 		INFO_PRINTF1(_L("CVideoPlayerUtility: Opening descriptor"));
   283 		// Wait for init callback
   282 		// Wait for init callback
   284 		CActiveScheduler::Start();
   283 		CActiveScheduler::Start();
   285 		}
   284 		}
   286 
   285 
   287 	// Until JetStream
       
   288 #ifndef JETSTREAM_TESTS
   286 #ifndef JETSTREAM_TESTS
   289 	if(iError == KErrNotSupported)
   287 	if(iError == KErrNotSupported)
   290 		ret = EPass;
   288 		ret = EPass;
   291 #endif
   289 #endif
   292 
   290 
   419 	CleanupStack::PushL(player);
   417 	CleanupStack::PushL(player);
   420 	player->OpenUrlL(urlname);
   418 	player->OpenUrlL(urlname);
   421 	INFO_PRINTF1(_L("CVideoPlayerUtility: Opening URL"));
   419 	INFO_PRINTF1(_L("CVideoPlayerUtility: Opening URL"));
   422 	CActiveScheduler::Start();
   420 	CActiveScheduler::Start();
   423 
   421 
   424 	// Until JetStream
       
   425 #ifndef JETSTREAM_TESTS
   422 #ifndef JETSTREAM_TESTS
   426 	if(iError == KErrNotSupported)
   423 	if(iError == KErrNotSupported)
   427 		ret = EPass;
   424 		ret = EPass;
   428 #endif
   425 #endif
   429 
   426 
   937 		INFO_PRINTF1(_L("Warning : SetDisplayWindowL() cannot be tested, no window server available"));
   934 		INFO_PRINTF1(_L("Warning : SetDisplayWindowL() cannot be tested, no window server available"));
   938 		ret = EPass;
   935 		ret = EPass;
   939 		}
   936 		}
   940 	else
   937 	else
   941 		{
   938 		{
   942 		// TBD - arguments to be correctly set
   939 		// XXX - arguments to be correctly set
   943 		CWsScreenDevice sd;
   940 		CWsScreenDevice sd;
   944 		RBlankWindow window;
   941 		RBlankWindow window;
   945 		TRect rect, clipRect;
   942 		TRect rect, clipRect;
   946 
   943 
   947 		TRAPD(err, aPlayer->SetDisplayWindowL(ws, sd, window, rect, clipRect));
   944 		TRAPD(err, aPlayer->SetDisplayWindowL(ws, sd, window, rect, clipRect));