Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
mde
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5b3433fe
authored
Mar 14, 2017
by
Adi Amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
support video
parent
a6323d71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/main/java/logic/GEManager.java
src/main/java/logic/GEManager.java
View file @
5b3433fe
...
@@ -53,6 +53,7 @@ public class GEManager {
...
@@ -53,6 +53,7 @@ public class GEManager {
this
.
logger
=
logger
;
this
.
logger
=
logger
;
httpClient
=
new
SimpleHttpClient
();
httpClient
=
new
SimpleHttpClient
();
httpClient
.
Initialize
(
100
);
httpClient
.
Initialize
(
100
);
httpClient
.
addMimeType
(
"video/mp4"
);
}
}
public
BaseRestResponse
executeRequest
(
String
serviceId
,
String
[]
apiIdAsParams
,
RequestContext
requestContext
)
{
public
BaseRestResponse
executeRequest
(
String
serviceId
,
String
[]
apiIdAsParams
,
RequestContext
requestContext
)
{
...
@@ -66,6 +67,9 @@ public class GEManager {
...
@@ -66,6 +67,9 @@ public class GEManager {
else
if
(
apiIdAsParams
.
length
==
3
&&
apiIdAsParams
[
0
].
equals
(
"camera"
)
&&
apiIdAsParams
[
2
].
equals
(
"latestImage"
))
{
else
if
(
apiIdAsParams
.
length
==
3
&&
apiIdAsParams
[
0
].
equals
(
"camera"
)
&&
apiIdAsParams
[
2
].
equals
(
"latestImage"
))
{
brr
=
getLatestMediaFile
(
apiIdAsParams
[
1
]
/*camId*/
,
"IMAGE"
,
requestContext
);
brr
=
getLatestMediaFile
(
apiIdAsParams
[
1
]
/*camId*/
,
"IMAGE"
,
requestContext
);
}
}
else
if
(
apiIdAsParams
.
length
==
3
&&
apiIdAsParams
[
0
].
equals
(
"camera"
)
&&
apiIdAsParams
[
2
].
equals
(
"latestVideo"
))
{
brr
=
getLatestMediaFile
(
apiIdAsParams
[
1
]
/*camId*/
,
"VIDEO"
,
requestContext
);
}
else
if
(
apiIdAsParams
.
length
==
3
&&
apiIdAsParams
[
0
].
equals
(
"camera"
)
&&
apiIdAsParams
[
2
].
equals
(
"details"
))
{
else
if
(
apiIdAsParams
.
length
==
3
&&
apiIdAsParams
[
0
].
equals
(
"camera"
)
&&
apiIdAsParams
[
2
].
equals
(
"details"
))
{
brr
=
getCameraDetails
(
apiIdAsParams
[
1
]
/*camId*/
,
requestContext
);
brr
=
getCameraDetails
(
apiIdAsParams
[
1
]
/*camId*/
,
requestContext
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment