2013-06-24 6 views
0

HTTP 라이브 스트리밍을 위해 flowplayer를 사용하고 있습니다. 스트리밍이 라이브에서가 아니라 처음부터 재생 될 때 문제가 발생합니다. 코드에 문제가 있거나 매개 변수가 누락 된 경우 알 수 없습니다.Flowplayer f4m 스트림이 시작될 때 시작됩니다.

도와주세요.

<script language="JavaScript"> 
flowplayer('player', 'http://releases.flowplayer.org/swf/flowplayer-3.2.16.swf', { 
    clip: { 
     // the manifest file 
     url: '(httpurl).f4m', 
     ipadUrl: '(httpurl).m3u8', 
     // we need 2 urlResolvers 
     urlResolvers: ['f4m','bwcheck'], 




     // use the httpstreaming plugin 
     provider: 'httpstreaming', 

     // directory where the manifest and video fragments are stored 
     baseUrl: 'http://stream.flowplayer.org/httpstreaming/', 
     live: true, 
     autoPlay: true 
    }, 
    plugins: { 
     f4m: { 
      url: 'http://releases.flowplayer.org/swf/flowplayer.f4m-3.2.9.swf', 

     }, 
     httpstreaming: { 
      url: 'http://releases.flowplayer.org/swf/flowplayer.httpstreaming-3.2.10.swf', 
     startLivePosition: true 
     }, 
     controls: { 
      // the 'tube' skin 
      url: 'http://releases.flowplayer.org/swf/flowplayer.controls-tube-3.2.15.swf' 
     }, 

     bwcheck: { 
      url: 'http://releases.flowplayer.org/swf/flowplayer.bwcheck-httpstreaming-3.2.12.swf', 
      dynamic: true, 
      // show the selected file in the content box 
      // usually omitted in production 
      onStreamSwitchBegin: function (newItem, currentItem) { 
       var content = $f('httpstreaming-dynamic').getPlugin('content'); 
       var message = 'Will switch to: ' + 
           newItem.streamName + 
           ' from ' + 
           currentItem.streamName; 
       content.setHtml(message); 
      }, 
      onStreamSwitch: function (newItem) { 
       var content = $f('httpstreaming-dynamic').getPlugin('content'); 
       var message = 'Switched to: ' + newItem.streamName; 
       content.setHtml(message); 
      } 
     }, 

     // a content box to display the selected bitrate 
     // usually omitted in production 
     content: { 
      url: 'http://releases.flowplayer.org/swf/flowplayer.content-3.2.8.swf', 
      bottom: 30, 
      left: 0, 
      width: 400, 
      height: 150, 
      backgroundColor: 'transparent', 
      backgroundGradient: 'none', 
      border: 0, 
      textDecoration: 'outline', 
      style: { 
       body: { 
        fontSize: 14, 
        fontFamily: 'Arial', 
        textAlign: 'center', 
        color: '#ffffff' 
       } 
      } 
     } 
    } 
}).ipad(); 
</script> 

답변

1

클립 구성에 "시작 : -1"지시문을 추가하십시오.

나를 위해 일했습니다!

clip { 
... 
    // directory where the manifest and video fragments are stored 
    baseUrl: 'http://stream.flowplayer.org/httpstreaming/', 
    live: true, 
    autoPlay: true, 
    start: -1 
},