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

video.getPlay() returns null #275

Closed
LinkOut opened this issue Dec 14, 2017 · 4 comments
Closed

video.getPlay() returns null #275

LinkOut opened this issue Dec 14, 2017 · 4 comments

Comments

@LinkOut
Copy link

LinkOut commented Dec 14, 2017

Issue Summary

As docs suggesting, i'm trying to get the Play object using: Play play = video.getPlay(); but this always returns null...

Any suggestions?

I've followed the docs correctly and i'm using a token auth..

Thanks

@howardrigberg
Copy link
Contributor

The Play object is not currently publicly available. It is used internally by Vimeo. Our default readme is admittedly confusing since it does not point to the readme for the current public version of our library: v1.1.1. Your can review the appropriate version of the documentation here:

https://github.com/vimeo/vimeo-networking-java/tree/v1.1.1-release#how-do-i-play-a-video

If you have a PRO account, you should have access to an array of VideoFile objects for your own videos at video.files. Otherwise, the only way to play a video is by using the video.embed which will give you an Embed object. Regardless of your account level, you can only play videos for other users using the Embed object.

@RobertJWChen
Copy link

Hi @howardrigberg ,

I have a pro account, and I followed the v1.1.1 readme document you mentioned to get the video_file
But the getPlay() return value and files were both null.
Does Vimeo remove the support for this function?

Thanks a lot!
Robert

@howardrigberg
Copy link
Contributor

@RobertJWChen, as I mentioned above, the Play object is not yet publicly available from our library.

Did you follow the instructions listed here:
https://github.com/vimeo/vimeo-networking-java/tree/v1.1.1-release#native-playback

If so, did you make sure to provide the video_links scope during initialization?

Be aware that you will only be able to use getLink from the video.files list for your own videos. You won't be able to get a video playback link for any videos other than your own.

@RobertJWChen
Copy link

@howardrigberg ,
I really appreciate your help. I found that my issue is caused by the authentication problem, so I generated a new access token in the app page and fixed the issue.

Thanks a lot for your help
Robert

@msya msya added question and removed question labels Jun 12, 2018
@msya msya closed this as completed Jun 12, 2018
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

No branches or pull requests

4 participants