Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetW committed Jul 22, 2020
1 parent f96f6d2 commit 92a1d22
Show file tree
Hide file tree
Showing 44 changed files with 58 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.io.IOException;
import java.io.RandomAccessFile;

import tv.danmaku.ijk.media.player2.misc.IMediaDataSource;
import tv.danmaku.ijk.media.player.misc.IMediaDataSource;

public class FileMediaDataSource implements IMediaDataSource {
private RandomAccessFile mFile;
Expand Down
4 changes: 2 additions & 2 deletions android/src/main/java/top/kikt/ijkplayer2/Ijk.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.PluginRegistry
import top.kikt.ijkplayer2.entity.IjkOption
import top.kikt.ijkplayer2.entity.Info
import tv.danmaku.ijk.media.player2.IjkMediaPlayer
import tv.danmaku.ijk.media.player2.TextureMediaPlayer
import tv.danmaku.ijk.media.player.IjkMediaPlayer
import tv.danmaku.ijk.media.player.TextureMediaPlayer
import java.io.ByteArrayOutputStream
import java.io.File
import java.io.FileInputStream
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/top/kikt/ijkplayer2/NotifyChannel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package top.kikt.ijkplayer2

import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.PluginRegistry
import tv.danmaku.ijk.media.player2.IMediaPlayer
import tv.danmaku.ijk.media.player.IMediaPlayer

class NotifyChannel(val registry: PluginRegistry.Registrar, val textureId: Long, val ijk: Ijk) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import tv.danmaku.ijk.media.player2.misc.IMediaDataSource;
import tv.danmaku.ijk.media.player.misc.IMediaDataSource;

@SuppressWarnings("WeakerAccess")
public abstract class AbstractMediaPlayer implements IMediaPlayer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import android.annotation.TargetApi;
import android.content.Context;
Expand All @@ -35,10 +35,10 @@
import java.lang.ref.WeakReference;
import java.util.Map;

import tv.danmaku.ijk.media.player2.misc.AndroidTrackInfo;
import tv.danmaku.ijk.media.player2.misc.IMediaDataSource;
import tv.danmaku.ijk.media.player2.misc.ITrackInfo;
import tv.danmaku.ijk.media.player2.pragma.DebugLog;
import tv.danmaku.ijk.media.player.misc.AndroidTrackInfo;
import tv.danmaku.ijk.media.player.misc.IMediaDataSource;
import tv.danmaku.ijk.media.player.misc.ITrackInfo;
import tv.danmaku.ijk.media.player.pragma.DebugLog;

public class AndroidMediaPlayer extends AbstractMediaPlayer {
private final MediaPlayer mInternalMediaPlayer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import android.annotation.TargetApi;
import android.content.Context;
Expand All @@ -28,8 +28,8 @@
import java.io.IOException;
import java.util.Map;

import tv.danmaku.ijk.media.player2.misc.IMediaDataSource;
import tv.danmaku.ijk.media.player2.misc.ITrackInfo;
import tv.danmaku.ijk.media.player.misc.IMediaDataSource;
import tv.danmaku.ijk.media.player.misc.ITrackInfo;

public interface IMediaPlayer {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import android.graphics.SurfaceTexture;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import android.graphics.SurfaceTexture;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

public interface IjkLibLoader {
void loadLibrary(String libName) throws UnsatisfiedLinkError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import android.annotation.TargetApi;
import android.media.MediaCodecInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import android.os.Bundle;
import android.text.TextUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import android.annotation.SuppressLint;
import android.annotation.TargetApi;
Expand Down Expand Up @@ -55,13 +55,13 @@
import java.util.Locale;
import java.util.Map;

import tv.danmaku.ijk.media.player2.annotations.AccessedByNative;
import tv.danmaku.ijk.media.player2.annotations.CalledByNative;
import tv.danmaku.ijk.media.player2.misc.IAndroidIO;
import tv.danmaku.ijk.media.player2.misc.IMediaDataSource;
import tv.danmaku.ijk.media.player2.misc.ITrackInfo;
import tv.danmaku.ijk.media.player2.misc.IjkTrackInfo;
import tv.danmaku.ijk.media.player2.pragma.DebugLog;
import tv.danmaku.ijk.media.player.annotations.AccessedByNative;
import tv.danmaku.ijk.media.player.annotations.CalledByNative;
import tv.danmaku.ijk.media.player.misc.IAndroidIO;
import tv.danmaku.ijk.media.player.misc.IMediaDataSource;
import tv.danmaku.ijk.media.player.misc.ITrackInfo;
import tv.danmaku.ijk.media.player.misc.IjkTrackInfo;
import tv.danmaku.ijk.media.player.pragma.DebugLog;

/**
* @author bbcallen
Expand Down Expand Up @@ -190,9 +190,9 @@ public static void loadLibrariesOnce(IjkLibLoader libLoader) {
if (libLoader == null)
libLoader = sLocalLibLoader;

libLoader.loadLibrary("ijkffmpeg");
libLoader.loadLibrary("ijksdl");
libLoader.loadLibrary("ijkplayer");
libLoader.loadLibrary("ijkffmpeg2");
libLoader.loadLibrary("ijksdl2");
libLoader.loadLibrary("ijkplayer2");
mIsLibLoaded = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import android.graphics.Rect;
import java.lang.String;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

public class MediaInfo {
public String mMediaPlayerName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import android.annotation.TargetApi;
import android.content.Context;
Expand All @@ -28,8 +28,8 @@
import java.io.IOException;
import java.util.Map;

import tv.danmaku.ijk.media.player2.misc.IMediaDataSource;
import tv.danmaku.ijk.media.player2.misc.ITrackInfo;
import tv.danmaku.ijk.media.player.misc.IMediaDataSource;
import tv.danmaku.ijk.media.player.misc.ITrackInfo;

public class MediaPlayerProxy implements IMediaPlayer {
protected final IMediaPlayer mBackEndMediaPlayer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2;
package tv.danmaku.ijk.media.player;

import android.annotation.TargetApi;
import android.graphics.SurfaceTexture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.annotations;
package tv.danmaku.ijk.media.player.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.annotations;
package tv.danmaku.ijk.media.player.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.exceptions;
package tv.danmaku.ijk.media.player.exceptions;

public class IjkMediaException extends Exception {
private static final long serialVersionUID = 7234796519009099506L;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tv.danmaku.ijk.media.player2.ffmpeg;
package tv.danmaku.ijk.media.player.ffmpeg;

public class FFmpegApi {
public static native String av_base64_encode(byte in[]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.misc;
package tv.danmaku.ijk.media.player.misc;

import android.annotation.TargetApi;
import android.media.MediaFormat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.misc;
package tv.danmaku.ijk.media.player.misc;

import android.annotation.TargetApi;
import android.media.MediaFormat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.misc;
package tv.danmaku.ijk.media.player.misc;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.misc;
package tv.danmaku.ijk.media.player.misc;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.misc;
package tv.danmaku.ijk.media.player.misc;

public interface IMediaFormat {
// Common keys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.misc;
package tv.danmaku.ijk.media.player.misc;

public interface ITrackInfo {
int MEDIA_TRACK_TYPE_AUDIO = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.misc;
package tv.danmaku.ijk.media.player.misc;

import android.annotation.TargetApi;
import android.os.Build;
Expand All @@ -25,7 +25,7 @@
import java.util.Locale;
import java.util.Map;

import tv.danmaku.ijk.media.player2.IjkMediaMeta;
import tv.danmaku.ijk.media.player.IjkMediaMeta;

public class IjkMediaFormat implements IMediaFormat {
// Common
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.misc;
package tv.danmaku.ijk.media.player.misc;

import android.text.TextUtils;

import tv.danmaku.ijk.media.player2.IjkMediaMeta;
import tv.danmaku.ijk.media.player.IjkMediaMeta;

public class IjkTrackInfo implements ITrackInfo {
private int mTrackType = MEDIA_TRACK_TYPE_UNKNOWN;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package tv.danmaku.ijk.media.player2.pragma;
package tv.danmaku.ijk.media.player.pragma;

import java.util.Locale;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package tv.danmaku.ijk.media.player2.pragma;
package tv.danmaku.ijk.media.player.pragma;

/*-
* configurated by app project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import io.flutter.plugin.common.PluginRegistry.Registrar
import tv.danmaku.ijk.media.player2.IjkMediaPlayer
import tv.danmaku.ijk.media.player.IjkMediaPlayer


/**
* IjkplayerPlugin
* Ijkplayer2Plugin
*/
class IjkplayerPlugin(private val registrar: Registrar) : MethodCallHandler {
class Ijkplayer2Plugin(private val registrar: Registrar) : MethodCallHandler {

override fun onMethodCall(call: MethodCall, result: Result) {
IjkMediaPlayer.loadLibrariesOnce(null)
IjkMediaPlayer.native_profileBegin("libijkplayer.so")
IjkMediaPlayer.native_profileBegin("libijkplayer2.so")
handleMethodCall(call, result)
}

Expand Down Expand Up @@ -159,7 +159,7 @@ class IjkplayerPlugin(private val registrar: Registrar) : MethodCallHandler {
@JvmStatic
fun registerWith(registrar: Registrar) {
val channel = MethodChannel(registrar.messenger(), "top.kikt/ijkplayer")
channel.setMethodCallHandler(IjkplayerPlugin(registrar))
channel.setMethodCallHandler(Ijkplayer2Plugin(registrar))
manager = IjkManager(registrar)
}
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion example/.flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_ijkplayer","path":"D:\\\\stable_flutter\\\\works\\\\githubApp\\\\flutter_ijkplayer\\\\","dependencies":[]},{"name":"photo_manager","path":"D:\\\\stable_flutter\\\\flutter\\\\.pub-cache\\\\git\\\\flutter_photo_manager-4d7c8158dd5a29c97ef349a98d3e33b14b88d9dc\\\\","dependencies":[]}],"android":[{"name":"flutter_ijkplayer","path":"D:\\\\stable_flutter\\\\works\\\\githubApp\\\\flutter_ijkplayer\\\\","dependencies":[]},{"name":"photo_manager","path":"D:\\\\stable_flutter\\\\flutter\\\\.pub-cache\\\\git\\\\flutter_photo_manager-4d7c8158dd5a29c97ef349a98d3e33b14b88d9dc\\\\","dependencies":[]}],"macos":[{"name":"photo_manager","path":"D:\\\\stable_flutter\\\\flutter\\\\.pub-cache\\\\git\\\\flutter_photo_manager-4d7c8158dd5a29c97ef349a98d3e33b14b88d9dc\\\\","dependencies":[]}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_ijkplayer","dependencies":[]},{"name":"photo_manager","dependencies":[]}],"date_created":"2020-07-22 15:07:49.635034","version":"1.17.5"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_ijkplayer","path":"D:\\\\stable_flutter\\\\works\\\\githubApp\\\\flutter_ijkplayer\\\\","dependencies":[]},{"name":"photo_manager","path":"D:\\\\stable_flutter\\\\flutter\\\\.pub-cache\\\\git\\\\flutter_photo_manager-4d7c8158dd5a29c97ef349a98d3e33b14b88d9dc\\\\","dependencies":[]}],"android":[{"name":"flutter_ijkplayer","path":"D:\\\\stable_flutter\\\\works\\\\githubApp\\\\flutter_ijkplayer\\\\","dependencies":[]},{"name":"photo_manager","path":"D:\\\\stable_flutter\\\\flutter\\\\.pub-cache\\\\git\\\\flutter_photo_manager-4d7c8158dd5a29c97ef349a98d3e33b14b88d9dc\\\\","dependencies":[]}],"macos":[{"name":"photo_manager","path":"D:\\\\stable_flutter\\\\flutter\\\\.pub-cache\\\\git\\\\flutter_photo_manager-4d7c8158dd5a29c97ef349a98d3e33b14b88d9dc\\\\","dependencies":[]}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_ijkplayer","dependencies":[]},{"name":"photo_manager","dependencies":[]}],"date_created":"2020-07-22 16:15:26.531495","version":"1.17.5"}

0 comments on commit 92a1d22

Please sign in to comment.