I search lots but i can’t get any answer regarding this. I am using f4player to play mp4 video in my HTML/JavaScript file. this player work well. but i want to control play/pause/stop of f4player using JavaScript. please any one can help me.
i use
f4player
thanks
From looking at the source code for F4Player, it would appear that it doesn’t offer the ability to control the player via JavaScript.
SWF file can be programmed to allow method invocation from JavaScript by making use of the ExternalInterface.addCallback method. You could quite easily modify the source code of the player to register the required JavaScript hooks:
Having said all this, you may be better served by a more complete video player solution such as the one found in video.js.