Commit Graph

10 Commits

Author SHA1 Message Date
Saxon a5064e872c input/gvctrl/gvctrl.go: adapted CBRBitrate option function to supported 1080 resolution bitrates 2019-10-25 12:04:25 +10:30
Saxon 710a245c89 input/gvctrl: added Channel option function and started making changes
Added a field called ch to hold the channel. Ch can be set using Channel option function.
Created default channel const and setting ch field in newSettings. Started making changes
to other option functions, namely CodecOut, subsequently, wrote testing for it."
2019-10-25 12:04:25 +10:30
Saxon 5b17613489 input/gvctrl/utils.go: wrote documentation for utils.go 2019-10-14 10:37:41 +10:30
Saxon b86ff77996 input/gvctrl/gvctrl.go: wrote documentation in gvctrl.go and renamed BitRate to Bitrate 2019-10-14 09:56:43 +10:30
Saxon b3c3b842c8 input/gvctrl: moved unexported stuff from gvctrl.go to be more friendly to API users 2019-10-13 18:25:36 +10:30
Saxon cda7093c21 input/gvctrl: added another test case to TestPopulateForm and fixed potential bug regarding bitrate defaults 2019-10-13 18:11:49 +10:30
Saxon afe136a51d input/gvctrl/gvctrl_test.go: added TestPopulateForm to test construction of settings form and fixed bugs 2019-10-13 12:42:31 +10:30
Saxon 366226bb29 input/gvctrl: changed name of closestValStr back to convRate as can only be used by Bitrate options function 2019-10-12 16:48:35 +10:30
Saxon bab1a510b1 input/gvctrl/gvctrl.go: renamed convRate function to closestValStr to generalise and finished Refresh option function 2019-10-12 15:39:27 +10:30
Saxon e56455f7d0 input/gvctrl: added Set function with functional options for controlling GeoVision
Added a file called gvctrl.go which holds all exported functions, including Set,
and the options available for use with Set. This file also holds important consts
and the settings struct. Also added a file called request.go, which houses 3
functions that are in charge of creating HTTP requests, firstly to get the log in
page from which a log in request body can be generated, then to submit the generated
log in request body, and then to submit the settings. Finally a utils.go file has
been added to house a few helper functions.
2019-10-11 20:24:44 +10:30