@@ -482,6 +482,75 @@ struct OnRejectedIncomingCallParam
482
482
SipRxData rdata;
483
483
};
484
484
485
+ /* *
486
+ * This structure describes audio media's register/add of operation info.
487
+ */
488
+ struct AudioMediaAddInfo
489
+ {
490
+ unsigned mediaId; /* *< The media port id. */
491
+ };
492
+
493
+ /* *
494
+ * This structure describes audio media's unregister/remove of operation info.
495
+ */
496
+ struct AudioMediaRemoveInfo
497
+ {
498
+ unsigned mediaId; /* *< The media port id. */
499
+ };
500
+
501
+ /* *
502
+ * This structure describes an audio media's start transmit/connect operation
503
+ * info.
504
+ */
505
+ struct AudioMediaConnectInfo
506
+ {
507
+ unsigned mediaId; /* *< The source media port id. */
508
+ unsigned targetMediaId; /* *< The destination media port id.*/
509
+ int adjLevel; /* *< The adjustment level. */
510
+ };
511
+
512
+ /* *
513
+ * This structure describes an audio media's stop transmit/disconnect operation
514
+ * info.
515
+ */
516
+ struct AudioMediaDisconnectInfo
517
+ {
518
+ unsigned mediaId; /* *< The source media port id.
519
+ For multiple port operation,
520
+ this will be set to - 1. */
521
+ unsigned targetMediaId; /* *< The destination media port id.
522
+ For multiple port operation,
523
+ this will be set to - 1. */
524
+ };
525
+
526
+ /* *
527
+ * Audio media operation parameter.
528
+ */
529
+ typedef union AudioMediaOpParam
530
+ {
531
+ /* *
532
+ * The information for adding audio media operation.
533
+ */
534
+ AudioMediaAddInfo addInfo;
535
+
536
+ /* *
537
+ * The information for removing audio media operation.
538
+ */
539
+ AudioMediaRemoveInfo removeInfo;
540
+
541
+ /* *
542
+ * The information for start transmitting/connecting audio media operation.
543
+ */
544
+ AudioMediaConnectInfo connectInfo;
545
+
546
+ /* *
547
+ * The information for stop transmitting/disconnecting audio media
548
+ * operation.
549
+ */
550
+ AudioMediaDisconnectInfo disconnectInfo;
551
+
552
+ } AudioMediaOpParam;
553
+
485
554
/* *
486
555
* Parameter of Endpoint::onAudioMediaOpCompleted() callback.
487
556
*/
@@ -497,17 +566,12 @@ struct OnAudioMediaOpCompletedParam {
497
566
pj_status_t status;
498
567
499
568
/* *
500
- * Represents the AudioMedia's port id associated with the operation.
501
- * The first port id will serves as the source port id for operations
502
- * involving destination AudioMedia. (e.g.: startTransmit/stopTransmit).
503
- *
504
- * The port id will be set to -1, to represents multiple source/destination
505
- * port.
569
+ * The audio media operation information.
506
570
*
507
571
* App can use \a AudioMediaHelper to get the AudioMedia instance based on
508
- * the port id.
572
+ * the audio media port id.
509
573
*/
510
- UnsignedVector opData ;
574
+ AudioMediaOpParam opParam ;
511
575
512
576
public:
513
577
/* *
@@ -516,33 +580,104 @@ struct OnAudioMediaOpCompletedParam {
516
580
void fromPj (const pjmedia_conf_op_info &info);
517
581
};
518
582
583
+ /* *
584
+ * This structure describes video media's register/add of operation info.
585
+ */
586
+ struct VideoMediaAddInfo
587
+ {
588
+ unsigned mediaId; /* *< The media port id. */
589
+ };
590
+
591
+ /* *
592
+ * This structure describes video media's unregister/remove of operation info.
593
+ */
594
+ struct VideoMediaRemoveInfo
595
+ {
596
+ unsigned mediaId; /* *< The media port id. */
597
+ };
598
+
599
+ /* *
600
+ * This structure describes an video media's start transmit/connect operation
601
+ * info.
602
+ */
603
+ struct VideoMediaConnectInfo
604
+ {
605
+ unsigned mediaId; /* *< The source media port id. */
606
+ unsigned targetMediaId; /* *< The destination media port id.*/
607
+ };
608
+
609
+ /* *
610
+ * This structure describes an video media's stop transmit/disconnect operation
611
+ * info.
612
+ */
613
+ struct VideoMediaDisconnectInfo
614
+ {
615
+ unsigned mediaId; /* *< The source media port id. */
616
+ unsigned targetMediaId; /* *< The destination media port id.*/
617
+ };
618
+
619
+ /* *
620
+ * This structure describes an video media's update operation info.
621
+ */
622
+ struct VideoMediaUpdateInfo
623
+ {
624
+ unsigned mediaId; /* *< The media port id. */
625
+ };
626
+
627
+ /* *
628
+ * Video media operation parameter.
629
+ */
630
+ typedef union VideoMediaOpParam
631
+ {
632
+ /* *
633
+ * The information for adding video media operation.
634
+ */
635
+ VideoMediaAddInfo addInfo;
636
+
637
+ /* *
638
+ * The information for removing video media operation.
639
+ */
640
+ VideoMediaRemoveInfo removeInfo;
641
+
642
+ /* *
643
+ * The information for start transmitting/connecting video media operation.
644
+ */
645
+ VideoMediaConnectInfo connectInfo;
646
+
647
+ /* *
648
+ * The information for stop transmitting/disconnecting video media
649
+ * operation.
650
+ */
651
+ VideoMediaDisconnectInfo disconnectInfo;
652
+
653
+ /* *
654
+ * The information for updating video media operation.
655
+ */
656
+ VideoMediaUpdateInfo updateInfo;
657
+
658
+ } VideoMediaOpParam;
659
+
519
660
/* *
520
661
* Parameter of Endpoint::onVideoMediaOpCompleted() callback.
521
662
*/
522
663
struct OnVideoMediaOpCompletedParam {
523
664
/* *
524
- * The Operation type.
665
+ * The operation type.
525
666
*/
526
667
pjmedia_vid_conf_op_type opType;
527
668
528
669
/* *
529
670
* The operation status.
530
671
*/
531
- pj_status_t status;
672
+ pj_status_t status;
532
673
533
674
/* *
534
675
* Represents the VideoMedia's port id associated with the operation.
535
- * For operations involving source and destination VideoMedia instances
536
- * (e.g., startTransmit/stopTransmit), the first VideoMedia serves
537
- * as the source.
538
676
*
539
- * The port id will be set to -1, to represents multiple source/destination
540
- * port.
541
- *
542
677
* App can use \a VIdeoMediaHelper to get the VideoMedia instance based on
543
- * the port id.
678
+ * the video media port id.
544
679
*/
545
- UnsignedVector opData ;
680
+ VideoMediaOpParam opParam ;
546
681
547
682
public:
548
683
/* *
0 commit comments