Using External javascript, control Play, Stop, Pause etc. in f4player

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



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:

// Create an instance of the F4Player - ensure you don't pass an initial stream.
var player : Player = new Player(null);

// Register some ExternalInterface callback to allow control from the JavaScript
ExternalInterface.addCallback("play", player.Play);

// Initialize the skin in the usual fashion
    // ...etc.

Having said all this, you may be better served by a more complete video player solution such as the one found in video.js.

Need Your Help

How to assign color scale to a variable in a 3D scatter plot?

r colors ggplot2 3d gradient

I'm a beginner in R and needs a bit of help for my scripting.

Slime-repl isn't here

osx emacs lisp slime sbcl

I have installed Emacs + SBCL + slime but I have a problem with slime.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.