aboutsummaryrefslogtreecommitdiff
path: root/lib/Arctica/Telekinesis
diff options
context:
space:
mode:
authorGZNGET FOSS Team <opensource@gznianguan.com>2017-10-13 15:50:37 +0200
committerGZNGET FOSS Team <opensource@gznianguan.com>2017-10-13 15:50:37 +0200
commit5121603fc26cd922ba50b28ddf8ceb64a21ddca3 (patch)
tree0e63d5deea497601b0d642ebadd47ea16bdfd189 /lib/Arctica/Telekinesis
parent5b0a96fefb4a29c521904ad2f8e671545f92bd37 (diff)
downloadperl-Arctica-Telekinesis-Client-5121603fc26cd922ba50b28ddf8ceb64a21ddca3.tar.gz
perl-Arctica-Telekinesis-Client-5121603fc26cd922ba50b28ddf8ceb64a21ddca3.tar.bz2
perl-Arctica-Telekinesis-Client-5121603fc26cd922ba50b28ddf8ceb64a21ddca3.zip
Simplify declaration of webcontent forwarding
Diffstat (limited to 'lib/Arctica/Telekinesis')
-rw-r--r--lib/Arctica/Telekinesis/Client.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Arctica/Telekinesis/Client.pm b/lib/Arctica/Telekinesis/Client.pm
index 0dab683..c9fc235 100644
--- a/lib/Arctica/Telekinesis/Client.pm
+++ b/lib/Arctica/Telekinesis/Client.pm
@@ -84,6 +84,7 @@ sub new {
aobject_name => "Telekinesis_Client",
available_services => {
multimedia => 1,
+ webcontent => 1,
},
};
# $self->{'session_id'} = genARandom('id');
@@ -171,6 +172,14 @@ sub target_spawn {
system("/usr/bin/arctica-mediaplayer-overlay $app_id $ttid $self->{'socks'}{'local'}{'_socket_id'} $mfid $rwid&");
}
}
+ } elsif ($self->{'running_apps'}{$app_id}{'targets'}{$ttid}{'service'} eq 'webcontent') {
+ my $nxwid = 0;
+ my $rwid = 0;
+ if ($self->{'running_apps'}{$app_id}{'targets'}{$ttid}{'realwid'} =~ /^([a-zA-Z0-9\_\-]*)$/) {
+ $rwid = $1;
+ }
+ system("/usr/bin/arctica-browser-overlay $app_id $ttid $self->{'socks'}{'local'}{'_socket_id'} $nxwid $rwid&");
+ BugOUT(8,"WebContent!!!");
} else {
warn("Unknown service $self->{'running_apps'}{$app_id}{'targets'}{$ttid}{'service'}");
}
@@ -307,6 +316,7 @@ sub init_c2s_service_neg {
step => 1,
services => {
multimedia => 1,
+ webcontent => 1,
}
})
}
@@ -328,6 +338,7 @@ sub c2s_service_neg {
step => 3,
services => {
multimedia => 1,
+ webcontent => 1,
}
})
}