Skip to content

Conversation

@leviwilson
Copy link

When using an S3 presigned URL, you cannot obtain a URL for a private object that allows
for both a GET and a HEAD request on it.

Because of this, you need to:

  head_url = object.presigned_url(:head)
  get_url = object.presigned_url(:get)

...independently of one another.

This means that you cannot get media information with this gem.

To allow for this, I've added an option to pass in a custom head_url: argument to allow
for this separation.

In this manner, you can now do this:

  movie = FFMPEG::Movie.new(object.presigned_url(:get), head_url: object.presigned_url(:head))

And obtain your information successfully.

When using an S3 presigned URL, you cannot obtain a URL for a private object that allows
for both a GET and a HEAD request on it.

Because of this, you need to:

  head_url = object.presigned_url(:head)
  get_url = object.presigned_url(:get)

...independently of each other.

This means that you cannot get media information with this gem.

To _allow_ for this, I've added an option to pass in a custom head_url: argument to allow
for this separation.

In this manner, you can now do this:

  movie = FFMPEG::Movie.new(object.presigned_url(:get), head_url: object.presigned_url(:head))

And obtain your information successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant