Module: VRMediaViewModeNotifier
- Includes:
- VRMediaViewContainer
- Defined in:
- lib/vr/vrmmedia.rb
Constant Summary
Constants included from VRMessageHandler
VRMessageHandler::PREHANDLERSTR
Instance Method Summary collapse
-
#setnotifier(cname) ⇒ Object
VRMediaViewModeNotifier This module is to use another event handlers for mci.
Methods included from VRMediaViewContainer
#addControl, #mediaviewcontainerinit, #self_mmnotifies, #vrinit
Methods included from VRMessageHandler
#acceptEvents, #addHandler, #addNoRelayMessages, #controlmsg_dispatching, #deleteHandler, #msghandlerinit, #selfmsg_dispatching, #vrinit
Instance Method Details
#setnotifier(cname) ⇒ Object
VRMediaViewModeNotifier
This module is to use another event handlers for mci. These new handlers are not relayed to parent by VRMessageParentRelayer. (Use setnotifier() as setnotifier(“cname1_cname2))
Methods
— setnotifier(cname)
This enables ((<VRMediaView>))'s other event handlers such as cname_stopped,
cname_playing,cname_paused and cname_open, named after
((<VRMediaView>))#modestring.
112 113 114 115 116 117 118 119 |
# File 'lib/vr/vrmmedia.rb', line 112 def setnotifier(cname) instance_eval( "def "+cname+"_modechanged(n)\n" + " fname='#{cname}_'+@#{cname}.modestring(n) \n" + " send fname if respond_to?(fname) \n" + "end\n" ) end |