Commit 091530f2 authored by Edward Wang's avatar Edward Wang
Browse files

LibVLC: cosmetics

parent 79f65dd4
...@@ -322,7 +322,7 @@ void Java_org_videolan_libvlc_LibVLC_setEventHandler(JNIEnv *env, jobject thiz, ...@@ -322,7 +322,7 @@ void Java_org_videolan_libvlc_LibVLC_setEventHandler(JNIEnv *env, jobject thiz,
eventHandlerInstance = getEventHandlerReference(env, thiz, eventHandler); eventHandlerInstance = getEventHandlerReference(env, thiz, eventHandler);
} }
void Java_org_videolan_libvlc_LibVLC_playMrl(JNIEnv *env, jobject thiz, jlong instance, void Java_org_videolan_libvlc_LibVLC_playMRL(JNIEnv *env, jobject thiz, jlong instance,
jstring mrl, jobjectArray mediaOptions) jstring mrl, jobjectArray mediaOptions)
{ {
/* Release previous media player, if any */ /* Release previous media player, if any */
......
...@@ -417,19 +417,19 @@ public class LibVLC { ...@@ -417,19 +417,19 @@ public class LibVLC {
return; return;
String[] options = mMediaList.getMediaOptions(position); String[] options = mMediaList.getMediaOptions(position);
mInternalMediaPlayerIndex = position; mInternalMediaPlayerIndex = position;
playMrl(mLibVlcInstance, mrl, options); playMRL(mLibVlcInstance, mrl, options);
} }
/** /**
* Play an mrl * Play an MRL directly.
* *
* @param position The index of the media * @param mrl MRL of the media to play.
*/ */
public void playMrl(String mrl) { public void playMRL(String mrl) {
// index=-1 will return options from libvlc instance without relying on MediaList // index=-1 will return options from libvlc instance without relying on MediaList
String[] options = mMediaList.getMediaOptions(-1); String[] options = mMediaList.getMediaOptions(-1);
mInternalMediaPlayerIndex = 0; mInternalMediaPlayerIndex = 0;
playMrl(mLibVlcInstance, mrl, options); playMRL(mLibVlcInstance, mrl, options);
} }
public TrackInfo[] readTracksInfo(String mrl) { public TrackInfo[] readTracksInfo(String mrl) {
...@@ -494,7 +494,7 @@ public class LibVLC { ...@@ -494,7 +494,7 @@ public class LibVLC {
/** /**
* Play an mrl * Play an mrl
*/ */
private native void playMrl(long instance, String mrl, String[] mediaOptions); private native void playMRL(long instance, String mrl, String[] mediaOptions);
/** /**
* Returns true if any media is playing * Returns true if any media is playing
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment