LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
When I use the player and close to Windows. For a person who doesn't have "livecode" it doesn't work and shows a white screen! I checked which 5 users.
How can this be solved?
on mouseDown
put specialFolderPath("engine")&"/myVideo.mp4" into t_source
set the filename of player "playerOpen" to t_source
set the currentTime of player "playerOpen" to 0
start player "playerOpen"
end mouseDown
I've found that on Windows, sometimes videos play in a 32-bit standalone but not in a 64-bit standalone and it seems to have something to do with the codecs.
if you have added the video(s) to yur Windows runtime via
-> Standalone Applicatiuon Settings -> Copy files...
then you will find them in -> specialfolderpath("resources")
So this should work:
on mouseUp
put specialFolderPath("resources") &"/myVideo.mp4" into t_source
set the filename of player "playerOpen" to t_source
set the currentTime of player "playerOpen" to 0
start player "playerOpen"
end mouseUp
...
put specialFolderPath("resources") &"/myVideo.mp4" into t_source
answer (there is a file t_source)
## Should give you TRUE in the dialog
...
If you get FALSE then the video is not where you exspect it!?
if you have added the video(s) to yur Windows runtime via
-> Standalone Applicatiuon Settings -> Copy files...
then you will find them in -> specialfolderpath("resources")
The above definitively works, I'm using it all the time.
lIvecode on Microsoft Windows uses DirectShow (in LC 9.6.x) which has limited CODEC support (meaning there are a limited number of file media file formats and internal encoding of audio and video data that are supported under DirectShow). Livecode on macOS uses Apple Video FOundation (AVF) which comes with a much wider range of CODECs, so media files that play on macOS may not play under Windows. [NOTE: there are formats that are specific to each platform as well.]
We recommend/require our customers to also install the free LAV filters on WIndows (https://github.com/Nevcairiel/LAVFilters/releases). This a free set of additional CODEC for DirectShow that mostly provide parity between formats supported under macOS and Windows.
With some release of Livecode 10.0.0, LC is switching from DirectShow on Windows to Windows Media Framework (WMF) which also has more of a parity between formats supported across platforms, at which point a 3rd party set of CODECs like the LAV Filters will no longer be needed.
Now everything is clear . My computer had LAV filters installed and theirs did not. Thanks!
Which format do you most recommend that will work on both Mac and Windows without the requirement to install LAV filters?
We built a spreadsheet of the formats supported by AVF (changes from macOS version to version) and LAV Filters + Directshow and took the intersection of formats supported by both for what was openable in our application.
I just tried finding that speadsheet on my computer and no luck. Sorry. I can check around later in the week and see if it is archved somewhere.