Skip to content

Use ijkplayer

changsanjiang edited this page Oct 30, 2019 · 9 revisions

In this page

Reinstall in the following way

pod 'SJBaseVideoPlayer/IJKPlayer'
pod 'ijkplayerssl', :git => 'https://gitee.com/changsanjiang/ijkplayer.git'
pod 'SJVideoPlayer'

Project configuration

Step 1:

Remove the extra items, retain only arm64 & arm64e. image

Step 2:

Set bitcode to NO. image

How to use

// 1. import header file
#import "SJIJKMediaPlaybackController.h"

_player = SJVideoPlayer.player;
// 2. Switch playback control to SJIJKMediaPlaybackController
_player.playbackController = SJIJKMediaPlaybackController.new;
// 3. play video
_player.URLAsset = [SJVideoPlayerURLAsset.alloc initWithURL:URL];