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 91 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 183: Line 183:
Although new playlists can be used right away after calling <code>mafw_playlist_manager_create_playlist</code>, it is better to handle newly created playlists through the <code>playlist-created</code> callback, because this will work also for playlists created by other MAFW-based applications.
Although new playlists can be used right away after calling <code>mafw_playlist_manager_create_playlist</code>, it is better to handle newly created playlists through the <code>playlist-created</code> callback, because this will work also for playlists created by other MAFW-based applications.
-
It is possible to import an existing playlist file or the contents of a particular container of a source extension as a MAFW playlist with the help of <code>mafw_playlist_manager_import</code>. If this method is passed a URI as parameter, it will try to parse the file pointed by that URI and populate a playlist with the entries of the playlist file. Likewise, if a source object identifier is used instead of a URI, and it points to a valid source container, the container will be browsed, and the contents will be used to populate the playlist. If the object identifier points to a single media item instead of a container, the associated media will be treated as a playlist file, parsing the file it points to and adding its entries to the playlist.
+
It is possible to import an existing playlist file or the contents of a particular container of a source extension as a MAFW playlist with the help of <code>mafw_playlist_manager_import</code>. If this method is passed a URI as parameter, it will try to parse the file pointed by that URI and populate a playlist with the entries of the playlist file. Likewise, if a source object identifier is used instead of a URI, and it points to a valid source container, the container will be browsed, and the contents will be used to populate the playlist. If the object identifier points to a single media item instead of a container, the associated media will be treated as as a playlist file, parsing the file it points to and adding its entries to the playlist.
After a playlist has been imported, the framework will invoke the callback passed as parameter to <code>mafw_playlist_manager_import</code>, with a reference to the imported playlist proxy object. The name of the playlist will be the URI pointing to the file, or the source container title. If a playlist with this name existed already, then a number will be added after the name as a suffix to ensure a unique name is assigned. After this, the <code>MafwPlaylist::playlist-created</code> signal will be emitted.
After a playlist has been imported, the framework will invoke the callback passed as parameter to <code>mafw_playlist_manager_import</code>, with a reference to the imported playlist proxy object. The name of the playlist will be the URI pointing to the file, or the source container title. If a playlist with this name existed already, then a number will be added after the name as a suffix to ensure a unique name is assigned. After this, the <code>MafwPlaylist::playlist-created</code> signal will be emitted.

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)