[Android] refactor Media/MediaList/MediaListPlayer

Thomas Guillem git at videolan.org
Mon Jan 19 09:43:26 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jan 15 17:07:55 2015 +0100| [5fa3cdd35c8487e0d124320674b4d085c0dbb82c] | committer: Thomas Guillem

refactor Media/MediaList/MediaListPlayer

Prepare for new Media* class that follow libvlc API.

Rename Media to MediaWrapper since it's a wrapper of the future Media class,
and also a wrapper of MediaDatabase elements.

Move these classes from libvlc to vlc-android since these classes depends too
much of the vlc application. Indeed there are mainly used by MediaDatabase that
belongs to application and not the lib.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=5fa3cdd35c8487e0d124320674b4d085c0dbb82c
---

 libvlc/src/org/videolan/libvlc/EventHandler.java   |    2 +-
 libvlc/src/org/videolan/libvlc/LibVLC.java         |    3 +-
 .../src/org/videolan/vlc/MediaDatabase.java        |   22 +++++------
 vlc-android/src/org/videolan/vlc/MediaGroup.java   |   25 ++++++------
 vlc-android/src/org/videolan/vlc/MediaLibrary.java |   41 ++++++++++----------
 .../src/org/videolan/vlc/MediaWrapper.aidl         |    6 +--
 .../src/org/videolan/vlc/MediaWrapper.java         |   33 +++++++++-------
 .../src/org/videolan/vlc/MediaWrapperList.java     |   32 +++++++--------
 .../org/videolan/vlc/MediaWrapperListPlayer.java   |   18 +++++----
 vlc-android/src/org/videolan/vlc/Thumbnailer.java  |    7 ++--
 .../src/org/videolan/vlc/audio/AudioService.java   |   40 +++++++++----------
 .../videolan/vlc/audio/AudioServiceController.java |   10 ++---
 .../src/org/videolan/vlc/gui/DirectoryAdapter.java |    4 +-
 .../src/org/videolan/vlc/gui/HistoryAdapter.java   |   10 ++---
 .../src/org/videolan/vlc/gui/SearchFragment.java   |   14 +++----
 .../org/videolan/vlc/gui/SearchResultAdapter.java  |   10 ++---
 .../vlc/gui/audio/AudioAlbumsSongsFragment.java    |   10 ++---
 .../vlc/gui/audio/AudioBrowserFragment.java        |   10 ++---
 .../vlc/gui/audio/AudioBrowserListAdapter.java     |   32 +++++++--------
 .../org/videolan/vlc/gui/audio/AudioPlayer.java    |    6 +--
 .../vlc/gui/audio/AudioPlaylistAdapter.java        |   14 +++----
 .../src/org/videolan/vlc/gui/audio/AudioUtil.java  |   12 +++---
 .../videolan/vlc/gui/audio/MediaComparators.java   |   30 +++++++-------
 .../videolan/vlc/gui/video/MediaInfoFragment.java  |    4 +-
 .../vlc/gui/video/VideoBrowserInterface.java       |    4 +-
 .../videolan/vlc/gui/video/VideoGridFragment.java  |   26 ++++++-------
 .../videolan/vlc/gui/video/VideoListAdapter.java   |   18 ++++-----
 .../vlc/gui/video/VideoPlayerActivity.java         |   14 +++----
 .../org/videolan/vlc/interfaces/IAudioService.aidl |    4 +-
 .../vlc/interfaces/IAudioServiceCallback.aidl      |    4 +-
 .../src/org/videolan/vlc/util/BitmapUtil.java      |    4 +-
 vlc-android/src/org/videolan/vlc/util/Util.java    |   22 +++++------
 32 files changed, 245 insertions(+), 246 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commitdiff;h=5fa3cdd35c8487e0d124320674b4d085c0dbb82c


More information about the Android mailing list