diff --git a/Compile.bat b/Compile.bat index 06db82b..cf5f16a 100644 --- a/Compile.bat +++ b/Compile.bat @@ -2,11 +2,11 @@ echo Compiling java classes ... cd Java -javac com/mplayer/MediaPlayer.java +javac org/mplayer/MediaPlayer.java javac Test.java echo Generating jni header ... -javah -o ../C/MediaPlayerJNI.h com.mplayer.MediaPlayerJNI +javah -o ../C/MediaPlayerJNI.h org.mplayer.MediaPlayerJNI cd .. echo Building dll library ... diff --git a/Java/Test.java b/Java/Test.java index 64d6b5f..c5a4277 100644 --- a/Java/Test.java +++ b/Java/Test.java @@ -1,5 +1,5 @@ import java.util.Scanner; -import com.mplayer.MediaPlayer; +import org.mplayer.MediaPlayer; // Simple console player demo diff --git a/Java/com/mplayer/MediaPlayer.java b/Java/org/mplayer/MediaPlayer.java similarity index 96% rename from Java/com/mplayer/MediaPlayer.java rename to Java/org/mplayer/MediaPlayer.java index 288af9c..374e4e6 100644 --- a/Java/com/mplayer/MediaPlayer.java +++ b/Java/org/mplayer/MediaPlayer.java @@ -1,19 +1,19 @@ -package com.mplayer; - -import com.mplayer.enumerations.MPDeviceType; -import com.mplayer.enumerations.MPMode; -import com.mplayer.enumerations.MPTimeFormat; -import com.mplayer.exceptions.MCIDeviceError; -import com.mplayer.structures.MCI_Generic_Parms; -import com.mplayer.structures.MCI_GetDevCaps_Parms; -import com.mplayer.structures.MCI_Open_Parms; -import com.mplayer.structures.MCI_Play_Parms; -import com.mplayer.structures.MCI_Record_Parms; -import com.mplayer.structures.MCI_Save_Parms; -import com.mplayer.structures.MCI_Seek_Parms; -import com.mplayer.structures.MCI_Set_Parms; -import com.mplayer.structures.MCI_Status_Parms; -import com.mplayer.utils.StringPointer; +package org.mplayer; + +import org.mplayer.enumerations.MPDeviceType; +import org.mplayer.enumerations.MPMode; +import org.mplayer.enumerations.MPTimeFormat; +import org.mplayer.exceptions.MCIDeviceError; +import org.mplayer.structures.MCI_Generic_Parms; +import org.mplayer.structures.MCI_GetDevCaps_Parms; +import org.mplayer.structures.MCI_Open_Parms; +import org.mplayer.structures.MCI_Play_Parms; +import org.mplayer.structures.MCI_Record_Parms; +import org.mplayer.structures.MCI_Save_Parms; +import org.mplayer.structures.MCI_Seek_Parms; +import org.mplayer.structures.MCI_Set_Parms; +import org.mplayer.structures.MCI_Status_Parms; +import org.mplayer.utils.StringPointer; /** * Media player wrapper. diff --git a/Java/com/mplayer/MediaPlayerJNI.java b/Java/org/mplayer/MediaPlayerJNI.java similarity index 81% rename from Java/com/mplayer/MediaPlayerJNI.java rename to Java/org/mplayer/MediaPlayerJNI.java index 712c8e8..5a319fe 100644 --- a/Java/com/mplayer/MediaPlayerJNI.java +++ b/Java/org/mplayer/MediaPlayerJNI.java @@ -1,7 +1,7 @@ -package com.mplayer; +package org.mplayer; -import com.mplayer.structures.MCI_Generic_Parms; -import com.mplayer.utils.StringPointer; +import org.mplayer.structures.MCI_Generic_Parms; +import org.mplayer.utils.StringPointer; /** * This class loads the dll library and provides the native methods. diff --git a/Java/com/mplayer/enumerations/MPDeviceType.java b/Java/org/mplayer/enumerations/MPDeviceType.java similarity index 91% rename from Java/com/mplayer/enumerations/MPDeviceType.java rename to Java/org/mplayer/enumerations/MPDeviceType.java index f9dffae..0110ef7 100644 --- a/Java/com/mplayer/enumerations/MPDeviceType.java +++ b/Java/org/mplayer/enumerations/MPDeviceType.java @@ -1,4 +1,4 @@ -package com.mplayer.enumerations; +package org.mplayer.enumerations; /** * This enumeration is used if one wants to tell the audio interface which diff --git a/Java/com/mplayer/enumerations/MPMode.java b/Java/org/mplayer/enumerations/MPMode.java similarity index 89% rename from Java/com/mplayer/enumerations/MPMode.java rename to Java/org/mplayer/enumerations/MPMode.java index e7812ca..dcc0a36 100644 --- a/Java/com/mplayer/enumerations/MPMode.java +++ b/Java/org/mplayer/enumerations/MPMode.java @@ -1,4 +1,4 @@ -package com.mplayer.enumerations; +package org.mplayer.enumerations; /** * This enumeration represents the current playback mode (f.e. that a file is diff --git a/Java/com/mplayer/enumerations/MPTimeFormat.java b/Java/org/mplayer/enumerations/MPTimeFormat.java similarity index 91% rename from Java/com/mplayer/enumerations/MPTimeFormat.java rename to Java/org/mplayer/enumerations/MPTimeFormat.java index 0820e6d..ebc7163 100644 --- a/Java/com/mplayer/enumerations/MPTimeFormat.java +++ b/Java/org/mplayer/enumerations/MPTimeFormat.java @@ -1,4 +1,4 @@ -package com.mplayer.enumerations; +package org.mplayer.enumerations; /** * This enumeration is used to set the format of the value which is returned by diff --git a/Java/com/mplayer/exceptions/MCIDeviceError.java b/Java/org/mplayer/exceptions/MCIDeviceError.java similarity index 92% rename from Java/com/mplayer/exceptions/MCIDeviceError.java rename to Java/org/mplayer/exceptions/MCIDeviceError.java index 8c0b91f..97d2f13 100644 --- a/Java/com/mplayer/exceptions/MCIDeviceError.java +++ b/Java/org/mplayer/exceptions/MCIDeviceError.java @@ -1,4 +1,4 @@ -package com.mplayer.exceptions; +package org.mplayer.exceptions; /** * This exception is thrown if the interface recognizes an error (f.e. if the diff --git a/Java/com/mplayer/structures/MCI_Generic_Parms.java b/Java/org/mplayer/structures/MCI_Generic_Parms.java similarity index 93% rename from Java/com/mplayer/structures/MCI_Generic_Parms.java rename to Java/org/mplayer/structures/MCI_Generic_Parms.java index 8db2ecb..c99586b 100644 --- a/Java/com/mplayer/structures/MCI_Generic_Parms.java +++ b/Java/org/mplayer/structures/MCI_Generic_Parms.java @@ -1,4 +1,4 @@ -package com.mplayer.structures; +package org.mplayer.structures; /** * The MCI_GENERIC_PARMS structure is used for MCI command messages that have diff --git a/Java/com/mplayer/structures/MCI_GetDevCaps_Parms.java b/Java/org/mplayer/structures/MCI_GetDevCaps_Parms.java similarity index 94% rename from Java/com/mplayer/structures/MCI_GetDevCaps_Parms.java rename to Java/org/mplayer/structures/MCI_GetDevCaps_Parms.java index 69f3342..137af03 100644 --- a/Java/com/mplayer/structures/MCI_GetDevCaps_Parms.java +++ b/Java/org/mplayer/structures/MCI_GetDevCaps_Parms.java @@ -1,4 +1,4 @@ -package com.mplayer.structures; +package org.mplayer.structures; /** * The MCI_GETDEVCAPS_PARMS structure contains device-capability information diff --git a/Java/com/mplayer/structures/MCI_Open_Parms.java b/Java/org/mplayer/structures/MCI_Open_Parms.java similarity index 95% rename from Java/com/mplayer/structures/MCI_Open_Parms.java rename to Java/org/mplayer/structures/MCI_Open_Parms.java index 43f0285..4dd001e 100644 --- a/Java/com/mplayer/structures/MCI_Open_Parms.java +++ b/Java/org/mplayer/structures/MCI_Open_Parms.java @@ -1,4 +1,4 @@ -package com.mplayer.structures; +package org.mplayer.structures; /** * The MCI_OPEN_PARMS structure contains information for the MCI_OPEN command. diff --git a/Java/com/mplayer/structures/MCI_Play_Parms.java b/Java/org/mplayer/structures/MCI_Play_Parms.java similarity index 94% rename from Java/com/mplayer/structures/MCI_Play_Parms.java rename to Java/org/mplayer/structures/MCI_Play_Parms.java index deeaf73..0a4dde0 100644 --- a/Java/com/mplayer/structures/MCI_Play_Parms.java +++ b/Java/org/mplayer/structures/MCI_Play_Parms.java @@ -1,4 +1,4 @@ -package com.mplayer.structures; +package org.mplayer.structures; /** * The MCI_PLAY_PARMS structure contains positioning information for the diff --git a/Java/com/mplayer/structures/MCI_Record_Parms.java b/Java/org/mplayer/structures/MCI_Record_Parms.java similarity index 94% rename from Java/com/mplayer/structures/MCI_Record_Parms.java rename to Java/org/mplayer/structures/MCI_Record_Parms.java index b46310a..999213c 100644 --- a/Java/com/mplayer/structures/MCI_Record_Parms.java +++ b/Java/org/mplayer/structures/MCI_Record_Parms.java @@ -1,4 +1,4 @@ -package com.mplayer.structures; +package org.mplayer.structures; /** * The MCI_RECORD_PARMS structure contains positioning information for the diff --git a/Java/com/mplayer/structures/MCI_Save_Parms.java b/Java/org/mplayer/structures/MCI_Save_Parms.java similarity index 93% rename from Java/com/mplayer/structures/MCI_Save_Parms.java rename to Java/org/mplayer/structures/MCI_Save_Parms.java index c020f1e..549658c 100644 --- a/Java/com/mplayer/structures/MCI_Save_Parms.java +++ b/Java/org/mplayer/structures/MCI_Save_Parms.java @@ -1,4 +1,4 @@ -package com.mplayer.structures; +package org.mplayer.structures; /** * The MCI_SAVE_PARMS structure contains the filename information for the diff --git a/Java/com/mplayer/structures/MCI_Seek_Parms.java b/Java/org/mplayer/structures/MCI_Seek_Parms.java similarity index 93% rename from Java/com/mplayer/structures/MCI_Seek_Parms.java rename to Java/org/mplayer/structures/MCI_Seek_Parms.java index 3e28ec2..0ffd8d2 100644 --- a/Java/com/mplayer/structures/MCI_Seek_Parms.java +++ b/Java/org/mplayer/structures/MCI_Seek_Parms.java @@ -1,4 +1,4 @@ -package com.mplayer.structures; +package org.mplayer.structures; /** * The MCI_SEEK_PARMS structure contains positioning information for the diff --git a/Java/com/mplayer/structures/MCI_Set_Parms.java b/Java/org/mplayer/structures/MCI_Set_Parms.java similarity index 94% rename from Java/com/mplayer/structures/MCI_Set_Parms.java rename to Java/org/mplayer/structures/MCI_Set_Parms.java index f8ed632..d9f42b7 100644 --- a/Java/com/mplayer/structures/MCI_Set_Parms.java +++ b/Java/org/mplayer/structures/MCI_Set_Parms.java @@ -1,4 +1,4 @@ -package com.mplayer.structures; +package org.mplayer.structures; /** * The MCI_SET_PARMS structure contains information for the MCI_SET command. diff --git a/Java/com/mplayer/structures/MCI_Status_Parms.java b/Java/org/mplayer/structures/MCI_Status_Parms.java similarity index 94% rename from Java/com/mplayer/structures/MCI_Status_Parms.java rename to Java/org/mplayer/structures/MCI_Status_Parms.java index 8c3ca1e..b8abd7a 100644 --- a/Java/com/mplayer/structures/MCI_Status_Parms.java +++ b/Java/org/mplayer/structures/MCI_Status_Parms.java @@ -1,4 +1,4 @@ -package com.mplayer.structures; +package org.mplayer.structures; /** * The MCI_STATUS_PARMS structure contains information for the MCI_STATUS diff --git a/Java/com/mplayer/utils/StringPointer.java b/Java/org/mplayer/utils/StringPointer.java similarity index 92% rename from Java/com/mplayer/utils/StringPointer.java rename to Java/org/mplayer/utils/StringPointer.java index f635c06..5a12850 100644 --- a/Java/com/mplayer/utils/StringPointer.java +++ b/Java/org/mplayer/utils/StringPointer.java @@ -1,4 +1,4 @@ -package com.mplayer.utils; +package org.mplayer.utils; /** * This is a helper class for strings which are passed as parameters to a