as I not found an answer in the forum that solves my case post a new topic.
Feel free also to link another topic that could help.
I tried to play a movie in a player object the movie should be loaded from the Applications Subfolder so the file path in the end is: "theApplicationsFolder/Library/Application Support/Videos/fi_SVK/A.mp4"
if I use specialFolderPath("engine") and play with with "play videoClip" then the video runs in the native movie player but I never get the movie running in the object "player" (in the code as comment"
No matter where I save my video. in the Apps root ("engine"), in the "Documents" or the "Library"
-> "play videoClip" as full screen works but the player "MoviePlayer" shows nothing.
what I do wrong?
Code: Select all
on playVideofromPath tFileType, tLetter, tSpezFolderType
put specialFolderPath(tSpezFolderType) & "/Application Support/Videos/fi_SVK/" & tLetter & tFileType into tVideoFile
set the filename of player "MoviePlayer" of this card to tVideoFile
play videoClip tVideoFile
-- play player "MoviePlayer"
answer "the filename of player:" && the filename of player "MoviePlayer" & return & return & \
"tVideoFile:" && tVideoFile
end playVideofromPath
on playVideofromEnginePath tFileType, tLetter
put specialFolderPath("engine") & slash & tLetter & tFileType into tVideoFile
set the filename of player "MoviePlayer" of this card to tVideoFile
play videoClip tVideoFile
-- play player "MoviePlayer"
answer "the filename of player:" && the filename of player "MoviePlayer"
end playVideofromEnginePath