HowTo: Using PlayVideo from Interop in SDApi for Smart Devices

Official Content
This documentation is valid for:

This article will show you how to use this method in a Smart Device Application.

The following transaction with the Work With for Smart Devices pattern applied is going to be used.

PlayVideoTRN

Important: In this sample, Video is a Domain based on URL Domain. It is NOT the standard Video data type.

PlayVideoTRNPattern

The method PlayVideo from Interop expects the following parameter/s:

PlayVideoInterop

Let´s define a button on our WWSD which will let us watch a Video.

1. Select the general section node.

Add the action:

PlayVideoAddAction

2. Ater the Action is added to our tree of actions we will have to add the behavior we need. To do so, first double-click on the action. That will take you to the event for that action.
In the event, we will call the method play Video from the External Object Interop and will pass a parameter. In this case, we have an attribute with the domain video, which is a URL data type so we have to send that attribute as a parameter.

Event 'Play'
      Interop.PlayVideo(TRNMultimediaVideo)
EndEvent

 

Lastly add this action into de Application Bar on the View mode of the Section General.

PlayVideoActionBar

Examples

Android

PlayVideoAndroid1

PlayVideoAndroid2

 


 


Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.