Using Video Directive

5 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€43.40
List Price:  €60.77
You save:  €17.36
£37.48
List Price:  £52.48
You save:  £14.99
CA$68.46
List Price:  CA$95.85
You save:  CA$27.39
A$70.51
List Price:  A$98.72
You save:  A$28.21
S$63.87
List Price:  S$89.43
You save:  S$25.55
HK$391.80
List Price:  HK$548.56
You save:  HK$156.75
CHF 39.32
List Price:  CHF 55.06
You save:  CHF 15.73
NOK kr481.25
List Price:  NOK kr673.79
You save:  NOK kr192.54
DKK kr324.35
List Price:  DKK kr454.12
You save:  DKK kr129.76
NZ$85.55
List Price:  NZ$119.78
You save:  NZ$34.22
د.إ183.58
List Price:  د.إ257.03
You save:  د.إ73.45
৳6,126.79
List Price:  ৳8,578
You save:  ৳2,451.20
₹4,617.80
List Price:  ₹6,465.29
You save:  ₹1,847.48
RM195.86
List Price:  RM274.22
You save:  RM78.36
₦68,251.34
List Price:  ₦95,557.34
You save:  ₦27,306
₨13,948.23
List Price:  ₨19,528.64
You save:  ₨5,580.41
฿1,617.32
List Price:  ฿2,264.38
You save:  ฿647.05
₺2,209.82
List Price:  ₺3,093.92
You save:  ₺884.10
B$261.80
List Price:  B$366.55
You save:  B$104.74
R834.19
List Price:  R1,167.93
You save:  R333.74
Лв84.92
List Price:  Лв118.90
You save:  Лв33.97
₩74,526.78
List Price:  ₩104,343.45
You save:  ₩29,816.67
₪155.46
List Price:  ₪217.65
You save:  ₪62.19
₱2,985.20
List Price:  ₱4,179.52
You save:  ₱1,194.31
¥7,954.93
List Price:  ¥11,137.54
You save:  ¥3,182.61
MX$882.70
List Price:  MX$1,235.86
You save:  MX$353.15
QR182.51
List Price:  QR255.53
You save:  QR73.01
P680.84
List Price:  P953.23
You save:  P272.39
KSh6,478.70
List Price:  KSh9,070.70
You save:  KSh2,592
E£2,618.65
List Price:  E£3,666.32
You save:  E£1,047.66
ብር7,865.29
List Price:  ብር11,012.04
You save:  ብር3,146.74
Kz45,597.42
List Price:  Kz63,840.04
You save:  Kz18,242.62
CLP$45,445.45
List Price:  CLP$63,627.27
You save:  CLP$18,181.81
CN¥344.27
List Price:  CN¥482
You save:  CN¥137.73
RD$3,047.83
List Price:  RD$4,267.21
You save:  RD$1,219.37
DA6,609.25
List Price:  DA9,253.48
You save:  DA2,644.23
FJ$110.57
List Price:  FJ$154.81
You save:  FJ$44.23
Q382.71
List Price:  Q535.83
You save:  Q153.11
GY$10,452
List Price:  GY$14,633.64
You save:  GY$4,181.63
ISK kr6,226.25
List Price:  ISK kr8,717.25
You save:  ISK kr2,491
DH469.09
List Price:  DH656.77
You save:  DH187.67
L872.12
List Price:  L1,221.04
You save:  L348.92
ден2,676.77
List Price:  ден3,747.70
You save:  ден1,070.92
MOP$402.69
List Price:  MOP$563.80
You save:  MOP$161.10
N$840.01
List Price:  N$1,176.08
You save:  N$336.07
C$1,837.35
List Price:  C$2,572.44
You save:  C$735.08
रु7,369.20
List Price:  रु10,317.47
You save:  रु2,948.27
S/172.36
List Price:  S/241.31
You save:  S/68.95
K215.30
List Price:  K301.44
You save:  K86.14
SAR187.61
List Price:  SAR262.67
You save:  SAR75.06
ZK972.38
List Price:  ZK1,361.42
You save:  ZK389.03
L221.13
List Price:  L309.60
You save:  L88.47
Kč1,061.17
List Price:  Kč1,485.73
You save:  Kč424.55
Ft16,958.38
List Price:  Ft23,743.09
You save:  Ft6,784.71
SEK kr464.99
List Price:  SEK kr651.03
You save:  SEK kr186.03
ARS$69,811.51
List Price:  ARS$97,741.71
You save:  ARS$27,930.19
Bs346.26
List Price:  Bs484.80
You save:  Bs138.53
COP$184,235.57
List Price:  COP$257,944.55
You save:  COP$73,708.97
₡23,453.59
List Price:  ₡32,836.90
You save:  ₡9,383.31
L1,321.87
List Price:  L1,850.73
You save:  L528.85
₲324,096.70
List Price:  ₲453,761.32
You save:  ₲129,664.61
$U2,032.41
List Price:  $U2,845.54
You save:  $U813.12
zł185.18
List Price:  zł259.26
You save:  zł74.08
Already have an account? Log In

Transcript

Hello guys, welcome to the 23rd session of create custom access key using AWS lambda function tutorial for beginners. In this session we will see how to use video app to write this in our Alexa skill. We do have dot launched directive is used to streaming native video files in English or sport devices. Like audio player in video, we need to specify the URL of the video file. There are certain limitations for the video file such as it should be accessible via HTTPS. Currently, it supports only mp4 or Astra 264 codec.

Maximum resolution it can support is 1200 and 80 pixels. However, it does not support 4k. This video can contain playback controls titles and subtitle we can pause, resume stop and close commands, which will send a request to pose intent top intent reserve intent Better switch to Visual Studio code and modify whiskey. I'm going to add new intent named show video. To execute this intent user may say show video or play video. Let us create a new handler listen to it for a show video intent.

Also create constant for speech and my video player for the title and my favorite track details in the subtitle. Again, I have used s3 bucket to upload the video file Let's face it you are you responsible to generate a response? Use ad video app launch direct your method to add video directly. It will take three parameters video URL, title, and subtitle. here and generating video of directive without checking for supported interfaces. We must need to check that current device supports video playback or not.

For this, we need to check in index dot system dot device dot supported interfaces dot video app if it does not support video and display the message your device does not support video playback and register this handler. Now save the file and deploy a reskin. The need to enable video of interface for this key this interaction model Let us test it in simulator back over ski send requests to show video intent. However we got device does not support the message. The reason for this is that in request object it does not contains video I properties supported interface even after enabling, so we must need to test it in Ico show or spot. I have only ico.pi will be unable to show you it in device.

We do have directive is used to play video on the device. There are several restrictions for supported video format. We need to check for video after Supported interfaces. If the device supports it, then use add video app launch directory method and pass URL of the video file and option title and subtitle for creating metadata object. Thanks for watching this video. If you have any doubts, please feel free to contact me Have a nice day.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.