Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geolocation: added isMobile fetch #1241

Merged
merged 1 commit into from Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -17,7 +17,7 @@ require (
github.com/hashicorp/serf v0.10.1
github.com/julienschmidt/httprouter v1.3.0
github.com/lib/pq v1.10.9
github.com/livepeer/go-api-client v0.4.22
github.com/livepeer/go-api-client v0.4.23-0.20240426140555-b490b47e4df3
github.com/livepeer/go-tools v0.3.6
github.com/livepeer/joy4 v0.1.1
github.com/livepeer/livepeer-data v0.8.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Expand Up @@ -471,6 +471,8 @@ github.com/livepeer/go-api-client v0.4.22-0.20240411124206-a7111eaf2f45 h1:aqFS6
github.com/livepeer/go-api-client v0.4.22-0.20240411124206-a7111eaf2f45/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
github.com/livepeer/go-api-client v0.4.22 h1:AIb+JkLDHTjj4OaiNdnfkM4DnHnmNlFCyvb2AnH5VJk=
github.com/livepeer/go-api-client v0.4.22/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
github.com/livepeer/go-api-client v0.4.23-0.20240426140555-b490b47e4df3 h1:iaPz1ZK2vlH4+zVC6eLES04w+/ly5e8KxX9mBpVzqKQ=
github.com/livepeer/go-api-client v0.4.23-0.20240426140555-b490b47e4df3/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
github.com/livepeer/go-tools v0.3.6 h1:LhRnoVVGFCtfBh6WyKdwJ2bPD/h5gaRvsAszmCqKt1Q=
github.com/livepeer/go-tools v0.3.6/go.mod h1:qs31y68b3PQPmSr8nR8l5WQiIWI623z6pqOccqebjos=
github.com/livepeer/joy4 v0.1.1 h1:Tz7gVcmvpG/nfUKHU+XJn6Qke/k32mTWMiH9qB0bhnM=
Expand Down
5 changes: 5 additions & 0 deletions handlers/geolocation/geolocation.go
Expand Up @@ -289,6 +289,11 @@ func (c *GeolocationHandlersCollection) getStreamPull(playbackID string, retryCo
return stream.Pull.Source, nil
}

if stream.Pull.IsMobile {
// Todo: handle mobile
glog.Infof("Mobile stream pull requested, playbackID=%s", playbackID)
}

params := []string{"readtimeout=180"}
for k, v := range stream.Pull.Headers {
param := "addheader=" + url.QueryEscape(k+" "+v)
Expand Down