linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Detect video size change OR set proportions to


From: Gonzalo Larralde
Subject: Re: [Linphone-developers] Detect video size change OR set proportions to fill scale the screen.
Date: Wed, 16 Jul 2014 09:44:25 -0300

Awesome, i'll try that then, thanks!

(Sorry, didn't meant to hurry you. Just noticed that my first mail wasn't in the archive, so I suppose it didn't went through :) )


On Wed, Jul 16, 2014 at 4:28 AM, BIENKOWSKI Guillaume <address@hidden> wrote:
Hello,

We got your mail but are a bit busy here.

You can use the linphone_call_set_next_video_frame_decoded_callback() on the current call to be notified of the first iFrame decoded.
Then you can query the video size and do what you want!

Cheers,



On Wed, Jul 16, 2014 at 6:26 AM, Gonzalo Larralde <address@hidden> wrote:
(I'm re-sending this email because I couldn't see it in the mail archive. I assume it wasn't delivered by some reason. Sorry if you got this twice)

Hi Guys.

I'm trying to configure the video view to fill the entire screen proportionally. I'm working with 2 different approachs to accomplish this, but both requires me to get an event fired when the video size changes.

My constraints are: I'm running this on iOS and Android, and I can't modify nor patch liblinphone code.

The thing is, I couldn't find an event to set a hook and get notified of this event. I've set a timer to check the video resolution with an 100ms interval, as a temporary / testing solution. I can't use this in production because the video glitch is very noticeable.

Digging into the code, I've found there are two events I can eventually override (by replacing the internal Linphone callback and putting a proxy that intercepts the cb, detects the msg, and call the proper function):

2014-07-10 09:59:55.050 [79764:60b] event_cb called 1074069760
2014-07-10 09:59:55.050 [79764:60b] First video frame decoded successfully

As soon as this log entries are displayed my resolution change detector, fires.

So, I noticed that maybe I can override this callback: video_stream_event_cb. I'm working on this.

BUT (tl;dr? get here!)

I wanted to check with you guys, if there's a more reliable/official way to be noticed of resolution changes, or to set the video view to fulfill the entire rect properly.

Thanks in advance.

Cheers,

Gonzalo Larralde.

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers



_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers




--
Gonzalo Larralde, iOS developer

1523 26th St.
Santa Monica, CA 90404

address@hidden

As seen on:
ABC's Shark Tank (password: doorbot)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]