MediaPlayer - lua error solve - disable videos.

Not sure yet how to play videos correctly in 3.3.5
This commit is contained in:
Sattva
2024-01-12 03:02:18 +03:00
parent c659e95b6e
commit b6e8eef3ab
2 changed files with 20 additions and 17 deletions
+8 -5
View File
@@ -14636,15 +14636,18 @@
uframe:RegisterEvent("LOADING_SCREEN_DISABLED")
return
elseif strfind(item, "|r") then
--print(item)
-- A movie was clicked
local movieName, movieID = item:match("([^,]+)%|r([^,]+)")
--print(movieName)
movieID = strtrim(movieID, "()")
if IsMoviePlayable(movieID) then
--if IsMoviePlayable(movieID) then
stopBtn:Click()
MovieFrame_PlayMovie(MovieFrame, movieID)
else
LeaPlusLC:Print("Movie not playable.")
end
MovieFrame_PlayMovie(MovieFrame, movieName)
print("Movies are not yet supported in 3.3.5 backport.")
--else
-- LeaPlusLC:Print("Movie not playable.")
--end
return
else
-- A zone was clicked so show track listing