开发版本-developer——01 first commit
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
//
|
||||
|
||||
#import "P2PClient.h"
|
||||
#import "P2PCInterface.h"
|
||||
#import "Utils.h"
|
||||
#import "Constants.h"
|
||||
#import "config.h"
|
||||
@@ -439,7 +438,7 @@ void commandSettingInAction(DWORD dwCmd, DWORD dwOption , DWORD * pdwData, DWO
|
||||
|
||||
|
||||
|
||||
if (dwCmd == USR_CMD_PLAY_CTL) {
|
||||
if (dwCmd == USR_CMD_REMOTLY_PLAY_CTL) {
|
||||
|
||||
DLog(@"%i",dwOption);
|
||||
switch (dwOption) {
|
||||
@@ -568,7 +567,7 @@ void commandSettingInAction(DWORD dwCmd, DWORD dwOption , DWORD * pdwData, DWO
|
||||
BYTE prm[8];
|
||||
playbackCurrentFileIndex -= 1;
|
||||
memcpy(prm, &(playbackFiles[playbackCurrentFileIndex]), sizeof(sRecFilenameType));
|
||||
fgSendUserData(USR_CMD_PLAY_CTL, USR_CMD_OPTION_NEXT_FILE, prm, sizeof(sRecFilenameType));
|
||||
fgSendUserData(USR_CMD_REMOTLY_PLAY_CTL, USR_CMD_OPTION_NEXT_FILE, prm, sizeof(sRecFilenameType));
|
||||
|
||||
}
|
||||
|
||||
@@ -585,7 +584,7 @@ void commandSettingInAction(DWORD dwCmd, DWORD dwOption , DWORD * pdwData, DWO
|
||||
BYTE prm[8];
|
||||
playbackCurrentFileIndex += 1;
|
||||
memcpy(prm, &(playbackFiles[playbackCurrentFileIndex]), sizeof(sRecFilenameType));
|
||||
fgSendUserData(USR_CMD_PLAY_CTL, USR_CMD_OPTION_NEXT_FILE, prm, sizeof(sRecFilenameType));
|
||||
fgSendUserData(USR_CMD_REMOTLY_PLAY_CTL, USR_CMD_OPTION_NEXT_FILE, prm, sizeof(sRecFilenameType));
|
||||
vSetSupperDrop(TRUE);
|
||||
}
|
||||
|
||||
@@ -593,7 +592,7 @@ void commandSettingInAction(DWORD dwCmd, DWORD dwOption , DWORD * pdwData, DWO
|
||||
UInt64 jumpValue = (self.playback_startTime+value*1000000);
|
||||
|
||||
|
||||
fgSendUserData(USR_CMD_PLAY_CTL, USR_CMD_OPTION_JUMP, (BYTE*)(&jumpValue), sizeof(UInt64));
|
||||
fgSendUserData(USR_CMD_REMOTLY_PLAY_CTL, USR_CMD_OPTION_JUMP, (BYTE*)(&jumpValue), sizeof(UInt64));
|
||||
vSetSupperDrop(TRUE);
|
||||
}
|
||||
|
||||
@@ -603,7 +602,7 @@ void commandSettingInAction(DWORD dwCmd, DWORD dwOption , DWORD * pdwData, DWO
|
||||
// UInt64 jumpValue =32;
|
||||
NSLog(@"fastBeginValue=%lld",(long long)jumpValue);
|
||||
|
||||
fgSendUserData(USR_CMD_PLAY_CTL, USR_CMD_OPTION_FAST_PLAY, (BYTE*)(&jumpValue), sizeof(UInt64));
|
||||
fgSendUserData(USR_CMD_REMOTLY_PLAY_CTL, USR_CMD_OPTION_FAST_PLAY, (BYTE*)(&jumpValue), sizeof(UInt64));
|
||||
vSetSupperDrop(TRUE);
|
||||
}
|
||||
/**不要快进*/
|
||||
@@ -612,7 +611,7 @@ void commandSettingInAction(DWORD dwCmd, DWORD dwOption , DWORD * pdwData, DWO
|
||||
// UInt64 jumpValue =32;
|
||||
NSLog(@"fastEndValue=%lld",(long long)jumpValue);
|
||||
|
||||
fgSendUserData(USR_CMD_PLAY_CTL, USR_CMD_OPTION_FAST_PLAY_CANCEL, (BYTE*)(&jumpValue), sizeof(UInt64));
|
||||
fgSendUserData(USR_CMD_REMOTLY_PLAY_CTL, USR_CMD_OPTION_FAST_PLAY_CANCEL, (BYTE*)(&jumpValue), sizeof(UInt64));
|
||||
vSetSupperDrop(TRUE);
|
||||
}
|
||||
|
||||
@@ -944,7 +943,7 @@ void vP2PConnReady(void)
|
||||
tables[i] = contactId.intValue;
|
||||
}
|
||||
}
|
||||
fgP2PGetFriendsStatus(tables, [contacts count]);
|
||||
fgGetFriendsStatusFromP2PServer(tables, [contacts count]);
|
||||
}
|
||||
|
||||
//设备在线状态更新
|
||||
@@ -3844,7 +3843,7 @@ void vRecvRemoteMessage(DWORD dwSrcID, unsigned int fgHasCheckdPassword, void
|
||||
|
||||
memcpy(sMessage.cString, messageStr, length);
|
||||
mesg_id++;
|
||||
fgP2PSendRemoteMessage(contactId.intValue|0x80000000, 0, mesg_id, &sMessage, length+4, sMessage.cString, length, (DWORD)PUSH_MESG_FRIEND);
|
||||
fgP2PSendRemoteMessage(contactId.intValue|0x80000000, 0, mesg_id, &sMessage, length+4, sMessage.cString, length, (DWORD)PUSH_MESG_TYPE_NORMAL);
|
||||
return mesg_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user