SDraw Posted February 19, 2015 Posted February 19, 2015 Just having fun with libVLC Video renders on texture, so it can be used in shaders/material lines/etc. So, continue or not? SDraw
SDraw Posted February 21, 2015 Author Posted February 21, 2015 Test build: https://dl.dropbox.com/s/desbynxsm2m36e ... ration.zip Functions: - vlcCreatePlayer(element texture,string filepath,int sizex,int sizey) returns true if player was created, false otherwise - vlcPlay() returns true if player was launched, false otherwise - vlcStop() returns true if player was stopped, false otherwise - vlcGetState() returns current state States: VLC_STATE_NONE 0 VLC_STATE_PLAY 1 VLC_STATE_PAUSE 2 VLC_STATE_STOP 3 VLC_STATE_CREATED 4 - vlcSetVolume(float volume) Sets volume of video. Returs true if success, false otherwise. - vlcDestroyPlayer() returns true if player was destroyed successfully, false otherwise. Events: - onVLCPlayerReachedEnd triggered when vlc player reaches end of video Test resource and debug libraries are included. Update: https://dl.dropbox.com/s/ol3pq1g3dwl81i ... n_upd2.zip Fixed vlc player can't be stopped if resource, that has called vlc player, is being unloaded SDraw
MIKI785 Posted February 22, 2015 Posted February 22, 2015 It's nice but if it's unable to stream video files than it's kind of useless since people would have to download the whole video before it could be played and some files can be very large unless it's just few seconds long. Lua Scripter Owner of mshost.cz MTA portal.
Castillo Posted February 22, 2015 Posted February 22, 2015 Isn't this quite useless? since with the new browser functions being added to MTA 1.5, we'll be able to play videos like you are doing here. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
SDraw Posted February 23, 2015 Author Posted February 23, 2015 Isn't this quite useless? since with the new browser functions being added to MTA 1.5, we'll be able to play videos like you are doing here.Good for you)Last update: https://dl.dropbox.com/s/c4z7kj7ruqvjaz ... c_upd3.zip - Video volume depends on MTA volume - Changed function: vclCreatePlayer(element texture, string filepath) - Texture should be a child of resource that calls vlcCreatePlayer. There won't be any updates. Have fun with CEF, if you don't like this integration SDraw
ixjf Posted February 23, 2015 Posted February 23, 2015 It seems like you are upset with the opinions of the other users. If you didn't want to get this kind of answer, perhaps you shouldn't have asked. It is good work, but it is indeed pointless with CEF integration coming soon to MTA. In fact, it's been around for quite a while, how could you have not heard of it? I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
SDraw Posted February 23, 2015 Author Posted February 23, 2015 It seems like you are upset with the opinions of the other users.Naaah, I'm not upset but it is indeed pointless with CEF integration coming soon to MTA. In fact, it's been around for quite a while, how could you have not heard of it?I heard about it and I know what it is and how it works. But I see that people push themself towards using CEF and learning HTML5. Well, I can't stop them ¯\_(ツ)_/¯ SDraw
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now