1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RygelMediaEngine: librygel-server Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="librygel-server Reference Manual">
<link rel="up" href="api-main-list.html" title="librygel-server API Reference">
<link rel="prev" href="RygelMediaContainer.html" title="RygelMediaContainer">
<link rel="next" href="RygelMediaFileItem.html" title="RygelMediaFileItem">
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#RygelMediaEngine.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#RygelMediaEngine.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_signals"> <span class="dim">|</span>
<a href="#RygelMediaEngine.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="api-main-list.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="RygelMediaContainer.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="RygelMediaFileItem.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="RygelMediaEngine"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="RygelMediaEngine.top_of_page"></a>RygelMediaEngine</span></h2>
<p>RygelMediaEngine — This is the base class for media engines that contain knowledge about the streaming and transformational capabilites of the media library in use.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="RygelMediaEngine.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
</td>
<td class="function_name">
<a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-dlna-profiles" title="rygel_media_engine_get_dlna_profiles ()">rygel_media_engine_get_dlna_profiles</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-resources-for-item" title="rygel_media_engine_get_resources_for_item ()">rygel_media_engine_get_resources_for_item</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GeeList</span> *
</td>
<td class="function_name">
<a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-resources-for-item-finish" title="rygel_media_engine_get_resources_for_item_finish ()">rygel_media_engine_get_resources_for_item_finish</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="RygelDataSource.html" title="RygelDataSource"><span class="returnvalue">RygelDataSource</span></a> *
</td>
<td class="function_name">
<a class="link" href="RygelMediaEngine.html#rygel-media-engine-create-data-source-for-resource" title="rygel_media_engine_create_data_source_for_resource ()">rygel_media_engine_create_data_source_for_resource</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="RygelDataSource.html" title="RygelDataSource"><span class="returnvalue">RygelDataSource</span></a> *
</td>
<td class="function_name">
<a class="link" href="RygelMediaEngine.html#rygel-media-engine-create-data-source-for-uri" title="rygel_media_engine_create_data_source_for_uri ()">rygel_media_engine_create_data_source_for_uri</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
</td>
<td class="function_name">
<a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-internal-protocol-schemes" title="rygel_media_engine_get_internal_protocol_schemes ()">rygel_media_engine_get_internal_protocol_schemes</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="RygelMediaEngine.html#rygel-media-engine-init" title="rygel_media_engine_init ()">rygel_media_engine_init</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="returnvalue">RygelMediaEngine</span></a> *
</td>
<td class="function_name">
<a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-default" title="rygel_media_engine_get_default ()">rygel_media_engine_get_default</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="RygelMediaEngine.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signals_return">
<col width="300px" class="signals_name">
<col width="200px" class="signals_flags">
</colgroup>
<tbody><tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="RygelMediaEngine.html#RygelMediaEngine-resource-changed" title="The “resource-changed” signal">resource-changed</a></td>
<td class="signal_flags"><a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="RygelMediaEngine.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="RygelMediaEngine.html#RYGEL-TYPE-MEDIA-ENGINE:CAPS" title="RYGEL_TYPE_MEDIA_ENGINE">RYGEL_TYPE_MEDIA_ENGINE</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="RygelMediaEngine.html#RygelMediaEngine-struct" title="struct RygelMediaEngine">RygelMediaEngine</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="RygelMediaEngine.html#RygelMediaEngineClass" title="struct RygelMediaEngineClass">RygelMediaEngineClass</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="RygelMediaEngine.html#RygelMediaEngineError" title="enum RygelMediaEngineError">RygelMediaEngineError</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="RygelMediaEngine.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="../gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
<span class="lineart">╰──</span> RygelMediaEngine
</pre>
</div>
<div class="refsect1">
<a name="RygelMediaEngine.description"></a><h2>Description</h2>
<p>Media engines express what representations of a MediaObject they can produce by returning MediaResource objects which will, in turn, be used to express to endpoints representations can be streamed from the MediaServer. These representations may include transformations, time-scaled representations, and/or encrypted representations.</p>
<p>See, for instance, Rygel's built-in "gstreamer" and "simple" media engines, or the external rygel-gst-0-10-media-engine module.</p>
<p>The actual media engine used by Rygel at runtime is specified by the media-engine configuration key. For instance, in rygel.conf: media-engine=librygel-media-engine-gst.so</p>
<p>Media engines should also derive their own <a class="link" href="RygelDataSource.html" title="RygelDataSource"><span class="type">RygelDataSource</span></a>, returning an instance of it from <code class="function">create_data_source()</code>.</p>
<p>See the <link linkend="implementing-media-engines">Implementing Media Engines</link> section.</p>
</div>
<div class="refsect1">
<a name="RygelMediaEngine.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="rygel-media-engine-get-dlna-profiles"></a><h3>rygel_media_engine_get_dlna_profiles ()</h3>
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
rygel_media_engine_get_dlna_profiles (<em class="parameter"><code><a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> *self</code></em>);</pre>
<p>Get a list of the DLNA profiles that the media engine can stream.</p>
<p>This information is needed to implement DLNA's ConnectionManager.GetProtocolInfo call and to determine whether Rygel can accept an uploaded file.</p>
<div class="refsect3">
<a name="rygel-media-engine-get-dlna-profiles.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>the <a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rygel-media-engine-get-dlna-profiles.returns"></a><h4>Returns</h4>
<p>A list of <span class="type">RygelDLNAProfile</span><!-- -->s </p>.
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rygel-media-engine-get-resources-for-item"></a><h3>rygel_media_engine_get_resources_for_item ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
rygel_media_engine_get_resources_for_item
(<em class="parameter"><code><a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="RygelMediaObject.html" title="RygelMediaObject"><span class="type">RygelMediaObject</span></a> *item</code></em>,
<em class="parameter"><code><a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> _callback_</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> _user_data_</code></em>);</pre>
<p>Retrieve engine-provided resources for the given MediaObject</p>
<p>The MediaResources returned may include formats/profiles that do not match the source content byte-for-byte (e.g. transcodes, encrypted formats, etc). The MediaEngine must return a MediaResource for the raw MediaObject content if it can support streaming the content directly.</p>
<p>The order of MediaResources in the returned List should be from most-preferred to least-preferred and each must have a unique alphanumeric "name" field.</p>
<div class="note"><p>The engine should set all delivery-related flags assuming all delivery forms are supported (e.g. the protocol fields and delivery flags of the ProtocolInfo). And the resource uri should be set to the empty string for http-delivered resources. The effective delivery options and uri will be established by the HTTP server. </p></div>
<p><span class="emphasis"><em>See also</em></span>: <a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-resources-for-item-finish" title="rygel_media_engine_get_resources_for_item_finish ()"><code class="function">rygel_media_engine_get_resources_for_item_finish()</code></a></p>
<div class="refsect3">
<a name="rygel-media-engine-get-resources-for-item.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>the <a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>item</p></td>
<td class="parameter_description"><p> </p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>_callback_</p></td>
<td class="parameter_description"><p>callback to call when the request is satisfied. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>_user_data_</p></td>
<td class="parameter_description"><p>the data to pass to <em class="parameter"><code>_callback_</code></em>
function. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rygel-media-engine-get-resources-for-item-finish"></a><h3>rygel_media_engine_get_resources_for_item_finish ()</h3>
<pre class="programlisting"><span class="returnvalue">GeeList</span> *
rygel_media_engine_get_resources_for_item_finish
(<em class="parameter"><code><a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> *self</code></em>,
<em class="parameter"><code><a href="../gio/GAsyncResult.html#GAsyncResult-struct"><span class="type">GAsyncResult</span></a> *_res_</code></em>);</pre>
<p>Retrieve engine-provided resources for the given MediaObject</p>
<p>The MediaResources returned may include formats/profiles that do not match the source content byte-for-byte (e.g. transcodes, encrypted formats, etc). The MediaEngine must return a MediaResource for the raw MediaObject content if it can support streaming the content directly.</p>
<p>The order of MediaResources in the returned List should be from most-preferred to least-preferred and each must have a unique alphanumeric "name" field.</p>
<div class="note"><p>The engine should set all delivery-related flags assuming all delivery forms are supported (e.g. the protocol fields and delivery flags of the ProtocolInfo). And the resource uri should be set to the empty string for http-delivered resources. The effective delivery options and uri will be established by the HTTP server. </p></div>
<p><span class="emphasis"><em>See also</em></span>: <a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-resources-for-item" title="rygel_media_engine_get_resources_for_item ()"><code class="function">rygel_media_engine_get_resources_for_item()</code></a></p>
<div class="refsect3">
<a name="rygel-media-engine-get-resources-for-item-finish.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>the <a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>_res_</p></td>
<td class="parameter_description"><p>a <a href="../gio/GAsyncResult.html#GAsyncResult-struct"><span class="type">GAsyncResult</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rygel-media-engine-get-resources-for-item-finish.returns"></a><h4>Returns</h4>
<p>A list of <span class="type">MediaResources</span><!-- -->s or null if no representations are provided by the engine for the item. </p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rygel-media-engine-create-data-source-for-resource"></a><h3>rygel_media_engine_create_data_source_for_resource ()</h3>
<pre class="programlisting"><a class="link" href="RygelDataSource.html" title="RygelDataSource"><span class="returnvalue">RygelDataSource</span></a> *
rygel_media_engine_create_data_source_for_resource
(<em class="parameter"><code><a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="RygelMediaObject.html" title="RygelMediaObject"><span class="type">RygelMediaObject</span></a> *item</code></em>,
<em class="parameter"><code><a class="link" href="RygelMediaResource.html" title="RygelMediaResource"><span class="type">RygelMediaResource</span></a> *resource</code></em>,
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Get a <span class="type">DataSource</span> for given <span class="type">MediaResource</span> representation of the <span class="type">MediaObject</span>.</p>
<div class="refsect3">
<a name="rygel-media-engine-create-data-source-for-resource.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>the <a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>item</p></td>
<td class="parameter_description">
<p> . </p>
<p>The <span class="type">MediaObject</span> to create the <span class="type">DataSource</span> for </p>
<p>. </p>
</td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>resource</p></td>
<td class="parameter_description">
<p> . </p>
<p>The specific resource to create the <span class="type">DataSource</span> for </p>
<p>. </p>
</td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>location to store the error occuring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rygel-media-engine-create-data-source-for-resource.returns"></a><h4>Returns</h4>
<p>A <span class="type">DataSource</span> representing the given item resource </p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rygel-media-engine-create-data-source-for-uri"></a><h3>rygel_media_engine_create_data_source_for_uri ()</h3>
<pre class="programlisting"><a class="link" href="RygelDataSource.html" title="RygelDataSource"><span class="returnvalue">RygelDataSource</span></a> *
rygel_media_engine_create_data_source_for_uri
(<em class="parameter"><code><a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> *self</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri</code></em>,
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Get a <span class="type">DataSource</span> for the URI.</p>
<div class="refsect3">
<a name="rygel-media-engine-create-data-source-for-uri.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>the <a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>uri</p></td>
<td class="parameter_description">
<p> . </p>
<p>to create the <span class="type">DataSource</span> for. </p>
<p>. </p>
</td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>location to store the error occuring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rygel-media-engine-create-data-source-for-uri.returns"></a><h4>Returns</h4>
<p>A <span class="type">DataSource</span> representing the uri </p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rygel-media-engine-get-internal-protocol-schemes"></a><h3>rygel_media_engine_get_internal_protocol_schemes ()</h3>
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
rygel_media_engine_get_internal_protocol_schemes
(<em class="parameter"><code><a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> *self</code></em>);</pre>
<p>Get a list of URI schemes that are internal to the engine.</p>
<div class="refsect3">
<a name="rygel-media-engine-get-internal-protocol-schemes.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>the <a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rygel-media-engine-get-internal-protocol-schemes.returns"></a><h4>Returns</h4>
<p>A list of strings considered protocol schemees </p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rygel-media-engine-init"></a><h3>rygel_media_engine_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
rygel_media_engine_init (<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<div class="refsect3">
<a name="rygel-media-engine-init.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>location to store the error occuring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rygel-media-engine-get-default"></a><h3>rygel_media_engine_get_default ()</h3>
<pre class="programlisting"><a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="returnvalue">RygelMediaEngine</span></a> *
rygel_media_engine_get_default (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Get the singleton instance of the currently used media engine.</p>
<div class="refsect3">
<a name="rygel-media-engine-get-default.returns"></a><h4>Returns</h4>
<p>An instance of a concrete <a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> implementation. </p>
</div>
</div>
</div>
<div class="refsect1">
<a name="RygelMediaEngine.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="RYGEL-TYPE-MEDIA-ENGINE:CAPS"></a><h3>RYGEL_TYPE_MEDIA_ENGINE</h3>
<pre class="programlisting">#define RYGEL_TYPE_MEDIA_ENGINE (rygel_media_engine_get_type ())
</pre>
<p>The type for <a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a>.</p>
</div>
<hr>
<div class="refsect2">
<a name="RygelMediaEngine-struct"></a><h3>struct RygelMediaEngine</h3>
<pre class="programlisting">struct RygelMediaEngine;</pre>
<p>This is the base class for media engines that contain knowledge about the streaming and transformational capabilites of the media library in use.</p>
<p>Media engines express what representations of a MediaObject they can produce by returning MediaResource objects which will, in turn, be used to express to endpoints representations can be streamed from the MediaServer. These representations may include transformations, time-scaled representations, and/or encrypted representations.</p>
<p>See, for instance, Rygel's built-in "gstreamer" and "simple" media engines, or the external rygel-gst-0-10-media-engine module.</p>
<p>The actual media engine used by Rygel at runtime is specified by the media-engine configuration key. For instance, in rygel.conf: media-engine=librygel-media-engine-gst.so</p>
<p>Media engines should also derive their own <a class="link" href="RygelDataSource.html" title="RygelDataSource"><span class="type">RygelDataSource</span></a>, returning an instance of it from <code class="function">create_data_source()</code>.</p>
<p>See the <link linkend="implementing-media-engines">Implementing Media Engines</link> section.</p>
</div>
<hr>
<div class="refsect2">
<a name="RygelMediaEngineClass"></a><h3>struct RygelMediaEngineClass</h3>
<pre class="programlisting">struct RygelMediaEngineClass {
GObjectClass parent_class;
GList* (*get_dlna_profiles) (RygelMediaEngine* self);
void (*get_resources_for_item) (RygelMediaEngine* self, RygelMediaObject* item, GAsyncReadyCallback _callback_, gpointer _user_data_);
GeeList* (*get_resources_for_item_finish) (RygelMediaEngine* self, GAsyncResult* _res_);
RygelDataSource* (*create_data_source_for_resource) (RygelMediaEngine* self, RygelMediaObject* item, RygelMediaResource* resource, GError** error);
RygelDataSource* (*create_data_source_for_uri) (RygelMediaEngine* self, const gchar* uri, GError** error);
GList* (*get_internal_protocol_schemes) (RygelMediaEngine* self);
};
</pre>
<p>The class structure for <a class="link" href="RygelMediaEngine.html#RYGEL-TYPE-MEDIA-ENGINE:CAPS" title="RYGEL_TYPE_MEDIA_ENGINE"><code class="literal">RYGEL_TYPE_MEDIA_ENGINE</code></a>. All the fields in this structure are private and should never be accessed directly.</p>
<div class="refsect3">
<a name="RygelMediaEngineClass.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="RygelMediaEngineClass.get-dlna-profiles"></a>get_dlna_profiles</code></em> ()</p></td>
<td class="struct_member_description"><p>virtual method called by <a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-dlna-profiles" title="rygel_media_engine_get_dlna_profiles ()"><code class="function">rygel_media_engine_get_dlna_profiles()</code></a></p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="RygelMediaEngineClass.get-resources-for-item"></a>get_resources_for_item</code></em> ()</p></td>
<td class="struct_member_description"><p>virtual method called by <a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-resources-for-item" title="rygel_media_engine_get_resources_for_item ()"><code class="function">rygel_media_engine_get_resources_for_item()</code></a></p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="RygelMediaEngineClass.get-resources-for-item-finish"></a>get_resources_for_item_finish</code></em> ()</p></td>
<td class="struct_member_description"><p>asynchronous finish function for <em class="structfield"><code>get_resources_for_item</code></em>, called by <a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-resources-for-item" title="rygel_media_engine_get_resources_for_item ()"><code class="function">rygel_media_engine_get_resources_for_item()</code></a></p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="RygelMediaEngineClass.create-data-source-for-resource"></a>create_data_source_for_resource</code></em> ()</p></td>
<td class="struct_member_description"><p>virtual method called by <a class="link" href="RygelMediaEngine.html#rygel-media-engine-create-data-source-for-resource" title="rygel_media_engine_create_data_source_for_resource ()"><code class="function">rygel_media_engine_create_data_source_for_resource()</code></a></p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="RygelMediaEngineClass.create-data-source-for-uri"></a>create_data_source_for_uri</code></em> ()</p></td>
<td class="struct_member_description"><p>virtual method called by <a class="link" href="RygelMediaEngine.html#rygel-media-engine-create-data-source-for-uri" title="rygel_media_engine_create_data_source_for_uri ()"><code class="function">rygel_media_engine_create_data_source_for_uri()</code></a></p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="RygelMediaEngineClass.get-internal-protocol-schemes"></a>get_internal_protocol_schemes</code></em> ()</p></td>
<td class="struct_member_description"><p>virtual method called by <a class="link" href="RygelMediaEngine.html#rygel-media-engine-get-internal-protocol-schemes" title="rygel_media_engine_get_internal_protocol_schemes ()"><code class="function">rygel_media_engine_get_internal_protocol_schemes()</code></a></p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="RygelMediaEngineError"></a><h3>enum RygelMediaEngineError</h3>
<div class="refsect3">
<a name="RygelMediaEngineError.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody><tr>
<td class="enum_member_name"><p><a name="RYGEL-MEDIA-ENGINE-ERROR-NOT-FOUND:CAPS"></a>RYGEL_MEDIA_ENGINE_ERROR_NOT_FOUND</p></td>
<td> </td>
<td> </td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="RygelMediaEngine.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="RygelMediaEngine-resource-changed"></a><h3>The <code class="literal">“resource-changed”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> *media_engine,
<a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *media_object_uri,
<a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
<p>Signaled when one or more <span class="type">MediaResources</span><!-- -->s associated with a MediaObject changes. <span class="type">get_resources_for_item</span> should be called in response to this signal to retrieve the updated list of MediaResources for the associated MediaObject.</p>
<div class="refsect3">
<a name="RygelMediaEngine-resource-changed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>media_engine</p></td>
<td class="parameter_description"><p>the <a class="link" href="RygelMediaEngine.html" title="RygelMediaEngine"><span class="type">RygelMediaEngine</span></a> instance that received the signal</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>media_object_uri</p></td>
<td class="parameter_description">
<p> . </p>
<p>is the uri associated with a MediaObject.= </p>
<p></p>
</td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: <a href="../gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.27</div>
</body>
</html>
|