Changeset 25903
- Timestamp:
- 12/25/09 16:58:16 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/dmFlowPlayerPlugin/README
r25901 r25903 2 2 ================= 3 3 4 The `dmFlowPlayerPlugin` allow to read video, sound and flash media.4 The `dmFlowPlayerPlugin` allows to read video, sound and flash medias. 5 5 It packages a Diem front widget, and extends the £media capabilities. 6 The plugin is fully extensible. Only works with Diem 5.0installed.6 The plugin is fully extensible. Only works with [Diem 5.0](http://diem-project.org/) installed. 7 7 8 8 Documentation plugins/dmFlowPlayerPlugin/lib/dmWidget/dmWidgetContentFlowPlayerView.php
r25901 r25903 21 21 $vars['mediaTag']->addClass('dm_widget_content_flow_player'); 22 22 23 if ($vars[' splashMediaId'])23 if ($vars['mediaTag'] instanceof dmMediaTagFlowPlayerPlayable) 24 24 { 25 $splashMedia = dmDb::table('DmMedia')->findOneByIdWithFolder($vars['splashMediaId']); 26 27 if (!$splashMedia instanceof DmMedia) 25 if ($vars['splashMediaId']) 28 26 { 29 throw new dmException('No DmMedia found for media id : '.$vars['splashMediaId']); 27 $splashMedia = dmDb::table('DmMedia')->findOneByIdWithFolder($vars['splashMediaId']); 28 29 if (!$splashMedia instanceof DmMedia) 30 { 31 throw new dmException('No DmMedia found for media id : '.$vars['splashMediaId']); 32 } 33 34 $splashTag = $this->context->getHelper()->£media($splashMedia) 35 ->alt($vars['splashAlt']); 36 37 $vars['mediaTag']->splash($splashTag); 30 38 } 31 39 32 $splashTag = $this->context->getHelper()->£media($splashMedia)33 ->alt($vars['splashAlt']);34 35 $vars['mediaTag']->splash($splashTag);36 }37 38 if ($vars['mediaTag'] instanceof dmMediaTagFlowPlayerPlayable)39 {40 40 $vars['mediaTag']->autoplay($vars['autoplay']) 41 41 ->method($vars['method'])