ZFPlayer icon indicating copy to clipboard operation
ZFPlayer copied to clipboard

希望能给出一个ali播放器的封装DEMO

Open xslgithub opened this issue 2 years ago • 9 comments

xslgithub avatar Feb 22 '22 02:02 xslgithub

自己按照协议实现一下就行

renzifeng avatar Feb 22 '22 07:02 renzifeng

按协议弄了,画面出不来
:(

xslgithub avatar Mar 02 '22 07:03 xslgithub

按协议弄了,画面出不来 :( 你写好了吗,作者有没有实现协议的demo,我也想自己搞一下

lilin87788 avatar Mar 11 '22 01:03 lilin87788

自己可参考AVPlayerManager,或者IJKPlayerManager封装

xslgithub avatar Mar 15 '22 08:03 xslgithub

@xslgithub 你好,你的阿里播放器弄了吗

ioslhf avatar Mar 17 '22 02:03 ioslhf

@xslgithub 你好,你的阿里播放器弄了吗

弄了画面出不来,属于是无效弄.....

xslgithub avatar Mar 18 '22 02:03 xslgithub

自己可参考AVPlayerManager,或者IJKPlayerManager封装

好的谢谢我也看看

lilin87788 avatar Mar 20 '22 00:03 lilin87788

  • (void)initializePlayer { if (self.player) { [self.player stop]; }

    AVPUrlSource *urlSource = [[AVPUrlSource alloc] urlWithString:[NSString stringWithFormat:@"%@",self.assetURL]]; [self.player setUrlSource:urlSource]; self.player.playerView = [[UIView alloc]init]; self.view.playerView = self.player.playerView; self.player.autoPlay = self.shouldAutoPlay; [self.player prepare]; self.scalingMode = self->_scalingMode; }

self.player.playerView = [[UIView alloc]init]; ijkdemo是生成个播放视图,阿里云是设置视图 你试试这样

FengXJ avatar Apr 21 '22 08:04 FengXJ

  • (void)initializePlayer { if (self.player) { [self.player stop]; } AVPUrlSource *urlSource = [[AVPUrlSource alloc] urlWithString:[NSString stringWithFormat:@"%@",self.assetURL]]; [self.player setUrlSource:urlSource]; self.player.playerView = [[UIView alloc]init]; self.view.playerView = self.player.playerView; self.player.autoPlay = self.shouldAutoPlay; [self.player prepare]; self.scalingMode = self->_scalingMode; }

self.player.playerView = [[UIView alloc]init]; ijkdemo是生成个播放视图,阿里云是设置视图 你试试这样

画面出来了 , 我之前是在生成 manager对象的时候 再去设置视图的,结果出不来... 这为啥随便一个空的视图 都可以展示画面

xslgithub avatar Apr 21 '22 08:04 xslgithub