【问题标题】:Vitamio doesn't play m3u8Vitamio 不播放 m3u8
【发布时间】:2015-08-12 13:05:28
【问题描述】:

我尝试通过 Vitamio lib 播放 m3u8,但它不起作用。

    if (!LibsChecker.checkVitamioLibs(this))
        return;

    mVideoView = (VideoView) findViewById(R.id.vitamio_videoView);
    path = "http://hlsstr01.svc.iptv.rt.ru/hls/CH_24DOC/variant.m3u8?version=2";
    mVideoView.setVideoPath(path);
    mVideoView.setMediaController(new MediaController(this));
    mVideoView.requestFocus();

    mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
        @Override
        public void onPrepared(MediaPlayer mediaPlayer) {
            mediaPlayer.setPlaybackSpeed(1.0f);
        }
    });

怎么了?

【问题讨论】:

    标签: android vitamio


    【解决方案1】:

    流媒体链接返回 403 Forbidden。

    【讨论】:

      猜你喜欢
      • 2018-03-31
      • 1970-01-01
      • 2014-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-13
      • 2010-12-12
      • 1970-01-01
      相关资源
      最近更新 更多