I am utilizing Angular Bootstrap Modal to launch multiple modals, including a video player.
http://angular-ui.github.io/bootstrap/#/modal
My goal is to maintain the video's current position even when the modal is closed. This way, when I reopen the same modal, I can resume watching the video from where I left off.
In order to achieve this, I must:
Create a separate instance for each modal
Instead of using close(), I should hide() the modal. By doing so, the DOM elements remain intact and the video player does not need to be re-created.
I'm looking for an elegant solution since the Bootstrap modal does not have a hide feature. Is it advisable to use jQuery to show/hide the .modal-backdrop
and .modal
classes?