[MPlayer-dev-eng] [PATCH] libmplayer

Bryan Wilkerson bryanwilkerson at yahoo.com
Fri Jun 17 16:09:24 CEST 2005


As discussed in an earlier thread, attached is a patch
that provides a shared library interface for mplayer.
Configure, make and install have all been updated to
build the lib and install it.  Currently only
supported on *nix systems and only tested on Linux.

Known deficiencies:

- need an error callback.  Need some way to notify the
application that an error occurred during play back
since that functionality is almost entirely
asynchronous.

- need to port to windows

- need a way to control more of the playback variables
supported from mplayer exe

- Code in libmplayer.c is largely the same as
mplayer.c  Recommend updating mplayer exe to use
libmplayer after the above issues are resolved. 

- Would be nice: a static library build in addition to
the shared library

A sample application using the library interface can
be found here:  

http://prdownloads.sourceforge.net/aux/klibmplayer.tar.gz?download

If you are unable/unwilling to run KDE apps, no big
deal, all of the libmplayer interfacing code is in
src/mainwidgetimpl.cpp.  It is easy to understand.

-bryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-libmplayer.diff
Type: text/x-patch
Size: 81096 bytes
Desc: 2374417340-mplayer-libmplayer.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050617/00d8c7f6/attachment.bin>


More information about the MPlayer-dev-eng mailing list