Results 1 to 10 of 10

Thread: Multiple Vods3 operations with different Keys

  1. #1

    Default Multiple Vods3 operations with different Keys

    Hey all,

    I need to stream videos from four different S3 buckets, considering that each bucket have diferent users, AWS Access Keys and AWS Secret Keys.

    Example:

    Bucket User AWSAcessKey AWSSecretKey
    Bucket1 john AJRHTUHGTHSK IshdsRece+ijukhd
    Bucket2 mary JENHTUSJHHEJS jdasDadsddksdsk
    Bucket3 paul KJSNDBDHEISOO loHFHsjdsdJdssds
    Bucket4 ringo EHDNFFJEKSNSE r43fgjhaSDAQass

    Considering I'm using the vods3 application:

    What do I have to do?
    I have to multiply the vods3 applications and generate four vods3 different applications or can I use the same vods3 applications to stream from different buckets?

    If I can use the same vods3 to stream from different bucket, where do i set the different AWSKeys??

    Thank you in advance for all the support.

    Regards,

    RMinari

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    RMinari,

    I don't think there is a way to do this right now. You can stream from any number of different S3 buckets, but only one can require authentication. The others have to open.

    Richard

  3. #3

    Default

    OK Richard.

    I will have to find another way to separate my operations.

    thank you for your prompt answer.

    Regards,

    Ricardo

  4. #4

    Default

    Richard,

    I'm trying to figure out a way to make this thing happens without loosing my security.

    In the same context, if I protect all the buckets using the same user and the same AWSKeys, you think I could stream from different S3 secured buckets?

    Example:

    Bucket User AWSAcessKey AWSSecretKey
    Bucket1 john AJRHTUHGTHSK IshdsRece+ijukhd
    Bucket2 john AJRHTUHGTHSK IshdsRece+ijukhd
    Bucket3 john AJRHTUHGTHSK IshdsRece+ijukhd
    Bucket4 john AJRHTUHGTHSK IshdsRece+ijukhd

    Regards,

    RMinari

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Yes, if all the buckets are in the same account, it will work

    Richard

  6. #6

    Default

    Richard,

    I've made the changes, but now I just can play videos from the first bucket.

    Considering the configuration I describe hereunder, nowadays I just can play JOHN's Videos and not MARY's.

    When I access John's URL from my iPad, it plays perfect.
    When I access Mary's URL from my iPad, it seems that will play, but doesn't start. I get a black screen with no message. Seems that it finds the video, but don't get to be authorized to play.

    Please, consider the configuration I describe hereunder:

    Following you find how everything is configured:

    1 - S3 BUCKETS NAMES (Both using the same user and same AWS Keys in the same account)

    johnsecured (JOHN's S3 BUCKET)
    marysecured (MARY's S3 BUCKET)

    2 - aliasmap.play.txt

    --- BEGIN OF FILE --------

    #JOHN BUCKET
    john/*=amazons3/johnsecured/${Wildcard.Match1}
    flv:john/*=flv:amazons3/johnsecured/${Wildcard.Match1}
    mp3:john/*=mp3:amazons3/johnsecured/${Wildcard.Match1}
    mp4:john/*=mp4:amazons3/johnsecured/${Wildcard.Match1}
    mobile:john/*=mp4:amazons3/johnsecured/${Wildcard.Match1}/playlist.m3u8

    #MARY BUCKET
    mary/*=amazons3/marysecured/${Wildcard.Match1}
    flv:mary/*=flv:amazons3/marysecured/${Wildcard.Match1}
    mp3:mary/*=mp3:amazons3/marysecured/${Wildcard.Match1}
    mp4:mary/*=mp4:amazons3/marysecured/${Wildcard.Match1}
    mobile:mary/*=mp4:amazons3/marysecured/${Wildcard.Match1}/playlist.m3u8

    # commented out *=${Stream.Name}

    ----- END OF FILE -------

    3 - Video URLs (to play in iOS)

    http://content.lledd.tv/vods3/_defin.../playlist.m3u8

    http://content.lledd.tv/vods3/_defin.../playlist.m3u8

    (just example URLs, they are not real)

    4 - SERVER.XML

    The AWS Keys are registered inside Server.XML properties section:

    ...
    ...
    ...
    <Properties>

    <Property>
    <Name>awsAccessKeyId</Name>
    <Value>JSADKASDKSADKK</Value>
    </Property>
    <Property>
    <Name>awsSecretAccessKey</Name>
    <Value>ySFDSAjjuu+urj45jshd</Value>
    </Property>
    </Properties>

    (just example AWS Key, they are not real of course.. )

    Waiting for your considerations,

    Thanks for all your support,

    RMinari
    Last edited by rminari; 05-04-2012 at 02:16 PM.

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Using the current version of MediaCache, the AWS keys are set in the /conf/MediaCache.xml file.

    Richard

  8. #8

    Default

    So, I have to use MediaCache in order to make it happen?

  9. #9
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Right, but vods3 is MediaCache. It was always based on MediaCache, but the current version includes configuration file /conf/MediaCache, where the AWS keys are placed and you can define any content store. With all bucket in one account, you can do what you want. And you should not need all those alias rules.

    Richard

  10. #10

    Default

    OK, I will upgrade my vods3 and try again!

    Thanks a lot for all your support.

    Regards,

    RMinari

Similar Threads

  1. How to reduce the number of disk IO operations while recording and playback
    By DenisC in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 02-03-2014, 08:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •