Video-Player LiveCode on Windows

R.H. roland.huettmann at gmail.com
Mon Oct 21 17:22:48 EDT 2019


I am using Windows 10, 64bit, latest update. I am using an Indy license.
I am working with LC v9.5.0 Build 15503.

Until Christmas I need to develop a small application for music performers
and highly controlled playing of video and audio. I am not too experienced
with LC's video/audio player capabilities. So i tested.

Since I am almost exclusively using the MP4 format, I tried to display
videos that work on all other players (Windows Media Player, VLC, Movies &
TV, any HTML player), in LC they do not play. Everwhere else, they do.

The provided sample video of the player "C:/Program Files/RunRev/LiveCode
Indy 9.5/Resources/Sample.mpg" works. But it is an .mpg file. If nothing
else works, I have to convert all videos to MPEG?

OK. I installed a separat codec on my Windows system. MP4 partially started
to work. But most of the time, it does not. Only sound is played, but no
video. But even with installed codec that support all kinds of video and
audio formats, the LC player does not play .akp or .webm files.

In my application it is essential to loop through segments of the video
multiple times. The "loop" function cannot be used here as it can not be
defined to loop a specified number of times through a segment defined by
start-time and stop-time and be user controlled. I just tried a repeat loop
that calls the player repeatedly. First, it did not work. But then the
solution: The player first must have stopped and must have sent a stop
message that can be retrieved from the handler "on playstopped" to start
playing again. I am setting a global gVideoEnded. Then starting another
play segment loop is possible with a "wait with messages" command waiting
for the global flag set to be true. The solution worked with some small MP4
files.

But bigger video files (also smaller ones) seem to create problems. For the
first time, the video may (or may not) play, but then it may completely
stop and not play again. No other video then can be played. Even reloading
the same video file will not work then.

Often, at this point, the LC IDE stops working and I have to force-quit and
restart.

Also, from a huge number of local MT4 videos, only a small part will show
video while the sound usually plays.

To me it appears that either this new version of LC is not working with
this player on Windows the way it should, or it is a general bug with the
player, or something is wrong with me.

I am just asking if anybody experienced problems playing MP4 videos on
Windows. I am really interested to know. If it the current player is too
buggy then I have to use a Javascript player or play with ffmeg (very nice
utility). I cannot spend days or weeks trying to find out what is going
wrong. Any experiences playing video in the browser widget?

Any other experiences with playing .webm or .akp video files?

If others here have same or similar problems and there is no bug report, I
will post a bug report. I could not find recent bugs for the player object
on Windows describing this problem.

Roland



More information about the use-livecode mailing list