Connecting teamviewer in code via browser link
I have an issue that's driving me mad. I have successfully been able to connect my teamviewer session from a browser uri to my required remote resource. I achieve this by using the following uri command in the browser address bar (in reality, it's a button click in html):
- teamviewer8://remotecontrol?connectcc=123456789
Although this connects perfectly as required, it presents an issue that I need to address.
The problem
If the connection isn't yet open, the teamviewer session is initiated and the window pops up in my second monitor as required. All good. However, if the session is already running and I initiate a subsequent request to the same uri, a new session is spawned and I'm left with multiple, duplicate session windows. This is both resource hungry in the long run and undesirable in practice.
My ideal solution
Ideally, I'd like the process to function such that a new session is called if it does not have the given id already running. If an earlier session with that Id is running, than I'd like to find a way to bring that into focus, rather than having teamviewer new up a new session.
What I already know
I know that this is possible as the teamviewer console does just this if you attempt to initiate a second session against an already running id. Using the teamviewer console is not an option as I've developed a web based desktop solution that requires the sessions to be kicked off via button clicks inside the UI (the id's are stored in my own db).
The app that I have created has the potential to literally open hundreds of duplicate windows as I'm looking at many processes across a small range of id's over a concentrated period of time, thus a solution is urgently required.
The bottom line
Is it possible to add a parameter to the uri to tell teamviewer not to create a new session. Is there a simple switch that I'm missing that will address the issue??
Thanks for reading...
Answers
-
Hello @mahreenkohkar,
Thank you for your message and welcome to the TeamViewer Community! 🙌
Currently, there is no possibility to prevent the creation of a new session using the URI connection method.
We have passed the information on to our development team. Hopefully, this fix will be implemented soon.
/JeanK
Community Manager
0