Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 不延迟且不可下载的流式音频文件:Jwplayer和AWS S3_Html_Amazon S3_Jwplayer_Audio Streaming_Jwplayer7 - Fatal编程技术网

Html 不延迟且不可下载的流式音频文件:Jwplayer和AWS S3

Html 不延迟且不可下载的流式音频文件:Jwplayer和AWS S3,html,amazon-s3,jwplayer,audio-streaming,jwplayer7,Html,Amazon S3,Jwplayer,Audio Streaming,Jwplayer7,如何使用jwplayer将音频文件从S3 bucket流式传输到web/mobile,而不使其成为这些文件 jwplayer('mediaplayer').setup({ 'id': 'playerID', 'width': '480', 'height': '50', 'file': baseURL + obj[i].FileName, 'provider': 'rtmp

如何使用jwplayer将音频文件从S3 bucket流式传输到web/mobile,而不使其成为这些文件

 jwplayer('mediaplayer').setup({
            'id': 'playerID',
            'width': '480',
            'height': '50',
            'file': baseURL + obj[i].FileName, 
            'provider': 'rtmp',
            'streamer': 'rmtp address',
            autostart: true,
            rtmp: {
                bufferlength: 10
            }
        }).onTime(function(){
            var totalDuration  = jwplayer('mediaplayer').getDuration();
            var currentPosition = jwplayer('mediaplayer').getPosition();
            if(parseInt(currentPosition/totalDuration) > .99 && buffernext!=true){
                buffernext = true;
                i = i +1;
                //Ready the next song to stream
            }
        });
我如何才能完成以下任务

  • 当人们从AWS S3存储桶下载内容时,无需将文件权限更改为“打开/下载”,即可从AWS S3存储桶中缓冲/流式播放歌曲
  • 以一定的速率播放歌曲
  • 开始缓冲下一首歌曲,以避免两个文件之间的延迟

  • 将bufferlength设置为0.1,由于您使用的是RTMP,因此默认情况下不应下载文件。0.1在这里是什么意思…缓冲了文件总长度的0.1%?将bufferlength设置为0.1,因为您使用的是RTMP,默认情况下,文件不应可下载。0.1在这里是什么意思…缓冲文件总长度的0.1%?