Method 1: Using trigger() method: The trigger() method is used to execute a specified event and the default behavior of the event. The event to be executed is passed as a parameter to this method. The ‘play’ event is used to play any media element and similarly the ‘pause’ event is used to pause any media element. Using these events with the trigger() method will play or pause the video as required.
Please Login to comment...