Skip to content

Commit

Permalink
feat: try to alter some direct play settings
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyXiang committed Jan 6, 2024
1 parent c69ee80 commit c189db5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions handler/plex.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,13 +511,10 @@ func (c *PlexClient) disableTranscoding(r *http.Request) *http.Request {
query.Set("directStreamAudio", "1")
query.Set("videoQuality", "100")
query.Set("videoResolution", "4096x2160")

protocol := query.Get("protocol")
switch protocol {
case "http":
query.Set("copyts", "0")
query.Set("hasMDE", "0")
}
query.Set("protocol", "hls")
query.Set("copyts", "1")
query.Set("hasMDE", "1")
query.Set("fastSeek", "1")

headers := r.Header
if extraProfile := headers.Get(headerExtraProfile); extraProfile != "" {
Expand Down

0 comments on commit c189db5

Please sign in to comment.