[ipcamera] Fix servlet exceptions due to non unique names (#14872)
* [ipcamera] Fix servlet exceptions due to non unique names [IP camera] on OH4 has the same servlet issue that was fixed by PR #14554. This PR uses that PR as a template to fix the issue in the IPcamera binding. (That issue being that only one camera was able to stream.) This was tested locally on OH4M2 and it works. Signed-off-by: Bob Eckhoff <katmandodo@yahoo.com>
This commit is contained in:
parent
edaf9581c0
commit
4d5be1f64c
@ -59,6 +59,7 @@ public abstract class IpCameraServlet extends HttpServlet {
|
||||
|
||||
public void startListening() {
|
||||
try {
|
||||
initParameters.put("servlet-name", "/ipcamera/" + handler.getThing().getUID().getId());
|
||||
httpService.registerServlet("/ipcamera/" + handler.getThing().getUID().getId(), this, initParameters,
|
||||
httpService.createDefaultHttpContext());
|
||||
} catch (Exception e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user