Stop video on back button
I have a nestedlist that displays a video in the detailCard (I'm using a XTemplate with a video tag). When I click the back/parent button on the toolbar, the video continues to play. I've created an event handler for deactivate but when it gets to the handler I can't find the video object to stop it. (I tried child, down, getCmp, and more).
Found it: in the deactivate handler, oldActiveItem.element.destroy(). Note the comment on deactivate in docs - the param order is different. Should be (oldActiveItem, container, newActiveItem, eOpts)
Tags for this Thread