B4A Library VitamioBundle

warwound

Expert
Licensed User
Longtime User
VitamioBundle updated to version 4.111
(Previous version was 4.11).

This update adds a new method to the Vitamio_VideoView:

SetPlaybackSpeed (Speed As Float)
Set video and audio playback speed
Speed e.g. 0.8 or 2.0, default to 1.0, range in [0.5-2]


Updated library files available from:
http://b4a.martinpearman.co.uk/vitamiobundle/

Note that the library files are now named VitamioBundle-4-1-1.jar and VitamioBundle-4-1-1.xml, previously they were named VitamioBundle-4.1.1.jar and VitamioBundle-4.1.1.xml.
This fixes a problem with generation of the library documentation.
If upgrading to this new version be sure to delete the old files VitamioBundle-4.1.1.jar and VitamioBundle-4.1.1.xml.


Martin.
 

warwound

Expert
Licensed User
Longtime User
@androh I'll look at updating the library to version 4.2.0 but will be busy for a few days.
It'll probably be the weekend before i have time to look at it.

Martin.
 

warwound

Expert
Licensed User
Longtime User
VitamioBundle updated to version 4.2.0

@androh
I've updated the library to now wrap version 4.2.0 of the VitamioBundle and would like you to test it before i 'properly' upload it to this thread as a new version.

There's a couple of changes to note:
  • There is now just a single libarm.so library file, looks like we no longer have the option to choose either libarm_full.so or libarm_online.so.
    The VitamioBundle changelog makes no mention.
  • I've made use of the new B4A #AdditionalRes project attribute to define where the VitamioBundle android resources folder res is found.
    You no longer have to copy the VitamioBundle android resources to the Objects folder of any project that uses the VitamioBundle.
    This requires B4A version 3.20+.
    Any existing project that already contains the (old version) android resources will need those resources manually deleted from the project's Objects/res folder.
    Not deleting those android resources will not cause a problem BUT your compiled APK will be bloated with many MBs of unused resources.

Version 4.2.0 library files and demo project can be downloaded from: http://b4a.martinpearman.co.uk/vitamiobundle/.
VitamioBundle-4-2-0-library-files.zip and VitamioBundle-4-2-0-demo.zip are the files you want to download.

Let me have some feedback on this update and if it works ok i'll upload it as an 'official' update.

Martin.
 
Last edited:

charmander

New Member
Licensed User
Longtime User
can you addvitamiobundle's VideoView.setVideoHeaders function to your library? i want to send cookies for video streams.

because my online streams can only be watched if required cookies set. otherwise 403 code returns.
 

warwound

Expert
Licensed User
Longtime User
can you addvitamiobundle's VideoView.setVideoHeaders function to your library? i want to send cookies for video streams.

because my online streams can only be watched if required cookies set. otherwise 403 code returns.

Can you try this update and post again to let me know if it works?
I've wrapped the new VideoView method:

SetVideoHeaders(Headers As Map)

So you pass a Map containing string keys and values as the Headers parameter.

Martin.
 

jazzzzzzz

Active Member
Licensed User
Longtime User
Can you try this update and post again to let me know if it works?
I've wrapped the new VideoView method:

SetVideoHeaders(Headers As Map)

So you pass a Map containing string keys and values as the Headers parameter.

Martin.

i cant play any rtsp videos using your wrapper...but i can with this old library.

http://www.b4x.com/android/forum/th...gin-advanced-videoview-library.19329/#content

could u check that please...For checking it you can use vlc to make video streaming...or can use any tv channel links available in internet
 

warwound

Expert
Licensed User
Longtime User

Can you provide a bit more detail:
  • What happens when you use VitamioBundle to play an RTSP stream?
    Does your application crash?
    If so look here: https://github.com/yixia/VitamioBundle/issues/53
    Does this seem to be the problem?
  • Your post quoted a post of mine where i've added methods to set request headers so that VitamioBundle can access protected content - content that requires some form of authentication.
    Are you trying to play streams that have access restricted?
 

jazzzzzzz

Active Member
Licensed User
Longtime User
access is not restricted...app is force closing saying unfortunately vitamiobundle4 example has stopped

rtsp://cdn.m.yupptv.tv/liveorigin/people9001

this is the link am using with other vitamio library and video works good...
 

warwound

Expert
Licensed User
Longtime User

jazzzzzzz

Active Member
Licensed User
Longtime User
Can u update this to vitamio sdk 4.2.2?
may be some issues will be solved i dont know....if you r free you can try...it will be so helpfull to me because i have to play multiple videos in same window but vitamio does not support that,so i will play video using videoview but the audio codec of my foscam ipcamera is some damn raw audio so the whole video will not work ,so i will rencode the stream and removed the audio and it will work in native videoview,then i can gave 4 audio chanels in your wrapper along with native video view......

but with old library i mentioned we cant use nnative videoview .
once we added vitamio one video will work but multiple will not...but i hope multiple audio chanels will be supported...
 

warwound

Expert
Licensed User
Longtime User
@jazzzzzzz

I've downloaded the source code for version 4.2.2 and will look at it when i have time - that's likely to be the weekend.

Martin.
 

jazzzzzzz

Active Member
Licensed User
Longtime User
@jazzzzzzz

I've downloaded the source code for version 4.2.2 and will look at it when i have time - that's likely to be the weekend.

Martin.
Did you know about any library with support for multiple video (RTSP) with option to control buffer size so as to make it live...????

some sort of ffmpeg based players?

unfortunately vitamio does not support multiple video in same screen even with 4.2.2 i think
 

andrewj

Active Member
Licensed User
Longtime User
Hi Martin,
I think there may be a bug in the Controller SetFileName method. I have the following code to load my video:
B4X:
oVideo.SetVideoPath(File.Combine(VideoPath, VideoFileName))
Log(VideoFileNameDecrypted)
oVideoController.SetFileName(VideoFileNameDecrypted)

The videoview loads and plays the right file, and the Log shows the right decrypted filename, but the controller doesn't.

I'm using the latest libraries you put on your website last week.
Thanks
Andrew
 

andrewj

Active Member
Licensed User
Longtime User
Hi Martin,
Is there any way to adjust the position of the video window within the control when I'm using a layout such as SCALE which does not fill the screen? It would be much better if I could centre the window in this case.
Thanks
Andrew
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…