Добрый день.
В моей программе есть необходимость управлять музыкальными плеерами, т.е генерировать нажатия кнопок гарнитуры.
Использую Bluetooth RemoteConnection API.
далее по коду вызываю функцию Play - работает нормально все плееры понимаютCode:...::ConstructL(..) ... iInterfaceSelector = CRemConInterfaceSelector::NewL(); iCoreIf = CRemConCoreApiController::NewL( *iInterfaceSelector, *this ); iInterfaceSelector->OpenControllerL(); TRemConAddress connection; const TUid KUidVCExecutorBearer = { 0x10281C7E }; connection.BearerUid() = KUidVCExecutorBearer; TRAPD(err,iInterfaceSelector->GoConnectionOrientedL(connection)); RDebug::Print(_L("error = %d"),err); //в консоли "error = 0" if (err == KErrNone) { TRequestStatus status; iInterfaceSelector->ConnectBearer( status ); User::WaitForRequest( status ); RDebug::Print(_L("Status: %d"),status.Int()); //в консоли "Status: 0" }
а если вызватьCode:TUint numRemotes(0); TRequestStatus status; iCoreIf->PausePlayFunction( status, numRemotes, ERemConCoreApiButtonClick);
то перемотка не происходит не в одном плеере.Code://нажата кнопка перемотки iCoreIf->FastForward( status, numRemotes, ERemConCoreApiButtonPress); ... //отпущена кнопка перемотки iCoreIf->FastForward( status, numRemotes, ERemConCoreApiButtonRelease);
Сталкивался ли кто-инбудь с подобной проблемой посылки команды перемотки?

Reply With Quote

