From b6e8eef3abb5bbda5c0c4f47fe24c8e9d18686b4 Mon Sep 17 00:00:00 2001 From: Sattva Date: Fri, 12 Jan 2024 03:02:18 +0300 Subject: [PATCH] MediaPlayer - lua error solve - disable videos. Not sure yet how to play videos correctly in 3.3.5 --- Leatrix_Plus.lua | 13 ++++++++----- Leatrix_Plus_Media.lua | 24 ++++++++++++------------ 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 6f7e924..c4de822 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -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 diff --git a/Leatrix_Plus_Media.lua b/Leatrix_Plus_Media.lua index df4bad8..89e89e7 100644 --- a/Leatrix_Plus_Media.lua +++ b/Leatrix_Plus_Media.lua @@ -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,