mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-31 02:09:22 +00:00
Use sip message when making snapshots
This commit is contained in:
parent
fb6e48fbe8
commit
1c9162b047
1 changed files with 2 additions and 7 deletions
|
|
@ -420,13 +420,8 @@
|
|||
}
|
||||
|
||||
- (IBAction)onSnapshotClick:(id)sender {
|
||||
LinphoneCall *call = linphone_core_get_current_call([LinphoneManager getLc]);
|
||||
if(call != NULL) {
|
||||
NSString *imagePath = [NSTemporaryDirectory() stringByAppendingPathComponent: [NSString stringWithFormat: @"%.0f.%@", [NSDate timeIntervalSinceReferenceDate] * 1000.0, @"jpg"]];
|
||||
int ret = linphone_call_take_video_snapshot(call, [imagePath UTF8String]);
|
||||
if(ret == 0) {
|
||||
[self performSelector:@selector(saveImage:) withObject:imagePath afterDelay:0.5];
|
||||
}
|
||||
if(chatRoom != NULL) {
|
||||
linphone_chat_room_send_message(chatRoom, "3");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue