.. index:: Online Content
This section resides under import and defines options for various supported online services.
Example of online content XML configuration
<import> <online-content> <AppleTrailers enabled="[yes,no]" refresh="[seconds]" purge-after="[seconds]" update-at-start="[yes,no]" resolution="[640,720]"/> <SopCast enabled="[yes,no]" refresh="[seconds]" purge-after="[seconds]" update-at-start="[yes,no]"/> </online-content> </import>
<online-content fetch-buffer-size="262144" fetch-buffer-fill-size="0">
- Optional
This tag defines the online content section.
Attributes:
fetch-buffer-size=...
- Optional
- Default: 262144
Often, online content can be directly accessed by the player - we will just give it the URL. However, sometimes it may be necessary to proxy the content through Gerbera. This setting defines the buffer size in bytes, that will be used when fetching content from the web. The value must not be less than allowed by the curl library (usually 16384 bytes).
fetch-buffer-fill-size=...
- Optional
- Default: 0 (disabled)
This setting allows to prebuffer a certain amount of data, given in bytes, before sending it to the player, this should ensure a constant data flow in case of slow connections. Usually this setting is not needed, because most players will anyway have some kind of buffering, however if the connection is particularly slow you may want to try enable this setting.
<AppleTrailers enabled="[yes,no]"
refresh="[seconds]" update-at-start="[yes,no]" resolution="[640,720]"/>
- Optional
This tag defines the online content for Apple Trailers
Attributes
enabled=...
- Default: no
refresh=...
- Default: 43200
The amount of time to wait before refreshing the online content
update-at-start=...
- Default: no
Upon starting Gerbera, the Apple Trailers content will be refreshed.
resolution=...
- Default: 720
Sets the Apple Trailers URL to retrieve the content, affecting the resolution size that is downloaded.
<SopCast enabled="[yes,no]" refresh="<int>" purge-after="<int>" update-at-start="[yes,no]"/>
- Optional
This tag defines the online content for SopCast
Attributes
enabled=...
- Default: no
refresh=...
- Default: 43200
The amount of time to wait before refreshing the online content
update-at-start=...
- Default: no
Upon starting Gerbera, the SopCast content will be refreshed.
purge-after=...
- Default: 0
Sets the expiration time of downloaded content in seconds.