After playing video, it shows white screen

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

After playing video, it shows white screen

Post by pkmittal » Tue Mar 22, 2016 12:44 pm

Hi, I am using following command to play video. Video is located locally.

Code: Select all

set the filename of player "Player" to videoPath
start player "Player"
After the video has finished playing, it shows the white screen. I would like the video to either stay at end or it come to the initial position but it should stop there and not play... (like what happends on other site when you play video)

Please let me know what is the best practice to make it work. I am thinking of using images and set the visible property to false or true.. but i do not think that is the best solution as i am going to use multiple videos..

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: After playing video, it shows white screen

Post by Klaus » Tue Mar 22, 2016 2:03 pm

Hi pkmittal,

are you saying that the "white screen" you are seeing is NOT the last frame of your video?
What version of LC are you using and on what platform?

Whatever, you could catch the "playstopped" message and at that point compare if:
...
the currenttime of player xyz = the duration of player xyz
# Means this video has ended!
..
And then simply set the currenttime to 0 again, so we see the first frame of that video.
Know what I mean?


Best

Klaus

pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

Re: After playing video, it shows white screen

Post by pkmittal » Thu Mar 24, 2016 8:18 am

Thanks It works well.

Post Reply