[Bug 658309] [souphttpsrc] how to seek? If the server uses “chunked encoding” ?
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Sep 7 01:33:57 PDT 2011
https://bugzilla.gnome.org/show_bug.cgi?id=658309
GStreamer | gst-plugins-good | 0.10.36
--- Comment #1 from Davy <realbrightster at gmail.com> 2011-09-07 08:33:55 UTC ---
I modified start() function as below in order to know server’s seekable status.
It works fine but I’d like to know what you think
gst_soup_http_src_start(…)
... any place
src-seekable = is_server_seekable(src);
is_server_seekable(…)
{
Create soup synchronous session
Build message with Range header (bytes=0-1024)
- I picked up the small range value(1K) to reduce latency
Send message (Partial GET) to src->location
Check server’s response, status_line
Return statue_line == SOUP_STATUS_PARTIAL_CONTENT ? 1 : 0
}
Pros.
- let client know EXACT server’s seekable status
-client can seek, even thought server response with chunked encoding without
content length
Cons.
- latency will be increased when start() is called.
- unknown side-effect
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list