-
Notifications
You must be signed in to change notification settings - Fork 479
Use AliVodPlayer
changsanjiang edited this page Nov 14, 2019
·
1 revision
Reinstall in the following way
source 'https://cdn.cocoapods.org/'
pod 'SJBaseVideoPlayer/AliVodPlayer'
pod 'SJVideoPlayer'
// 1. import header file
#import "SJAliyunVodPlaybackController.h"
_player = SJVideoPlayer.player;
// 2. Switch playback control to SJAliyunVodPlaybackController
_player.playbackController = SJAliyunVodPlaybackController.new;
// 3. play video
_player.URLAsset = [SJVideoPlayerURLAsset.alloc initWithAliyunVodModel:[SJAliyunVodURLModel.alloc initWithURL:VideoURL_Level1]];