Using Ooyala Player Token with Ooyala iOS and Android SDKs
You can use the Ooyala Player Token for user authorization with Ooyala iOS and Android SDKs.
Using the Ooyala Player Token with an implementation of our iOS or Android SDKs works essentially the same as standard implementations with some small differences:
- Create a class that implements an EmbedTokenGenerator. See the following topics for instructions on implementing an OOEmbedTokenGenerator for iOS and Android.
- Pass a reference from your created class to the player constructor.
- Add the following getTokenForEmbedCodes method:
public void getTokenForEmbedCodes (List<String> embedCodes, EmbedTokenGeneratorCallback callback)
- Inside the getTokenForEmbedCode method, call the callback .setEmbedToken(token), where token is a valid Ooyala player token for the list of embed codes.