Hello.
I’m trying to test VideoFrames with local videos. So far it has only worked once yesterday with one video.
All I know is that I’m supposed to use .webm files, but apparently it goes even further cause most of them are not working. I also need a specific supported video & audio codec.
Does anyone happen to know what those supported video and audio codecs are? The videos I’m using are 1280 by 720, I get no errors when playing the videos, they just leave me with a blank VideoFrame when played.
(This is the script I use to play the videos, 100% sure that the script itself is not the issue.)
local Test = {};
function Test:Load()
print("1280 by 720 Videoframe testing.");
local ScreenGui = Instance.new("ScreenGui");
ScreenGui.Parent = game:GetService("Players").LocalPlayer.PlayerGui;
local VideoFrame = Instance.new("VideoFrame");
VideoFrame.Parent = ScreenGui;
VideoFrame.AnchorPoint = Vector2.new(0.5, 0.5);
VideoFrame.BorderSizePixel = 0;
VideoFrame.Position = UDim2.new(0.5, 0, 0.5, 0);
VideoFrame.Size = UDim2.new(0, 1280, 0, 720);
VideoFrame.Looped = true;
VideoFrame.Volume = 1;
VideoFrame.Video = "rbxassetid://";
VideoFrame:Play();
end;
Test:Load();
return Test;