Giter Site home page Giter Site logo

Comments (12)

shivanshtalwar0 avatar shivanshtalwar0 commented on August 28, 2024

Yes that might have missed out but maybe in next release we can accommodate for string as room id. Although if you want you can open a pr and i would gladly accept it since i am bit busy these days

from flutter_janus_client.

UserSense avatar UserSense commented on August 28, 2024

I'll see what I can do. I rather help improving this plugin, than creating one on my own.

from flutter_janus_client.

UserSense avatar UserSense commented on August 28, 2024

Should not have been closed. roomId should be of type dynamic.

string_ids == false: Janus expects int, and returns int for publisherId
string_ids == true: Janus expects string, and returns string for publisherId

I will run my code again, and provide a list of places where updates are required.

from flutter_janus_client.

shivanshtalwar0 avatar shivanshtalwar0 commented on August 28, 2024

ahh i see fixing it right away

from flutter_janus_client.

UserSense avatar UserSense commented on August 28, 2024

Also update events and other object

interfaces/video_room/events/video_room_event

int room -> dyamic room
map['room'] as int, -> map['room'],

I'm checking the received id's for publishers.

from flutter_janus_client.

shivanshtalwar0 avatar shivanshtalwar0 commented on August 28, 2024

@UserSense you can verify now should work fine across all major plugins

from flutter_janus_client.

UserSense avatar UserSense commented on August 28, 2024

I will do a check for videoRoom with string_ids == true.

from flutter_janus_client.

UserSense avatar UserSense commented on August 28, 2024

At the moment I found the following in VideoRoom:

interfacese/video_room/video_room/events/video_room_event.dart

copyWith

int? room, -> dynamic room,

VideoRoomEvent.fromMap

map['room'] as int, -> map['room'],

interfacese/video_room/video_room/events/video_room_joined_event.dart

int? id; -> dynamic id; in VideoRoomJoinedEvent
int? id; -> dynamic id; in Publishers

Example response when joining, both room and id are strings in this case.

{videoroom: joined, room: 198, description: Room 198, id: e7f8e202-61ca-4b7e-bec0-828610f1e917, private_id: 348602811, publishers: [], attendees: []}

interfacese/video_room/video_room/events/video_room_list_participants.dart

int? id; -> dynamic id; in Participants

Additional tests are required

from flutter_janus_client.

MrNB0dy avatar MrNB0dy commented on August 28, 2024

hi, the issue does not seem to have been fixed, especially in videoroom plugin

from flutter_janus_client.

shivanshtalwar0 avatar shivanshtalwar0 commented on August 28, 2024

now check made some fixes

from flutter_janus_client.

MrNB0dy avatar MrNB0dy commented on August 28, 2024

now check made some fixes

seems to work, thanks for the quick response :)

I noticed that _getPluginDataFromPayload does not use the fromJson and returns the raw map

from flutter_janus_client.

shivanshtalwar0 avatar shivanshtalwar0 commented on August 28, 2024

Closing then, let me know if you see any discrepancies related to this change or the issue in general

from flutter_janus_client.

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.