Editing Documentation/Maemo 5 Developer Guide/Using Multimedia Components/Media Application Framework (MAFW)
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
Warning: This page is 90 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 247: | Line 247: | ||
=== Sources === | === Sources === | ||
- | This section explains how to use sources in a program. During this explanation it is recommended to follow | + | This section explains how to use sources in a program. During this explanation it is recommended to follow sections [[#Source browse example]] and [[#Source metadata example]] for complete source code example illustrating most of the concepts explained below. |
====Introduction==== | ====Introduction==== | ||
Line 306: | Line 306: | ||
* Metadata, the metadata values associated to the current item. | * Metadata, the metadata values associated to the current item. | ||
* User Data, user data of the callback. | * User Data, user data of the callback. | ||
- | * Error, a | + | * Error, a GError that, if set, informs of an error in the browse operation. |
Also, in case that no results match the browse operation, the callback is invoked once, with the object ID parameter set to <code>NULL</code>. | Also, in case that no results match the browse operation, the callback is invoked once, with the object ID parameter set to <code>NULL</code>. | ||
Line 332: | Line 332: | ||
====Using a source==== | ====Using a source==== | ||
- | Sources are extensions, therefore, the first step is to obtain a reference to them using the framework registry. Please | + | Sources are extensions, therefore, the first step is to obtain a reference to them using the framework registry. Please check section [localhost#sec:mafw_loading_extensions 8.5.2] for more information on this topic. |
Once a reference to the source of interest has been obtained, the developer can start to use it. The way sources are used is usually this: | Once a reference to the source of interest has been obtained, the developer can start to use it. The way sources are used is usually this: | ||
Line 341: | Line 341: | ||
* The user can also request more metadata from a specific item obtained in the browse operation, to do so, the developer should use <code>mafw_source_get_metadata</code> passing the Object ID of the selected item. | * The user can also request more metadata from a specific item obtained in the browse operation, to do so, the developer should use <code>mafw_source_get_metadata</code> passing the Object ID of the selected item. | ||
- | For more information about the source API, please check the MAFW API reference. The reader can also check | + | For more information about the source API, please check the MAFW API reference. The reader can also check complete source code examples in sections [localhost#sec:mafw_examples_source_browse 8.5.3] and [localhost#sec:mafw_examples_source_metadata 8.5.3]. |
=== Renderers === | === Renderers === |
Learn more about Contributing to the wiki.