I am using React JW player. My component This is working well. I need to get the current duration of the playing video. How can I do that in reactjs? Answer You can access “raw” JW player by doing To get current position of JW Player do Expose JW Player instance | JW Player .getPosition()
Tag: jwplayer
JWplayer multiple player in one page and event handler
Scenario I have multiple players in the same page. Each instance loads a different video. I need to handle similar events for every instance. Problem If I just declare the events on a general function – like this jwplayer().on(‘play’, handler) – the handler affects only the first player of the page. If I declare the player’s id the console returns:
dynamic change jwplayer video path
basically i wish to achieve like user type file name,then video will be pop up what i want to do is i was tried to pass textbox value as jwplayer path to play video if i typed Video/video.mp3 into textbox and i click “button” , my jwplayer able to play video.mp3 what i want to do is juz typed “video”