VideoTools/vendor/github.com/fredbi/uri/builder.go
Stu Leak 68df790d27 Fix player frame generation and video playback
Major improvements to UnifiedPlayer:

1. GetFrameImage() now works when paused for responsive UI updates
2. Play() method properly starts FFmpeg process
3. Frame display loop runs continuously for smooth video display
4. Disabled audio temporarily to fix video playback fundamentals
5. Simplified FFmpeg command to focus on video stream only

Player now:
- Generates video frames correctly
- Shows video when paused
- Has responsive progress tracking
- Starts playback properly

Next steps: Re-enable audio playback once video is stable
2026-01-07 22:20:00 -05:00

60 lines
1.1 KiB
Go

package uri
// Builder builds URIs.
type Builder interface {
URI() URI
SetScheme(scheme string) Builder
SetUserInfo(userinfo string) Builder
SetHost(host string) Builder
SetPort(port string) Builder
SetPath(path string) Builder
SetQuery(query string) Builder
SetFragment(fragment string) Builder
// Returns the URI this Builder represents.
String() string
}
func (u *uri) SetScheme(scheme string) Builder {
u.scheme = scheme
return u
}
func (u *uri) SetUserInfo(userinfo string) Builder {
u.ensureAuthorityExists()
u.authority.userinfo = userinfo
return u
}
func (u *uri) SetHost(host string) Builder {
u.ensureAuthorityExists()
u.authority.host = host
return u
}
func (u *uri) SetPort(port string) Builder {
u.ensureAuthorityExists()
u.authority.port = port
return u
}
func (u *uri) SetPath(path string) Builder {
u.ensureAuthorityExists()
u.authority.path = path
return u
}
func (u *uri) SetQuery(query string) Builder {
u.query = query
return u
}
func (u *uri) SetFragment(fragment string) Builder {
u.fragment = fragment
return u
}
func (u *uri) Builder() Builder {
return u
}