[PATCH 0/1] Add property to know the type of media supported
- From: "Juan A. Suarez Romero" <jasuarez igalia com>
- To: grilo-list gnome org
- Subject: [PATCH 0/1] Add property to know the type of media supported
- Date: Mon, 29 Oct 2012 18:52:36 +0000
From: "Juan A. Suarez Romero" <jasuarez igalia com>
These patches add a new property in GrlSource, "supported-media", that informs
the type of media the source can deal with: audio, image, video, or any
combination.
This is the simple approach to solve two use cases:
1) Developer wants to create a first level entitled "Audio content", "Video
content" and "Image content", and then put the proper sources in a second
level. So first the user selects the type of content she wants to watch, and
then the sources.
2) Application only deals with specific media types. This is the case of Totem,
for instance: it only deals with audio/video, so all the sources providing only
images should be discarded.
As said, both use cases can be solved with this property: just check it to know
the type of media the source deals with.
The default value is supporting all types.
It's important to know that this property makes sense with the sources that can
create content, i.e., supports browse/search/query. For those sources that are
mainly decorators (like TMDb plugin), is of no interest (users don't deal with
the source directly), so the property in those cases has the default value
(support all types).
In future, very likely we will add API just to load sources providing a
specific type of media; meanwhile, we use this property to ignore those not
interested.
Comments are welcomed.
J.A.
--
Juan A. Suarez Romero (1):
core: Add "supported-media" property
doc/grilo/grilo-sections.txt | 1 +
src/Makefile.am | 2 +-
src/data/grl-media.h | 17 +++++++++++++++++
src/grl-source.c | 43 +++++++++++++++++++++++++++++++++++++++++-
src/grl-source.h | 2 ++
5 files changed, 63 insertions(+), 2 deletions(-)
--
1.7.10.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]