How to use the Youtube player in sketchware pro
How to use the Youtube player in sketchware pro
• Get the Blocks using this Link
https://t.me/sketchwareDuoedge/19341
• Get free Sketchware projects on my Telegram Channel
https://t.me/duoedgeProjects
•Check out the sketchware playlist with all sketchware tutorials,
• sketchware and sketchware pro
•Visit our sketchware tutorials blog
https://sketchwareprotutorials.blogsp…
#sketchware #sketchwaretutorials #sketchware_pro #Sketchware_Pro
#sketchwarepro #sketchwareofficial #sketchwareapp #sketchwaretutorial #sketchwarefreeproject #sketchwarebasic
#youtubeplayer
#DuoEdgestudios
#DuoEdge_Studios
#duoedgestudios
#duoedge_studios
Content
1.36 -> so today i'm going to load a video from
3.28 -> youtube in my project made by sketchware
5.359 -> pro
7.04 -> but before we continue please turn on
8.88 -> captions for this video
12.88 -> if you understand english then select
14.639 -> english auto generated
18.48 -> please follow up on what i'm about to do
20.32 -> so you get to know how it's done
27.039 -> so first let's drag the youtube player
28.88 -> widget on the action screen
32.21 -> [Music]
36.719 -> next let's go to concrete
38.5 -> [Music]
42.559 -> from here look for the youtube player
44.16 -> blocks and select
47.76 -> if you perhaps don't have these blocks
49.6 -> just click on the video card above
52.16 -> the video contains all the blocks
53.76 -> including the ones we are using now
58.399 -> the block full class mode helps to get
60.239 -> the video to full screen once shifted
67.6 -> next at the unstart event
73.27 -> [Music]
80 -> from here we will add the cycle of the
81.6 -> video and input its id
91.88 -> [Music]
96 -> to get the video id i'll head to my
98.84 -> channel
102.5 -> [Music]
113.6 -> i'll choose a video that i want to add
115.2 -> in a youtube widget
117.6 -> once chosen i'll click share and copy
119.52 -> its link
124.399 -> i'll use this link to get the video id
126.399 -> that i need
130.53 -> [Music]
136.319 -> this part of the link is the video id
138.879 -> it's what represents every video on
140.84 -> youtube
145.12 -> so we'll just remove the other parts
146.879 -> since it's not important
156.08 -> [Music]
164.65 -> [Music]
166.48 -> head to components and create a new
168.239 -> component called request network
171.81 -> [Music]
175.92 -> you can decide to add actions to the
177.519 -> youtube player whenever the connection
179.04 -> is lost
184.4 -> last but not least enable app compacting
186.8 -> design
188.98 -> [Music]
197.2 -> it's now time to run the project and see
199.12 -> if it works
204.239 -> in the meantime let's answer some
205.84 -> questions since we wait
214.51 -> [Music]
219.92 -> finally dx is running
230 -> once we open the app the youtube player
231.76 -> immediately starts to load
234.799 -> the thumbnail is the first thing to
236.239 -> always appear before you click on play
240.159 -> the player easily switches to full
241.68 -> screen because of the block we added to
243.439 -> oncreate
252.959 -> the widget supports the video's sound as
255.04 -> it plays the video
258.32 -> this means that any user can decide to
260.079 -> raise the device's media volume
261.84 -> to understand what goes on in the
263.199 -> youtube player
267.6 -> apart from that the developer benefits
269.44 -> in youtube's watch time
270.8 -> every moment the user plays the video
289.919 -> we've now come to the end of the video
291.52 -> but in the next tutorial we'll leave the
293.199 -> youtube player with an admin app online
Source: https://www.youtube.com/watch?v=Uo6Jf9A7veE