Home | Trees | Indices | Help |
---|
|
1 # -*- coding: utf-8 -*- 2 # Elisa - Home multimedia server 3 # Copyright (C) 2006-2008 Fluendo Embedded S.L. (www.fluendo.com). 4 # All rights reserved. 5 # 6 # This file is available under one of two license agreements. 7 # 8 # This file is licensed under the GPL version 3. 9 # See "LICENSE.GPL" in the root of this distribution including a special 10 # exception to use Elisa with Fluendo's plugins. 11 # 12 # The GPL part of Elisa is also available under a commercial licensing 13 # agreement from Fluendo. 14 # See "LICENSE.Elisa" in the root directory of this distribution package 15 # for details on that license. 16 17 18 __maintainer__ = 'Lionel Martin <lionel@fluendo.com>' 19 20 21 from elisa.core import common 22 from elisa.core.media_uri import MediaUri 23 from elisa.core import plugin_registry 24 25 from elisa.extern.translation import gettexter, N_ 26 T_ = gettexter('elisa-dvd') 27 28 29 try: 30 from dvd_player import * 31 FLUENDO_DVD_INSTALLED = True 32 except: 33 FLUENDO_DVD_INSTALLED = False 34 35 MenuActivity = plugin_registry.get_component_class('base:menu_activity') 3638 39 menu_name = T_(N_("DVD")) 40 menu_icon_name = "dvd" 41 media_types = ["video",] 42 43 config_doc = {'dvd_uri': 'uri of the dvd. must be file:///* or dvd://'} 44 45 default_config = {'dvd_uri': 'dvd://'} 46 47 51 86 87 98 99108101 if not self.root_menu: 102 if FLUENDO_DVD_INSTALLED: 103 self.root_menu = self._get_dvd_menu() 104 else: 105 self.root_menu = self._get_empty_menu() 106 self.root_menu.activity = self 107 return self.root_menu
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:10:31 2008 | http://epydoc.sourceforge.net |