Returned env
This commit is contained in:
parent
71d0bc1018
commit
3241d59e7b
@ -1,8 +1,13 @@
|
|||||||
package n9m
|
package n9m
|
||||||
|
|
||||||
import "fmt"
|
import (
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
)
|
||||||
|
|
||||||
func (e *Package) MediaRequestDownloadVideo(token int, serial string, session string, camNo int, date string, begin_time string, end_time string, recordID string, serverId int, ip string) {
|
var ip string = os.Getenv("SERVER_IP")
|
||||||
|
|
||||||
|
func (e *Package) MediaRequestDownloadVideo(token int, serial string, session string, camNo int, date string, begin_time string, end_time string, recordID string, serverId int) {
|
||||||
e.Payload = map[string]any{
|
e.Payload = map[string]any{
|
||||||
"MODULE": "MEDIASTREAMMODEL",
|
"MODULE": "MEDIASTREAMMODEL",
|
||||||
"OPERATION": "REQUESTDOWNLOADVIDEO",
|
"OPERATION": "REQUESTDOWNLOADVIDEO",
|
||||||
@ -26,7 +31,7 @@ func (e *Package) MediaRequestDownloadVideo(token int, serial string, session st
|
|||||||
}
|
}
|
||||||
|
|
||||||
// main server util
|
// main server util
|
||||||
func (e *Package) MediaRequestAliveVideo(token int, camNo int64, Sid string, serial string, quality int64, ip string) {
|
func (e *Package) MediaRequestAliveVideo(token int, camNo int64, Sid string, serial string, quality int64) {
|
||||||
|
|
||||||
channel := 0
|
channel := 0
|
||||||
|
|
||||||
@ -52,7 +57,7 @@ func (e *Package) MediaRequestAliveVideo(token int, camNo int64, Sid string, ser
|
|||||||
}
|
}
|
||||||
|
|
||||||
// main server util
|
// main server util
|
||||||
func (e *Package) MediaRequestRemotePlayback(token int, serial string, session string, camNo int, date string, begin_time string, end_time string, serverId int, ip string) {
|
func (e *Package) MediaRequestRemotePlayback(token int, serial string, session string, camNo int, date string, begin_time string, end_time string, serverId int) {
|
||||||
e.Payload = map[string]any{
|
e.Payload = map[string]any{
|
||||||
"MODULE": "MEDIASTREAMMODEL",
|
"MODULE": "MEDIASTREAMMODEL",
|
||||||
"OPERATION": "REQUESTREMOTEPLAYBACK",
|
"OPERATION": "REQUESTREMOTEPLAYBACK",
|
||||||
|
Loading…
Reference in New Issue
Block a user