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
+12 -12
View File
@@ -191,18 +191,18 @@
"musical moments/gloomy/gloomy01.mp3#36",
}) -- Mystery1:10
Zn(L["Various"], L["Various"], L["Cinematics"], {"|cffffd800" .. L["Various"] .. ": " .. L["Cinematics"], prefol,
-- World of Warcraft
"|cffffd800", "|cffffd800" .. L["World of Warcraft"],
"cinematics/logo.mp3#27",
"cinematics/wow_intro.mp3#170",
-- The Burning Crusade
"|cffffd800", "|cffffd800" .. L["The Burning Crusade"],
"cinematics/wow_intro_bc.mp3#167",
-- Wrath of the Lich King
"|cffffd800", "|cffffd800" .. L["Wrath of the Lich King"],
"cinematics/wow_intro_lk.mp3#198",
"cinematics/wow_wrathgate.mp3#265",
"cinematics/wow_fotlk.mp3#231",
---- World of Warcraft
--"|cffffd800", "|cffffd800" .. L["World of Warcraft"],
--"cinematics/logo.mp3#27",
--"cinematics/wow_intro.mp3#170",
---- The Burning Crusade
--"|cffffd800", "|cffffd800" .. L["The Burning Crusade"],
--"cinematics/wow_intro_bc.mp3#167",
---- Wrath of the Lich King
--"|cffffd800", "|cffffd800" .. L["Wrath of the Lich King"],
--"cinematics/wow_intro_lk.mp3#198",
--"cinematics/wow_wrathgate.mp3#265",
--"cinematics/wow_fotlk.mp3#231",
})
Zn(L["Various"], L["Various"], L["Credits"], { "|cffffd800" .. L["Various"] .. ": " .. L["Credits"], prefol,