added additional info
This commit is contained in:
parent
39a5d0b0cd
commit
22edd2ea9c
@ -329,7 +329,7 @@ func handleRemaining(w http.ResponseWriter, r *http.Request) {
|
|||||||
plyB.Done <- true
|
plyB.Done <- true
|
||||||
}
|
}
|
||||||
fmt.Println(position)
|
fmt.Println(position)
|
||||||
fmt.Fprintf(w, "{\"status\":\"ok\", \"SampleRate\":%d, \"Length\":%d, \"Position\":%d, \"Remaining\": %d, \"LengthSec\":\"%v\", \"PosSec\":\"%v\", \"RemaningSec\":\"%v\"}", n, length, position, remaining, length, position, remaining)
|
fmt.Fprintf(w, "{\"status\":\"ok\", \"id\":%d, \"SampleRate\":%d, \"Length\":%d, \"Position\":%d, \"Remaining\": %d, \"LengthSec\":\"%v\", \"PosSec\":\"%v\", \"RemaningSec\":\"%v\"}", cnt, n, length, position, remaining, length, position, remaining)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("Seeker is nil")
|
fmt.Println("Seeker is nil")
|
||||||
fmt.Fprintf(w, "{\"status\":\"ok\", \"SampleRate\":%d}", n)
|
fmt.Fprintf(w, "{\"status\":\"ok\", \"SampleRate\":%d}", n)
|
||||||
|
Loading…
Reference in New Issue
Block a user