I am working on a simple app that will play a downloaded video when I navigate from a home page to a new page. Think about being in a museum and pressing a button on an ipad. I want to go to a new page and play a video. I would like to beable to return to the home page by pressing a button.
My problem is that when I navigate back to the home screen the video will not stop playing.
I have been unable to find any tutorials about using blocks to trigger the video player to play when using a downloaded video. Here are screen shots of my pages. I would appreciate any help you can offer.
You just posted your issue a few hours ago. We are here all users like you. When anyone of the users who faced a similar issue reads your post, will respond to you.
Until then, it is better to provide more info such as the event you have in your codes to start the video because I don’t see any blocks related to video in the images you shared.
Right now I am looking for some guidance in setting up a code block to start the video when I open the page. Right now the video starts when the page open with no code blocks necessary, however, then no code thread to stop it. I will continue to work on it and post any progress I make.
Thanks so much for your reply. I am feeling a bit lost at the moment. I appreciate your support.
I just made a quick project with two screens and a video and a button in the first screen and just a button in the second screen to go back to the first screen.
Thanks so much for your help Muneer. This is leading me to the right direction. I will post solved as soon as I can work out the bugs. Thanks so much for your time and effort.
Yes, this is correct.
The block to assign a video file to the video player is in the Screen Opens event. So every time you navigate back to the screen it will start playing.
If this is not the wanted behavior then you can adjust the blocks to reflect what you want.