https://github.com/crenshaw-dev/gomo-uvt
Unique View Time calculator for gomo coding challenge.
https://github.com/crenshaw-dev/gomo-uvt
Last synced: 2 days ago
JSON representation
Unique View Time calculator for gomo coding challenge.
- Host: GitHub
- URL: https://github.com/crenshaw-dev/gomo-uvt
- Owner: crenshaw-dev
- Created: 2019-06-23T23:52:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T13:47:29.000Z (almost 7 years ago)
- Last Synced: 2025-09-08T22:36:43.373Z (10 months ago)
- Language: C#
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gomo-uvt
gomo-uvt is a utility to calculate Unique View Time, a measure of the amount of a video
that has been viewed at least once. So if a viewer watches the first ten minutes of a video,
skips to watch the last three minutes, and then re-watches the first minute, the UVT is 13
minutes.
This utility is written in .NET Core 2.1 with unit tests in MSTest.
Instructions to run the utility and its unit tests are below. The same steps apply for Linux, Max, and
Windows. Just follow the steps to install .NET Core SDK for your operating system.
## Steps to calculate UVT
1. [Download](https://dotnet.microsoft.com/download/dotnet-core/2.1) and install the .NET Core 2.1 SDK
2. [Download the source](https://github.com/mac9416/gomo-uvt/archive/master.zip) and extract the .zip file
3. Open a command prompt and navigate to the directory containing gomo-uvt.sln
4. Run `dotnet run` to execute gomo-uvt
By default, gomo-uvt will return `0`. Add space-delimited `{start}-{end}` pairs to specify
start and end view times in milliseconds. Order of the pairs is not significant.
For example:
```
dotnet run 954-1960 0-150
```
The above command should report a UVT of 1156.
## Steps to run unit tests
1. Follow steps 1-2 above to set up the development environment
2. Open a command prompt and navigate to the directory containing UniqueViewTimeTest.csproj
3. Run `dotnet test`