javauis/mmapi_qt/baseline/src/cmmavideocontrol.cpp
changeset 61 bf7ee68962da
parent 48 e0d6e9bd3ca7
child 76 4ad59aaee882
equal deleted inserted replaced
48:e0d6e9bd3ca7 61:bf7ee68962da
   332     switch (aPropertyType)
   332     switch (aPropertyType)
   333     {
   333     {
   334     case com_nokia_microedition_media_control_VideoControl_SET_DISPLAY_SIZE:
   334     case com_nokia_microedition_media_control_VideoControl_SET_DISPLAY_SIZE:
   335     {
   335     {
   336         TSize displaySize(aPropertyA, aPropertyB);
   336         TSize displaySize(aPropertyA, aPropertyB);
   337         LOG2(EJavaMMAPI, EInfo, "CMMAVideoControl::statepropertyl %d , %d",displaySize.iHeight,displaySize.iWidth);
   337         LOG1(EJavaMMAPI, EInfo, "CMMAVideoControl::statepropertyl %d",displaySize);
   338         display->SetDisplaySizeL(displaySize);
   338         display->SetDisplaySizeL(displaySize);
   339         LOG(EJavaMMAPI, EInfo, "CMMAVideoControl::SetDisplayProperty:: setDisplaySizeL Completed");
   339         LOG(EJavaMMAPI, EInfo, "CMMAVideoControl::SetDisplayProperty:: setDisplaySizeL Completed");
   340         // inform java side
   340         // inform java side
   341         if (!display->IsFullScreen())
   341         if (!display->IsFullScreen())
   342         {
   342         {
   368         aControl->iOldDisplaySize = display->DisplaySize();
   368         aControl->iOldDisplaySize = display->DisplaySize();
   369         LOG1(EJavaMMAPI, EInfo, "MMA::CMMAVideoControl::StaticSetPropertyL a property %d",
   369         LOG1(EJavaMMAPI, EInfo, "MMA::CMMAVideoControl::StaticSetPropertyL a property %d",
   370              aPropertyA);
   370              aPropertyA);
   371         LOG1(EJavaMMAPI, EInfo, "MMA::CMMAVideoControl::StaticSetPropertyL b property %d",
   371         LOG1(EJavaMMAPI, EInfo, "MMA::CMMAVideoControl::StaticSetPropertyL b property %d",
   372              aPropertyB);
   372              aPropertyB);
   373         //TSize fullscreenSize(aPropertyA, aPropertyB);
   373         TSize fullscreenSize(aPropertyA, aPropertyB);
   374         //display->SetFullscreenSize(fullscreenSize);
   374         display->SetFullscreenSize(fullscreenSize);
   375         //display->SetDisplaySizeL(fullscreenSize);
   375         //display->SetDisplaySizeL(fullsclreenSize);
   376         //display->SetFullScreenL(ETrue);
   376         display->SetFullScreenL(ETrue);
   377         display->SourceSizeChanged(aPropertyA, aPropertyB,0,0,TRect(0,0,0,0));
   377         //display->SourceSizeChanged(aPropertyA, aPropertyB,0,0,TRect(0,0,0,0));
   378         break;
   378         break;
   379     }
   379     }
   380     case com_nokia_microedition_media_control_VideoControl_SET_DISPLAY_FULLSCREEN_FALSE:
   380     case com_nokia_microedition_media_control_VideoControl_SET_DISPLAY_FULLSCREEN_FALSE:
   381     {
   381     {
   382         TSize fullscreenSize = aControl->iOldDisplaySize;
       
   383         display->SetFullscreenSize(fullscreenSize);
       
   384         display->SetFullScreenL(EFalse);
   382         display->SetFullScreenL(EFalse);
   385 
   383 
   386         // Send SIZE_CHANGED event when fullscreen is turned off if
   384         // Send SIZE_CHANGED event when fullscreen is turned off if
   387         // size of the video display has changed. Possible position
   385         // size of the video display has changed. Possible position
   388         // change is however disregarded
   386         // change is however disregarded
   389         /* if (aControl->iOldDisplaySize != display->DisplaySize())
   387         if (aControl->iOldDisplaySize != display->DisplaySize())
   390          {
   388         {
   391              aControl->iGuiPlayer->NotifyWithStringEvent(
   389             aControl->iGuiPlayer->NotifyWithStringEvent(
   392                  CMMAPlayerEvent::ESizeChanged, KControlName);
   390                 CMMAPlayerEvent::ESizeChanged, KControlName);
   393          }*/
   391         }
   394 
   392 
   395         break;
   393         break;
   396     }
   394     }
   397     default:
   395     default:
   398     {
   396     {