Add example code to use beagle as a service provider.
[beagle.git] / search / Tiles / Video.cs
blob20d0421d54d2af3752059f64d534b4256e3066ee
1 using System;
2 using Mono.Unix;
4 namespace Search.Tiles {
6 public class VideoActivator : TileActivator {
8 public VideoActivator () : base ()
10 AddSupportedFlavor (new HitFlavor (null, "File", "video/*"));
13 public override Tile BuildTile (Beagle.Hit hit, Beagle.Query query)
15 return new Video (hit, query);
19 public class Video : TileFile {
21 public Video (Beagle.Hit hit, Beagle.Query query) : base (hit, query)
23 Group = TileGroup.Video;
25 // FIXME: We need filters for video in Beagle.
26 // They should land soon when entagged-sharp gets video support.
27 Description = Catalog.GetString ("Unknown duration"); // FIXME: Duration from filters