Jump to content

libVLC: Continue or not?


SDraw

Recommended Posts

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

RR5ISLE.png

Link to comment
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 :wink:

Link to comment

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...