Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python integration to upload video/image and get direct link to play/display video/image #2688

Open
SnpGroup opened this issue Oct 17, 2024 · 1 comment
Assignees
Labels
bindings Related to bindings to other programming languages question Questions about usage, configurations, or issues that don’t clearly classify as bugs

Comments

@SnpGroup
Copy link

can you please guide me to documentation for python integration to upload video/image and get direct link to play/display video/image?

I could found simple import example, but how to use it is missing.

@sergiohs84
Copy link
Contributor

Hi @SnpGroup .

First of all, be aware that any direct link to a file in MEGA will require a MEGA client in order to decrypt the downloaded/streamed file. For instance, a file link like https://mega.nz/<public_handle># provides access to the file, but it still needs decryption.
Note that our website allows to do so by modifying the link (note the embed/) : https://mega.nz/embed/<public_handle># will make it possible.

That said, my suggestion is that first you import/upload the file to your cloud and later on you can create a link by calling the function exportNode(). It should provide you the link.

If you are running our command-line example through Python as explained here, you can:

  1. login
  2. put <local_file>
  3. export <uploaded_file>

@sergiohs84 sergiohs84 added the question Questions about usage, configurations, or issues that don’t clearly classify as bugs label Nov 7, 2024
@sergiohs84 sergiohs84 self-assigned this Nov 7, 2024
@sergiohs84 sergiohs84 added the bindings Related to bindings to other programming languages label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings Related to bindings to other programming languages question Questions about usage, configurations, or issues that don’t clearly classify as bugs
Projects
None yet
Development

No branches or pull requests

2 participants