-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publisher view hides when subscriber video is loaded #14
Comments
How did you change it? And what is your issue? provide xaml / video. |
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:tok="clr-namespace:Xamarin.Forms.OpenTok;assembly=Xamarin.Forms.OpenTok"
xmlns:tokService="clr-namespace:Xamarin.Forms.OpenTok.Service;assembly=Xamarin.Forms.OpenTok" x:Class="247.Views.VideoCall"
xmlns:ios = "clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" >
<ContentPage.Content>
<AbsoluteLayout BackgroundColor="#ffffff">
<StackLayout AbsoluteLayout.LayoutBounds="0,0.1,1,1"
AbsoluteLayout.LayoutFlags="All"
BindableLayout.ItemsSource="{Binding Path=StreamIdCollection, Source={x:Static tokService:CrossOpenTok.Current}}">
<BindableLayout.ItemTemplate>
<DataTemplate>
<StackLayout>
<tok:OpenTokSubscriberView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
StreamId="{Binding .}"/>
</StackLayout>
</DataTemplate>
</BindableLayout.ItemTemplate>
</StackLayout>
<tok:OpenTokPublisherView AbsoluteLayout.LayoutBounds="0,0.9,0.2,0.2" BackgroundColor="Aquamarine" AbsoluteLayout.LayoutFlags="All" x:Name="publisherVideo" />
<Image Source="end.png" AbsoluteLayout.LayoutBounds="1,1,1,0.4" HeightRequest="150" AbsoluteLayout.LayoutFlags="All" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" >
<Image.GestureRecognizers>
<TapGestureRecognizer Tapped="OnEndCall" NumberOfTapsRequired="1">
</TapGestureRecognizer>
</Image.GestureRecognizers>
</Image>
</AbsoluteLayout>
</ContentPage.Content>
</ContentPage> |
why did you add it twice? <StackLayout AbsoluteLayout.LayoutBounds="0,0.1,1,1"
AbsoluteLayout.LayoutFlags="All"
BindableLayout.ItemsSource="{Binding Path=StreamIdCollection, Source={x:Static tokService:CrossOpenTok.Current}}">
<BindableLayout.ItemTemplate>
<DataTemplate>
<StackLayout>
<tok:OpenTokSubscriberView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
StreamId="{Binding .}"/>
</StackLayout>
</DataTemplate>
</BindableLayout.ItemTemplate>
</StackLayout> |
Anyway, it's not an issue of this library (if it works on my sample). Fix your layout. |
It was there one time only in my code, i pasted twice here. The publisherview in overlayed by subscriberview. I mean the publisherview is under subscriberview. so i cant view the publisher profile. |
I got it, but it's not an issue related to this library. Something is wrong with absolute layout |
ok. Thanks. Its really a great work what you have done. |
@mthirukavi did you manage to get around it? I know it is not an issue with this lib but I am having the same issue.. |
@rgustavsson Nope... But it's working fine in iOS devices, the problem is only with Android devices. Working on it. Once got it, will update here. |
Hi guys.... I have the same problem: Publisher view hides when subscriber video is loaded. |
v 1.2.1 !!! |
Hi,
When I change the view of the ChatRoomPage.xaml, the publisher view is getting hidden once subscriber stream is loaded. how can I fix it?
Thanks.
The text was updated successfully, but these errors were encountered: