Skip to content

Commit

Permalink
feat(mediaplayer): add dummy externalPlayer impl for jni and apple
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Aug 3, 2020
1 parent 6841c17 commit d7ce718
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mediaPlayer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,18 @@ set(SOURCE_FILES
playerOptions.h
SMP_DCAManager.cpp
CicadaPlayerPrototype.cpp)

if(APPLE)
set(SOURCE_FILES ${SOURCE_FILES}
externalPlayer/AppleAVPlayer.cpp
externalPlayer/AppleAVPlayer.h
)
elseif(ANDROID)
set(SOURCE_FILES ${SOURCE_FILES}
externalPlayer/JNIPlayer.cpp
externalPlayer/JNIPlayer.h
)
endif()
if (TARGET_PLATFORM STREQUAL "Android")
set(SOURCE_FILES ${SOURCE_FILES}
TrafficStats.c
Expand Down
6 changes: 6 additions & 0 deletions mediaPlayer/externalPlayer/AppleAVPlayer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//
// Created by moqi on 2020/7/20.
//

#include "AppleAVPlayer.h"
using namespace Cicada;
15 changes: 15 additions & 0 deletions mediaPlayer/externalPlayer/AppleAVPlayer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// Created by moqi on 2020/7/20.
//

#ifndef CICADAMEDIA_APPLE_AVPLAYER_H
#define CICADAMEDIA_APPLE_AVPLAYER_H

#include "../CicadaPlayerPrototype.h"
namespace Cicada {
class AppleAVPlayer : public ICicadaPlayer, private CicadaPlayerPrototype {
};
}// namespace Cicada


#endif//CICADAMEDIA_APPLE_AVPLAYER_H
5 changes: 5 additions & 0 deletions mediaPlayer/externalPlayer/JNIPlayer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//
// Created by moqi on 2020/7/20.
//

#include "JNIPlayer.h"
13 changes: 13 additions & 0 deletions mediaPlayer/externalPlayer/JNIPlayer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Created by moqi on 2020/7/20.
//

#ifndef CICADAMEDIA_JNIPLAYER_H
#define CICADAMEDIA_JNIPLAYER_H

#include "../CicadaPlayerPrototype.h"
class JNIPlayer : public ICicadaPlayer, private CicadaPlayerPrototype {
};


#endif//CICADAMEDIA_JNIPLAYER_H

0 comments on commit d7ce718

Please sign in to comment.