B4A Library VitamioB4A - a B4A-wrapper of the vitamio-plugin (advanced videoview-library)

yo3ggx

Active Member
Licensed User
Longtime User
Hi,
I have tried the following:
- download the source of your b4a vitamio wrapper library
- download the source code of the up-to-date vitamio library (from https://github.com/yixia/VitamioBundle)
- build an updated vitamio.jar file based on the library
- rebuild the b4a wrapper library to include the updated vitamio library (together with lib files), in order not to require installtion of vitamio plugin.

Running the b4a demo everything seems to be ok (no errors at all) except the fact that ... nothing can be seen or heard.

For sure I'm doing something wrong, but I don't know what..

Thanks,
Dan
 

moster67

Expert
Licensed User
Longtime User
I meant of course as a "free app" and then I think you as a developer can be considered an "individual". However if you add ads to your app (and make money), then I don't know... In either case, everything is very unclear and I suggest anyone using Vitamio (from version 4) should contact the publisher of the Vitamio-library to sort it out. However, the version posted in this thread should be OK since it only wraps version 1.

I don't know how it is around the world, but in Europe you cannot publish your apps (except freewares) without being an enterprise.

Unsure about this...in Italy you can be an individual/private person (without having a registered VAT-Number) and you can license your work to third parties. This is because that your software falls under the Copyright Act and in many bilateral tax-regulations the Copyright-Act is included. However, in this case, what regards Vitamio and its license, I think a similar scenario would be considered as an "enterprise". However, as mentioned, anyone who has doubts should write to the publisher of Vitamio.
 

yo3ggx

Active Member
Licensed User
Longtime User
Great!
This update is working, so I just have to recompile ffmpeg and build libarm.so with opus support.

Thanks,
Dan
 

Informatix

Expert
Licensed User
Longtime User
I meant of course as a "free app" and then I think you as a developer can be considered an "individual". However if you add ads to your app (and make money), then I don't know...

When I looked at the rules recently, I saw they were defined by the European Union, so I'm sure at 90% that you cannot earn money in Europe with a product of your own without being an enterprise (the product has been created to earn money, so it's a commercial product from a legal point of view), but I'm not a lawyer.

Unsure about this...in Italy you can be an individual/private person (without having a registered VAT-Number) and you can license your work to third parties.

In France, selling your work to a third party is also a different matter if you sell the rights (to distribute, to modify, to use, to resell, etc.) and, in this case, you do not need to be an enterprise. On the contrary, if you sell a copy of your software, you sell not a right but a product and it's a commercial act. I don't think it's different in Italy.
 

moster67

Expert
Licensed User
Longtime User
These are not easy subjects and as you say, many times a lawyer/tax-consultant is needed but very often they, too, have different opinions because not always the regulations are 100% clear and they can be interpreted differently

However, what you are saying about those rules defined by the European Union have gone unnoticed by me. Any chance you have a link so I may read further? Thanks.

I am aware we may be OT here but it is an interesting point
 

Informatix

Expert
Licensed User
Longtime User
However, what you are saying about those rules defined by the European Union have gone unnoticed by me. Any chance you have a link so I may read further? Thanks.
I recently gave a link in the french section of this forum but the text is in french. EDIT: all the links that I find in english are about selling on eBay, which is a different case. You should try to find some information in italian. Until now, I saw that the legal rule is the same in the UK (and they have apparently the same special status as we have in France, they call that a "sole-trader").
 
Last edited:

yo3ggx

Active Member
Licensed User
Longtime User
Great!
This update is working, so I just have to recompile ffmpeg and build libarm.so with opus support.

Thanks,
Dan

Tried for weeks without success. I've succeed at the end to build libffmpeg.so file with opus support, but including it in the libarm.so package, as described on Vitamio site does not work. For any file I try to play I get an error like:
Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 22612 (tamiobundledemo)

Trying the last libarm.so from VItamio site I get no playback at all, without any error.

There is any other possiblity to play an opus/ogg network stream in B4A?

Thanks,
Dan
 

andrewj

Active Member
Licensed User
Longtime User
Hi,
How do you use the built-in constants for video quality, zoom mode etc. (e.g. VIDEOQUALITY_HIGH). Are these defined in the library?
Thanks
Andrew
 

jazzzzzzz

Active Member
Licensed User
Longtime User
Is there any way to play 2 videos simultaneously using vitamio...?????

I have tried it but som glitches are coming....please someone help...
 

moster67

Expert
Licensed User
Longtime User
Last edited:

dibesw

Active Member
Licensed User
Longtime User
I have tried this for play DVR cam.
My DVR have 8 cam.
B4X:
vv.LoadVideo("http","rtsp://192.168.1.94:554/user=admin&password=1234&channel=5&stream=0.sdp")
Video start well (I can see image) but it's locked and does not go forward.
Is there a way for solve it?

THANKS.
 

aidymp

Well-Known Member
Licensed User
Longtime User
HI, trying the example project with this B4A gives this error?

B4X:
B4A version 4.30
Parsing code.                           0.00
Compiling code.                         0.01
   
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.                 0.00
Generating R file.                      0.03
Compiling generated Java code.          Error
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Error occurred during initialization of VM
Could not reserve enough space for object heap

Whats the problem with this?

Thanks

Aidy
 

BarryW

Active Member
Licensed User
Longtime User
I run you demo the i got an error "Unfortunately, Vitamiodemo has stopped"

Any advice?

Asus Zenfone 5 (Kitkat)
 

moster67

Expert
Licensed User
Longtime User
No.
You would need to download the html-source and then parse the source to obtain the links (and store them somewhere - maybe a list) and then pass a link (one a time).

BTW: this is an old library. See my earlier post about alternative libraries. You could also try the new (experimental) VLC-wrapper. Just search the forum for "vlcb4a". Even with these newer libraries, you still need to handle the links as mentioned above.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…