How to start private video content from Cloudfront using RTMP using Flowplayer

Steps to play:

  • customize bucket S3
  • configure streaming disrtibution
  • create a cloud interface key pair
  • download .PEM file with RSA private key
  • generate XML from an RSA key using http://www.jensign.com/opensslkey/opensslkey.cs
  • download the file "testUnsecure.flv", set the ACL properties so that everyone can view it.
  • Customize your web page with the following java script:

    var p = flowplayer ("rtmpPlayer", {src: "flowplayer-3.1.5.swf", height: "480px"}, {plugins: {rtmp: {url: 'flowplayer.rtmp-3.1.3.swf', netConnectionUrl: 'rtmp: //s3py83uop6xa8x.cloudfront.net/cfx/st', objectEncoding: '0'}}, clip: {autoPlay: false, url: 'flv: testUnsecure', provider: 'rtmp'}});

  • It works!

Then he did the following:

  • Download testSecure.flv, set the ACL to make it private.
  • Create a signed URL and create a string. The url in javascript looks like this:

URL: 'FLV: testSecure% 3fExpires% 3d1277469187% 26Signature% 3dE5OleaO26fwLi6jIKTa4inc8I4P86AgTg5x8SmleTSTyf5C5AfnQyqaFXLDjiF0kiqdplhauA8Kw% 7eS37EpRBAn-aJrJScVlw7aZ-SAL24MTLMZ9foSkCd2ai9KjS8AuuweJRwPWmf4eLDpI4X4f3k3H7UUVcq8SX92ed5fCB91w_% 26Key-vapor-Id% 3dAPKAJUIBASIKTLFDSDFA'

. ....

- ,

  • URL- #?
  • Flowplayer JWPLayer ( , !)

- , URL: http://beckelman.net/post/2010/03/30/Policy-Signing-in-C-for-Streaming-Private-Content-From-Amazon-CloudFront.aspx

, 100 , , , .

+3
1

- - , , :

  • ( #, )
  • cloudberry S3 -
  • FLV (.. ), , - .

.

+5

Source: https://habr.com/ru/post/1751738/


All Articles