android 无缝播放器,Android ExoPlayer:它解决了无缝/无缝播放问题,打破了Android媒体播放器...

ExoPlayer 2,现在正式发布,似乎支持使用ConcatenatingMediaSource类的无缝播放。从

its developer guide:

Transitions between sources are seamless. There is no requirement that the sources being concatenated are of the same format (e.g. it’s fine to concatenate a video file containing 480p H264 with one that contains 720p VP9). The sources may even be of different types (e.g. it’s fine to concatenate a video with an audio only stream).

和示例代码:

MediaSource firstSource = new ExtractorMediaSource(firstVideoUri, ...);

MediaSource secondSource = new ExtractorMediaSource(secondVideoUri, ...);

// Plays the first video, then the second video.

ConcatenatingMediaSource concatenatedSource =

new ConcatenatingMediaSource(firstSource, secondSource);


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部