Reputation: 430
If I try to use the video element on shoes 3.8, player borders will be completely transparent.
Before to play the video, the player looks fine:
But when I play the video, player sides will become transparent:
If I stop the video instead, the whole player will become transparent.
I can pass VLC options as well, so may is there a transparency option for VideoLan?
I tried to check VLC Docs but there are tons of options and i'm not good in video embeddings.
This is my code:
require "shoes/videoffi"
Shoes.app :width => 1024, :height => 768 do
stack :fill => true, :margin => 4, :width =>640, :height => 320 do
@vid = video "D:\\Download\\1.mp4", vlc_options: ["--xlib", "--video-on-top"], autoplay: false
end
if @vid.loaded == true
#@vid.play
end
flow {
button ("play") {@vid.play}
button ("pause") {@vid.pause}
button ("stop") {@vid.stop}
}
end
Upvotes: 0
Views: 45