Giter VIP home page Giter VIP logo

Comments (11)

AndreiMisiukevich avatar AndreiMisiukevich commented on June 27, 2024 1

I got it, but it's not an issue related to this library. Something is wrong with absolute layout

from opentok-xamarin.forms.

mthirukavi avatar mthirukavi commented on June 27, 2024 1

ok. Thanks. Its really a great work what you have done.

from opentok-xamarin.forms.

rgustavsson avatar rgustavsson commented on June 27, 2024 1

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

from opentok-xamarin.forms.

AndreiMisiukevich avatar AndreiMisiukevich commented on June 27, 2024

How did you change it? And what is your issue? provide xaml / video.
I cannot reproduce it on my sample

from opentok-xamarin.forms.

mthirukavi avatar mthirukavi commented on June 27, 2024
<?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>

from opentok-xamarin.forms.

AndreiMisiukevich avatar AndreiMisiukevich commented on June 27, 2024

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>

from opentok-xamarin.forms.

AndreiMisiukevich avatar AndreiMisiukevich commented on June 27, 2024

Anyway, it's not an issue of this library (if it works on my sample). Fix your layout.

from opentok-xamarin.forms.

mthirukavi avatar mthirukavi commented on June 27, 2024

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>

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.

from opentok-xamarin.forms.

mthirukavi avatar mthirukavi commented on June 27, 2024

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

from opentok-xamarin.forms.

almirtavares avatar almirtavares commented on June 27, 2024

Hi guys.... I have the same problem: Publisher view hides when subscriber video is loaded.

from opentok-xamarin.forms.

AndreiMisiukevich avatar AndreiMisiukevich commented on June 27, 2024

v 1.2.1 !!!

from opentok-xamarin.forms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.