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") uframe:RegisterEvent("LOADING_SCREEN_DISABLED")
return return
elseif strfind(item, "|r") then elseif strfind(item, "|r") then
--print(item)
-- A movie was clicked -- A movie was clicked
local movieName, movieID = item:match("([^,]+)%|r([^,]+)") local movieName, movieID = item:match("([^,]+)%|r([^,]+)")
--print(movieName)
movieID = strtrim(movieID, "()") movieID = strtrim(movieID, "()")
if IsMoviePlayable(movieID) then --if IsMoviePlayable(movieID) then
stopBtn:Click() stopBtn:Click()
MovieFrame_PlayMovie(MovieFrame, movieID) MovieFrame_PlayMovie(MovieFrame, movieName)
else print("Movies are not yet supported in 3.3.5 backport.")
LeaPlusLC:Print("Movie not playable.") --else
end -- LeaPlusLC:Print("Movie not playable.")
--end
return return
else else
-- A zone was clicked so show track listing -- A zone was clicked so show track listing
+12 -12
View File
@@ -191,18 +191,18 @@
"musical moments/gloomy/gloomy01.mp3#36", "musical moments/gloomy/gloomy01.mp3#36",
}) -- Mystery1:10 }) -- Mystery1:10
Zn(L["Various"], L["Various"], L["Cinematics"], {"|cffffd800" .. L["Various"] .. ": " .. L["Cinematics"], prefol, Zn(L["Various"], L["Various"], L["Cinematics"], {"|cffffd800" .. L["Various"] .. ": " .. L["Cinematics"], prefol,
-- World of Warcraft ---- World of Warcraft
"|cffffd800", "|cffffd800" .. L["World of Warcraft"], --"|cffffd800", "|cffffd800" .. L["World of Warcraft"],
"cinematics/logo.mp3#27", --"cinematics/logo.mp3#27",
"cinematics/wow_intro.mp3#170", --"cinematics/wow_intro.mp3#170",
-- The Burning Crusade ---- The Burning Crusade
"|cffffd800", "|cffffd800" .. L["The Burning Crusade"], --"|cffffd800", "|cffffd800" .. L["The Burning Crusade"],
"cinematics/wow_intro_bc.mp3#167", --"cinematics/wow_intro_bc.mp3#167",
-- Wrath of the Lich King ---- Wrath of the Lich King
"|cffffd800", "|cffffd800" .. L["Wrath of the Lich King"], --"|cffffd800", "|cffffd800" .. L["Wrath of the Lich King"],
"cinematics/wow_intro_lk.mp3#198", --"cinematics/wow_intro_lk.mp3#198",
"cinematics/wow_wrathgate.mp3#265", --"cinematics/wow_wrathgate.mp3#265",
"cinematics/wow_fotlk.mp3#231", --"cinematics/wow_fotlk.mp3#231",
}) })
Zn(L["Various"], L["Various"], L["Credits"], { "|cffffd800" .. L["Various"] .. ": " .. L["Credits"], prefol, Zn(L["Various"], L["Various"], L["Credits"], { "|cffffd800" .. L["Various"] .. ": " .. L["Credits"], prefol,