SDraw Posted February 19, 2015 Share 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? Link to comment
SDraw Posted February 21, 2015 Author Share 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 Link to comment
MIKI785 Posted February 22, 2015 Share 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. Link to comment
Castillo Posted February 22, 2015 Share 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. Link to comment
SDraw Posted February 23, 2015 Author Share 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 Link to comment
ixjf Posted February 23, 2015 Share 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? Link to comment
SDraw Posted February 23, 2015 Author Share 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 ¯\_(ツ)_/¯ Link to comment
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