@flashphoner/websdk 2.0.216 → 2.0.217

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8579,717 +8579,926 @@ function filterStats(result, track, outbound) {
8579
8579
  * @see Session
8580
8580
  */
8581
8581
 
8582
- var sessionStatus = {};
8583
- /**
8584
- * Fires when {@link Session} ws socket opens.
8585
- * @event CONNECTED
8586
- * @memberof Flashphoner.constants.SESSION_STATUS
8587
- */
8582
+ var SESSION_STATUS = Object.freeze({
8583
+ /**
8584
+ * Fires when {@link Session} ws socket opens.
8585
+ * @event CONNECTED
8586
+ * @memberof Flashphoner.constants.SESSION_STATUS
8587
+ */
8588
+ CONNECTED: 'CONNECTED',
8588
8589
 
8589
- define(sessionStatus, 'CONNECTED', 'CONNECTED');
8590
- /**
8591
- * Fires when {@link Session} receives connect ack from REST App.
8592
- * @event ESTABLISHED
8593
- * @memberof Flashphoner.constants.SESSION_STATUS
8594
- */
8590
+ /**
8591
+ * Fires when {@link Session} receives connect ack from REST App.
8592
+ * @event ESTABLISHED
8593
+ * @memberof Flashphoner.constants.SESSION_STATUS
8594
+ */
8595
+ ESTABLISHED: 'ESTABLISHED',
8595
8596
 
8596
- define(sessionStatus, 'ESTABLISHED', 'ESTABLISHED');
8597
- /**
8598
- * Fires when {@link Session} disconnects.
8599
- * @event DISCONNECTED
8600
- * @memberof Flashphoner.constants.SESSION_STATUS
8601
- */
8597
+ /**
8598
+ * Fires when {@link Session} disconnects.
8599
+ * @event DISCONNECTED
8600
+ * @memberof Flashphoner.constants.SESSION_STATUS
8601
+ */
8602
+ DISCONNECTED: 'DISCONNECTED',
8602
8603
 
8603
- define(sessionStatus, 'DISCONNECTED', 'DISCONNECTED');
8604
- /**
8605
- * Fires if {@link Session} call of rest method error.
8606
- * @event WARN
8607
- * @memberof Flashphoner.constants.SESSION_STATUS
8608
- */
8604
+ /**
8605
+ * Fires if {@link Session} call of rest method error.
8606
+ * @event WARN
8607
+ * @memberof Flashphoner.constants.SESSION_STATUS
8608
+ */
8609
+ WARN: 'WARN',
8609
8610
 
8610
- define(sessionStatus, 'WARN', 'WARN');
8611
- /**
8612
- * Fires if {@link Session} connection failed.
8613
- * Some of the reasons can be network connection failed, REST App failed
8614
- * @event FAILED
8615
- * @memberof Flashphoner.constants.SESSION_STATUS
8616
- */
8611
+ /**
8612
+ * Fires if {@link Session} connection failed.
8613
+ * Some of the reasons can be network connection failed, REST App failed
8614
+ * @event FAILED
8615
+ * @memberof Flashphoner.constants.SESSION_STATUS
8616
+ */
8617
+ FAILED: 'FAILED',
8617
8618
 
8618
- define(sessionStatus, 'FAILED', 'FAILED');
8619
- /**
8620
- * Fires wneh {@link Session} receives debug event
8621
- * @event DEBUG
8622
- * @memberof Flashphoner.constants.SESSION_STATUS
8623
- */
8619
+ /**
8620
+ * Fires wneh {@link Session} receives debug event
8621
+ * @event DEBUG
8622
+ * @memberof Flashphoner.constants.SESSION_STATUS
8623
+ */
8624
+ DEBUG: 'DEBUG',
8624
8625
 
8625
- define(sessionStatus, 'DEBUG', 'DEBUG');
8626
- /**
8627
- * Fires when {@link Session} receives custom REST App message.
8628
- *
8629
- * @event APP_DATA
8630
- * @memberof Flashphoner.constants.SESSION_STATUS
8631
- */
8626
+ /**
8627
+ * Fires when {@link Session} receives custom REST App message.
8628
+ *
8629
+ * @event APP_DATA
8630
+ * @memberof Flashphoner.constants.SESSION_STATUS
8631
+ */
8632
+ APP_DATA: 'APP_DATA',
8632
8633
 
8633
- define(sessionStatus, 'APP_DATA', 'APP_DATA');
8634
- /**
8635
- * Fires when {@link Session} receives status of sendData operation.
8636
- *
8637
- * @event SEND_DATA_STATUS
8638
- * @memberof Flashphoner.constants.SESSION_STATUS
8639
- */
8634
+ /**
8635
+ * Fires when {@link Session} receives status of sendData operation.
8636
+ *
8637
+ * @event SEND_DATA_STATUS
8638
+ * @memberof Flashphoner.constants.SESSION_STATUS
8639
+ */
8640
+ SEND_DATA_STATUS: 'SEND_DATA_STATUS',
8640
8641
 
8641
- define(sessionStatus, 'SEND_DATA_STATUS', 'SEND_DATA_STATUS'); //State of newly created Session
8642
+ /**
8643
+ * State of newly created {@link Session}.
8644
+ *
8645
+ * @event PENDING
8646
+ * @memberof Flashphoner.constants.SESSION_STATUS
8647
+ */
8648
+ PENDING: 'PENDING',
8642
8649
 
8643
- define(sessionStatus, 'PENDING', 'PENDING');
8644
- /**
8645
- * Fires when {@link Session} registers as sip client.
8646
- *
8647
- * @event APP_DATA
8648
- * @memberof Flashphoner.constants.SESSION_STATUS
8649
- */
8650
+ /**
8651
+ * Fires when {@link Session} registers as sip client.
8652
+ *
8653
+ * @event REGISTERED
8654
+ * @memberof Flashphoner.constants.SESSION_STATUS
8655
+ */
8656
+ REGISTERED: 'REGISTERED',
8650
8657
 
8651
- define(sessionStatus, 'REGISTERED', 'REGISTERED');
8652
- /**
8653
- * Fires when {@link Session} unregisters as sip client.
8654
- *
8655
- * @event APP_DATA
8656
- * @memberof Flashphoner.constants.SESSION_STATUS
8657
- */
8658
+ /**
8659
+ * Fires when {@link Session} unregisters as sip client.
8660
+ *
8661
+ * @event UNREGISTERED
8662
+ * @memberof Flashphoner.constants.SESSION_STATUS
8663
+ */
8664
+ UNREGISTERED: 'UNREGISTERED',
8658
8665
 
8659
- define(sessionStatus, 'UNREGISTERED', 'UNREGISTERED');
8660
- define(sessionStatus, 'INCOMING_CALL', 'INCOMING_CALL');
8666
+ /**
8667
+ * Fires when {@link Session} receives an incoming call.
8668
+ *
8669
+ * @event INCOMING_CALL
8670
+ * @memberof Flashphoner.constants.SESSION_STATUS
8671
+ */
8672
+ INCOMING_CALL: 'INCOMING_CALL'
8673
+ });
8661
8674
  /**
8662
8675
  * @namespace Flashphoner.constants.STREAM_STATUS
8663
8676
  * @see Stream
8664
8677
  */
8665
8678
 
8666
- var streamStatus = {}; //State of newly created Stream
8667
-
8668
- define(streamStatus, 'NEW', 'NEW'); //State between publish/play and server response
8679
+ var STREAM_STATUS = Object.freeze({
8680
+ /**
8681
+ * State of newly created {@link Stream}.
8682
+ *
8683
+ * @event NEW
8684
+ * @memberof Flashphoner.constants.STREAM_STATUS
8685
+ */
8686
+ NEW: 'NEW',
8669
8687
 
8670
- define(streamStatus, 'PENDING', 'PENDING');
8671
- /**
8672
- * Fires when {@link Stream} starts publishing.
8673
- * @event PUBLISHING
8674
- * @memberof Flashphoner.constants.STREAM_STATUS
8675
- */
8688
+ /**
8689
+ * State before {@link Stream} publishing/playing.
8690
+ *
8691
+ * @event PENDING
8692
+ * @memberof Flashphoner.constants.STREAM_STATUS
8693
+ */
8694
+ PENDING: 'PENDING',
8676
8695
 
8677
- define(streamStatus, 'PUBLISHING', 'PUBLISHING');
8678
- /**
8679
- * Fires when {@link Stream} starts playing.
8680
- * @event PLAYING
8681
- * @memberof Flashphoner.constants.STREAM_STATUS
8682
- */
8696
+ /**
8697
+ * Fires when {@link Stream} starts publishing.
8698
+ * @event PUBLISHING
8699
+ * @memberof Flashphoner.constants.STREAM_STATUS
8700
+ */
8701
+ PUBLISHING: 'PUBLISHING',
8683
8702
 
8684
- define(streamStatus, 'PLAYING', 'PLAYING');
8685
- /**
8686
- * Fires if {@link Stream} paused.
8687
- * @event PAUSED
8688
- * @memberof Flashphoner.constants.STREAM_STATUS
8689
- */
8703
+ /**
8704
+ * Fires when {@link Stream} starts playing.
8705
+ * @event PLAYING
8706
+ * @memberof Flashphoner.constants.STREAM_STATUS
8707
+ */
8708
+ PLAYING: 'PLAYING',
8690
8709
 
8691
- define(streamStatus, 'PAUSED', 'PAUSED');
8692
- /**
8693
- * Fires if {@link Stream} was unpublished.
8694
- * @event UNPUBLISHING
8695
- * @memberof Flashphoner.constants.STREAM_STATUS
8696
- */
8710
+ /**
8711
+ * Fires if {@link Stream} paused.
8712
+ * @event PAUSED
8713
+ * @memberof Flashphoner.constants.STREAM_STATUS
8714
+ */
8715
+ PAUSED: 'PAUSED',
8697
8716
 
8698
- define(streamStatus, 'UNPUBLISHED', 'UNPUBLISHED');
8699
- /**
8700
- * Fires if {@link Stream} was stopped.
8701
- * @event STOPPED
8702
- * @memberof Flashphoner.constants.STREAM_STATUS
8703
- */
8717
+ /**
8718
+ * Fires if {@link Stream} was unpublished.
8719
+ * @event UNPUBLISHED
8720
+ * @memberof Flashphoner.constants.STREAM_STATUS
8721
+ */
8722
+ UNPUBLISHED: 'UNPUBLISHED',
8704
8723
 
8705
- define(streamStatus, 'STOPPED', 'STOPPED');
8706
- /**
8707
- * Fires if {@link Stream} failed.
8708
- * @event FAILED
8709
- * @memberof Flashphoner.constants.STREAM_STATUS
8710
- */
8724
+ /**
8725
+ * Fires if playing {@link Stream} was stopped.
8726
+ * @event STOPPED
8727
+ * @memberof Flashphoner.constants.STREAM_STATUS
8728
+ */
8729
+ STOPPED: 'STOPPED',
8711
8730
 
8712
- define(streamStatus, 'FAILED', 'FAILED');
8713
- /**
8714
- * Fires if {@link Stream} playback problem.
8715
- * @event PLAYBACK_PROBLEM
8716
- * @memberof Flashphoner.constants.STREAM_STATUS
8717
- */
8731
+ /**
8732
+ * Fires if {@link Stream} failed.
8733
+ * @event FAILED
8734
+ * @memberof Flashphoner.constants.STREAM_STATUS
8735
+ */
8736
+ FAILED: 'FAILED',
8718
8737
 
8719
- define(streamStatus, 'PLAYBACK_PROBLEM', 'PLAYBACK_PROBLEM');
8720
- /**
8721
- * Fires if {@link Stream} resize.
8722
- * @event RESIZE
8723
- * @memberof Flashphoner.constants.STREAM_STATUS
8724
- */
8738
+ /**
8739
+ * Fires if {@link Stream} playback problem.
8740
+ * @event PLAYBACK_PROBLEM
8741
+ * @memberof Flashphoner.constants.STREAM_STATUS
8742
+ */
8743
+ PLAYBACK_PROBLEM: 'PLAYBACK_PROBLEM',
8725
8744
 
8726
- define(streamStatus, 'RESIZE', 'RESIZE');
8727
- /**
8728
- * Fires when {@link Stream} snapshot becomes available.
8729
- * Snapshot is base64 encoded png available through {@link Stream.getInfo}
8730
- * @event SNAPSHOT_COMPLETE
8731
- * @memberof Flashphoner.constants.STREAM_STATUS
8732
- */
8745
+ /**
8746
+ * Fires if playing {@link Stream} picture resizing.
8747
+ * @event RESIZE
8748
+ * @memberof Flashphoner.constants.STREAM_STATUS
8749
+ */
8750
+ RESIZE: 'RESIZE',
8733
8751
 
8734
- define(streamStatus, 'SNAPSHOT_COMPLETE', 'SNAPSHOT_COMPLETE');
8735
- /**
8736
- * Fires on subscribe {@link Stream} if bitrate is higher than available network bandwidth.
8737
- * @event NOT_ENOUGH_BANDWIDTH
8738
- * @memberof Flashphoner.constants.NOT_ENOUGH_BANDWIDTH
8739
- */
8752
+ /**
8753
+ * Fires when {@link Stream} snapshot becomes available.
8754
+ * Snapshot is base64 encoded png available through {@link Stream.getInfo}
8755
+ * @event SNAPSHOT_COMPLETE
8756
+ * @memberof Flashphoner.constants.STREAM_STATUS
8757
+ */
8758
+ SNAPSHOT_COMPLETE: 'SNAPSHOT_COMPLETE',
8740
8759
 
8741
- define(streamStatus, 'NOT_ENOUGH_BANDWIDTH', 'NOT_ENOUGH_BANDWIDTH');
8760
+ /**
8761
+ * Fires on playing {@link Stream} if bitrate is higher than available network bandwidth.
8762
+ * @event NOT_ENOUGH_BANDWIDTH
8763
+ * @memberof Flashphoner.constants.NOT_ENOUGH_BANDWIDTH
8764
+ */
8765
+ NOT_ENOUGH_BANDWIDTH: 'NOT_ENOUGH_BANDWIDTH'
8766
+ });
8742
8767
  /**
8743
8768
  * @namespace Flashphoner.constants.CALL_STATUS
8744
8769
  * @see Call
8745
8770
  */
8746
8771
 
8747
- var callStatus = {}; //State of newly created Call
8748
-
8749
- define(callStatus, 'NEW', 'NEW');
8750
- define(callStatus, 'RING', 'RING');
8751
- define(callStatus, 'RING_MEDIA', 'RING_MEDIA');
8752
- define(callStatus, 'HOLD', 'HOLD');
8753
- define(callStatus, 'ESTABLISHED', 'ESTABLISHED');
8754
- define(callStatus, 'FINISH', 'FINISH');
8755
- define(callStatus, 'BUSY', 'BUSY');
8756
- define(callStatus, 'SESSION_PROGRESS', 'SESSION_PROGRESS');
8757
- define(callStatus, 'FAILED', 'FAILED');
8758
- define(callStatus, 'PENDING', 'PENDING');
8759
- define(callStatus, 'TRYING', 'TRYING');
8772
+ var CALL_STATUS = Object.freeze({
8773
+ /**
8774
+ * State of newly created {@link Call}
8775
+ * @event NEW
8776
+ * @memberof Flashphoner.constants.CALL_STATUS
8777
+ */
8778
+ NEW: 'NEW',
8779
+
8780
+ /**
8781
+ * The server is ringing to the callee
8782
+ * @event RING
8783
+ * @memberof Flashphoner.constants.CALL_STATUS
8784
+ */
8785
+ RING: 'RING',
8786
+ RING_MEDIA: 'RING_MEDIA',
8787
+
8788
+ /**
8789
+ * The {@link Call} was put on hold
8790
+ * @event HOLD
8791
+ * @memberof Flashphoner.constants.CALL_STATUS
8792
+ */
8793
+ HOLD: 'HOLD',
8794
+
8795
+ /**
8796
+ * The {@link Call} is established
8797
+ * @event ESTABLISHED
8798
+ * @memberof Flashphoner.constants.CALL_STATUS
8799
+ */
8800
+ ESTABLISHED: 'ESTABLISHED',
8801
+
8802
+ /**
8803
+ * The {@link Call} is finished
8804
+ * @event FINISH
8805
+ * @memberof Flashphoner.constants.CALL_STATUS
8806
+ */
8807
+ FINISH: 'FINISH',
8808
+
8809
+ /**
8810
+ * Callee is busy
8811
+ * @event BUSY
8812
+ * @memberof Flashphoner.constants.CALL_STATUS
8813
+ */
8814
+ BUSY: 'BUSY',
8815
+
8816
+ /**
8817
+ * SIP session is in progress
8818
+ * @event SESSION_PROGRESS
8819
+ * @memberof Flashphoner.constants.CALL_STATUS
8820
+ */
8821
+ SESSION_PROGRESS: 'SESSION_PROGRESS',
8822
+
8823
+ /**
8824
+ * The {@link Call} is failed
8825
+ * @event FAILED
8826
+ * @memberof Flashphoner.constants.CALL_STATUS
8827
+ */
8828
+ FAILED: 'FAILED',
8829
+
8830
+ /**
8831
+ * The {@link Call} state before ringing
8832
+ * @event PENDING
8833
+ * @memberof Flashphoner.constants.CALL_STATUS
8834
+ */
8835
+ PENDING: 'PENDING',
8836
+
8837
+ /**
8838
+ * The server trying to establish {@link Call}
8839
+ * @event TRYING
8840
+ * @memberof Flashphoner.constants.CALL_STATUS
8841
+ */
8842
+ TRYING: 'TRYING'
8843
+ });
8760
8844
  /**
8761
8845
  * @namespace Flashphoner.constants.STREAM_STATUS_INFO
8762
8846
  * @see Stream
8763
8847
  */
8764
8848
 
8765
- var streamStatusInfo = {};
8766
- /**
8767
- * Indicates general error during ICE negotiation. Usually occurs if client is behind some exotic nat/firewall.
8768
- * @event FAILED_BY_ICE_ERROR
8769
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8770
- */
8771
-
8772
- define(streamStatusInfo, 'FAILED_BY_ICE_ERROR', 'Failed by ICE error');
8773
- /**
8774
- * Timeout has been reached during ICE establishment.
8775
- * @event FAILED_BY_ICE_TIMEOUT
8776
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8777
- */
8849
+ var STREAM_STATUS_INFO = Object.freeze({
8850
+ /**
8851
+ * Indicates general error during ICE negotiation. Usually occurs if client is behind some exotic nat/firewall.
8852
+ * @event FAILED_BY_ICE_ERROR
8853
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8854
+ */
8855
+ FAILED_BY_ICE_ERROR: 'Failed by ICE error',
8778
8856
 
8779
- define(streamStatusInfo, 'FAILED_BY_ICE_TIMEOUT', 'Failed by ICE timeout');
8780
- /**
8781
- * ICE refresh failed on session.
8782
- * @event FAILED_BY_KEEP_ALIVE
8783
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8784
- */
8857
+ /**
8858
+ * Timeout has been reached during ICE establishment.
8859
+ * @event FAILED_BY_ICE_TIMEOUT
8860
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8861
+ */
8862
+ FAILED_BY_ICE_TIMEOUT: 'Failed by ICE timeout',
8785
8863
 
8786
- define(streamStatusInfo, 'FAILED_BY_KEEP_ALIVE', 'Failed by ICE keep alive');
8787
- /**
8788
- * DTLS has wrong fingerprint.
8789
- * @event FAILED_BY_DTLS_FINGERPRINT_ERROR
8790
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8791
- */
8864
+ /**
8865
+ * ICE refresh failed on session.
8866
+ * @event FAILED_BY_KEEP_ALIVE
8867
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8868
+ */
8869
+ FAILED_BY_KEEP_ALIVE: 'Failed by ICE keep alive',
8792
8870
 
8793
- define(streamStatusInfo, 'FAILED_BY_DTLS_FINGERPRINT_ERROR', 'Failed by DTLS fingerprint error');
8794
- /**
8795
- * Client did not send DTLS packets or packets were lost/corrupted during transmission.
8796
- * @event FAILED_BY_DTLS_ERROR
8797
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8798
- */
8871
+ /**
8872
+ * DTLS has wrong fingerprint.
8873
+ * @event FAILED_BY_DTLS_FINGERPRINT_ERROR
8874
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8875
+ */
8876
+ FAILED_BY_DTLS_FINGERPRINT_ERROR: 'Failed by DTLS fingerprint error',
8799
8877
 
8800
- define(streamStatusInfo, 'FAILED_BY_DTLS_ERROR', 'Failed by DTLS error');
8801
- /**
8802
- * Indicates general HLS packetizer error, can occur during initialization or packetization (wrong input or out of disk space).
8803
- * @event FAILED_BY_HLS_WRITER_ERROR
8804
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8805
- */
8878
+ /**
8879
+ * Client did not send DTLS packets or packets were lost/corrupted during transmission.
8880
+ * @event FAILED_BY_DTLS_ERROR
8881
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8882
+ */
8883
+ FAILED_BY_DTLS_ERROR: 'Failed by DTLS error',
8806
8884
 
8807
- define(streamStatusInfo, 'FAILED_BY_HLS_WRITER_ERROR', 'Failed by HLS writer error');
8808
- /**
8809
- * Indicates general RTMP republishing error, can occur during initialization or rtmp packetization.
8810
- * @event FAILED_BY_RTMP_WRITER_ERROR
8811
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8812
- */
8885
+ /**
8886
+ * Indicates general HLS packetizer error, can occur during initialization or packetization (wrong input or out of disk space).
8887
+ * @event FAILED_BY_HLS_WRITER_ERROR
8888
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8889
+ */
8890
+ FAILED_BY_HLS_WRITER_ERROR: 'Failed by HLS writer error',
8813
8891
 
8814
- define(streamStatusInfo, 'FAILED_BY_RTMP_WRITER_ERROR', 'Failed by RTMP writer error');
8815
- /**
8816
- * RTP session failed by RTP activity timer.
8817
- * @event FAILED_BY_RTP_ACTIVITY
8818
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8819
- */
8892
+ /**
8893
+ * Indicates general RTMP republishing error, can occur during initialization or rtmp packetization.
8894
+ * @event FAILED_BY_RTMP_WRITER_ERROR
8895
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8896
+ */
8897
+ FAILED_BY_RTMP_WRITER_ERROR: 'Failed by RTMP writer error',
8820
8898
 
8821
- define(streamStatusInfo, 'FAILED_BY_RTP_ACTIVITY', 'Failed by RTP activity');
8822
- /**
8823
- * Related session was disconnected.
8824
- * @event STOPPED_BY_SESSION_DISCONNECT
8825
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8826
- */
8899
+ /**
8900
+ * RTP session failed by RTP activity timer.
8901
+ * @event FAILED_BY_RTP_ACTIVITY
8902
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8903
+ */
8904
+ FAILED_BY_RTP_ACTIVITY: 'Failed by RTP activity',
8827
8905
 
8828
- define(streamStatusInfo, 'STOPPED_BY_SESSION_DISCONNECT', 'Stopped by session disconnect');
8829
- /**
8830
- * Stream was stopped by rest terminate request.
8831
- * @event STOPPED_BY_REST_TERMINATE
8832
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8833
- */
8906
+ /**
8907
+ * Related session was disconnected.
8908
+ * @event STOPPED_BY_SESSION_DISCONNECT
8909
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8910
+ */
8911
+ STOPPED_BY_SESSION_DISCONNECT: 'Stopped by session disconnect',
8834
8912
 
8835
- define(streamStatusInfo, 'STOPPED_BY_REST_TERMINATE', 'Stopped by rest /terminate');
8836
- /**
8837
- * Related publisher stopped its stream or lost connection.
8838
- * @event STOPPED_BY_PUBLISHER_STOP
8839
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8840
- */
8913
+ /**
8914
+ * Stream was stopped by rest terminate request.
8915
+ * @event STOPPED_BY_REST_TERMINATE
8916
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8917
+ */
8918
+ STOPPED_BY_REST_TERMINATE: 'Stopped by rest /terminate',
8841
8919
 
8842
- define(streamStatusInfo, 'STOPPED_BY_PUBLISHER_STOP', 'Stopped by publisher stop');
8843
- /**
8844
- * Stop the media session by user after call was finished or unpublish stream.
8845
- * @event STOPPED_BY_USER
8846
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8847
- */
8920
+ /**
8921
+ * Related publisher stopped its stream or lost connection.
8922
+ * @event STOPPED_BY_PUBLISHER_STOP
8923
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8924
+ */
8925
+ STOPPED_BY_PUBLISHER_STOP: 'Stopped by publisher stop',
8848
8926
 
8849
- define(streamStatusInfo, 'STOPPED_BY_USER', 'Stopped by user');
8850
- /**
8851
- * Error occurred on the stream.
8852
- * @event FAILED_BY_ERROR
8853
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8854
- */
8927
+ /**
8928
+ * Stop the media session by user after call was finished or unpublish stream.
8929
+ * @event STOPPED_BY_USER
8930
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8931
+ */
8932
+ STOPPED_BY_USER: 'Stopped by user',
8855
8933
 
8856
- define(streamStatusInfo, 'FAILED_BY_ERROR', 'Failed by error');
8857
- /**
8858
- * Indicates that error occurred during media session creation. This might be SDP parsing error, all ports are busy, wrong session related config etc.
8859
- * @event FAILED_TO_ADD_STREAM_TO_PROXY
8860
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8861
- */
8934
+ /**
8935
+ * Error occurred on the stream.
8936
+ * @event FAILED_BY_ERROR
8937
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8938
+ */
8939
+ FAILED_BY_ERROR: 'Failed by error',
8862
8940
 
8863
- define(streamStatusInfo, 'FAILED_TO_ADD_STREAM_TO_PROXY', 'Failed to add stream to proxy');
8864
- /**
8865
- * Stopped shapshot distributor.
8866
- * @event DISTRIBUTOR_STOPPED
8867
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8868
- */
8941
+ /**
8942
+ * Indicates that error occurred during media session creation. This might be SDP parsing error, all ports are busy, wrong session related config etc.
8943
+ * @event FAILED_TO_ADD_STREAM_TO_PROXY
8944
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8945
+ */
8946
+ FAILED_TO_ADD_STREAM_TO_PROXY: 'Failed to add stream to proxy',
8869
8947
 
8870
- define(streamStatusInfo, 'DISTRIBUTOR_STOPPED', 'Distributor stopped');
8871
- /**
8872
- * Publish stream is not ready, try again later.
8873
- * @event PUBLISH_STREAM_IS_NOT_READY
8874
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8875
- */
8948
+ /**
8949
+ * Stopped shapshot distributor.
8950
+ * @event DISTRIBUTOR_STOPPED
8951
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8952
+ */
8953
+ DISTRIBUTOR_STOPPED: 'Distributor stopped',
8876
8954
 
8877
- define(streamStatusInfo, 'PUBLISH_STREAM_IS_NOT_READY', 'Publish stream is not ready');
8878
- /**
8879
- * Stream with this name is not found, check the correct of the name.
8880
- * @event STREAM_NOT_FOUND
8881
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8882
- */
8955
+ /**
8956
+ * Publish stream is not ready, try again later.
8957
+ * @event PUBLISH_STREAM_IS_NOT_READY
8958
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8959
+ */
8960
+ PUBLISH_STREAM_IS_NOT_READY: 'Publish stream is not ready',
8883
8961
 
8884
- define(streamStatusInfo, 'STREAM_NOT_FOUND', 'Stream not found');
8885
- /**
8886
- * Server already has a publish stream with the same name, try using different one.
8887
- * @event STREAM_NAME_ALREADY_IN_USE
8888
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8889
- */
8962
+ /**
8963
+ * Stream with this name is not found, check the correct of the name.
8964
+ * @event STREAM_NOT_FOUND
8965
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8966
+ */
8967
+ STREAM_NOT_FOUND: 'Stream not found',
8890
8968
 
8891
- define(streamStatusInfo, 'STREAM_NAME_ALREADY_IN_USE', 'Stream name is already in use');
8892
- /**
8893
- * Error indicates that stream object received by server has empty mediaSessionId field.
8894
- * @event MEDIASESSION_ID_NULL
8895
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8896
- */
8969
+ /**
8970
+ * Server already has a publish stream with the same name, try using different one.
8971
+ * @event STREAM_NAME_ALREADY_IN_USE
8972
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8973
+ */
8974
+ STREAM_NAME_ALREADY_IN_USE: 'Stream name is already in use',
8897
8975
 
8898
- define(streamStatusInfo, 'MEDIASESSION_ID_NULL', 'MediaSessionId is null');
8899
- /**
8900
- * Published or subscribed sessions used this MediaSessionId.
8901
- * @event MEDIASESSION_ID_ALREADY_IN_USE
8902
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8903
- */
8976
+ /**
8977
+ * Error indicates that stream object received by server has empty mediaSessionId field.
8978
+ * @event MEDIASESSION_ID_NULL
8979
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8980
+ */
8981
+ MEDIASESSION_ID_NULL: 'MediaSessionId is null',
8904
8982
 
8905
- define(streamStatusInfo, 'MEDIASESSION_ID_ALREADY_IN_USE', 'MediaSessionId is already in use');
8906
- /**
8907
- * Session is not initialized or terminated on play ordinary stream.
8908
- * @event SESSION_NOT_READY
8909
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8910
- */
8983
+ /**
8984
+ * Published or subscribed sessions used this MediaSessionId.
8985
+ * @event MEDIASESSION_ID_ALREADY_IN_USE
8986
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8987
+ */
8988
+ MEDIASESSION_ID_ALREADY_IN_USE: 'MediaSessionId is already in use',
8911
8989
 
8912
- define(streamStatusInfo, 'SESSION_NOT_READY', 'Session not ready');
8913
- /**
8914
- * Actual session does not exist.
8915
- * @event SESSION_DOES_NOT_EXIST
8916
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8917
- */
8990
+ /**
8991
+ * Session is not initialized or terminated on play ordinary stream.
8992
+ * @event SESSION_NOT_READY
8993
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8994
+ */
8995
+ SESSION_NOT_READY: 'Session not ready',
8918
8996
 
8919
- define(streamStatusInfo, 'SESSION_DOES_NOT_EXIST', 'Session does not exist');
8920
- /**
8921
- * RTSP has wrong format on play stream, check correct of the RTSP url.
8922
- * @event RTSP_HAS_WRONG_FORMAT
8923
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8924
- */
8997
+ /**
8998
+ * Actual session does not exist.
8999
+ * @event SESSION_DOES_NOT_EXIST
9000
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9001
+ */
9002
+ SESSION_DOES_NOT_EXIST: 'Session does not exist',
8925
9003
 
8926
- define(streamStatusInfo, 'RTSP_HAS_WRONG_FORMAT', 'Rtsp has wrong format');
8927
- /**
8928
- * Failed to play vod stream, this format is not supported.
8929
- * @event FILE_HAS_WRONG_FORMAT
8930
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8931
- */
9004
+ /**
9005
+ * RTSP has wrong format on play stream, check the RTSP url validity.
9006
+ * @event RTSP_HAS_WRONG_FORMAT
9007
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9008
+ */
9009
+ RTSP_HAS_WRONG_FORMAT: 'Rtsp has wrong format',
8932
9010
 
8933
- define(streamStatusInfo, 'FILE_HAS_WRONG_FORMAT', 'File has wrong format');
8934
- /**
8935
- * Failed to connect to rtsp stream.
8936
- * @event FAILED_TO_CONNECT_TO_RTSP_STREAM
8937
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8938
- */
9011
+ /**
9012
+ * Failed to play vod stream, this format is not supported.
9013
+ * @event FILE_HAS_WRONG_FORMAT
9014
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9015
+ */
9016
+ FILE_HAS_WRONG_FORMAT: 'File has wrong format',
8939
9017
 
8940
- define(streamStatusInfo, 'FAILED_TO_CONNECT_TO_RTSP_STREAM', 'Failed to connect to rtsp stream');
8941
- /**
8942
- * Rtsp stream is not found, agent received "404-Not Found".
8943
- * @event RTSP_STREAM_NOT_FOUND
8944
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8945
- */
9018
+ /**
9019
+ * Failed to connect to rtsp stream.
9020
+ * @event FAILED_TO_CONNECT_TO_RTSP_STREAM
9021
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9022
+ */
9023
+ FAILED_TO_CONNECT_TO_RTSP_STREAM: 'Failed to connect to rtsp stream',
8946
9024
 
8947
- define(streamStatusInfo, 'RTSP_STREAM_NOT_FOUND', 'Rtsp stream not found');
8948
- /**
8949
- * On shutdown RTSP agent.
8950
- * @event RTSPAGENT_SHUTDOWN
8951
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8952
- */
9025
+ /**
9026
+ * Rtsp stream is not found, agent received "404-Not Found".
9027
+ * @event RTSP_STREAM_NOT_FOUND
9028
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9029
+ */
9030
+ RTSP_STREAM_NOT_FOUND: 'Rtsp stream not found',
8953
9031
 
8954
- define(streamStatusInfo, 'RTSPAGENT_SHUTDOWN', 'RtspAgent shutdown');
8955
- /**
8956
- * Stream failed
8957
- * @event STREAM_FAILED
8958
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8959
- */
9032
+ /**
9033
+ * On shutdown RTSP agent.
9034
+ * @event RTSPAGENT_SHUTDOWN
9035
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9036
+ */
9037
+ RTSPAGENT_SHUTDOWN: 'RtspAgent shutdown',
8960
9038
 
8961
- define(streamStatusInfo, 'STREAM_FAILED', 'Stream failed');
8962
- /**
8963
- * No common codecs on setup track, did not found corresponding trackId->mediaPort.
8964
- * @event NO_COMMON_CODECS
8965
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8966
- */
9039
+ /**
9040
+ * Stream failed
9041
+ * @event STREAM_FAILED
9042
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9043
+ */
9044
+ STREAM_FAILED: 'Stream failed',
8967
9045
 
8968
- define(streamStatusInfo, 'NO_COMMON_CODECS', 'No common codecs');
8969
- /**
8970
- * Bad referenced rtsp link, check for correct, example: rtsp://user:b@d_password@127.0.0.1/stream.
8971
- * @event BAD_URI
8972
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8973
- */
9046
+ /**
9047
+ * No common codecs on setup track, did not found corresponding trackId->mediaPort.
9048
+ * @event NO_COMMON_CODECS
9049
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9050
+ */
9051
+ NO_COMMON_CODECS: 'No common codecs',
8974
9052
 
8975
- define(streamStatusInfo, 'BAD_URI', 'Bad URI');
8976
- /**
8977
- * General VOD error, indicates that Exception occurred while reading/processing media file.
8978
- * @event GOT_EXCEPTION_WHILE_STREAMING_FILE
8979
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8980
- */
9053
+ /**
9054
+ * Bad referenced rtsp link, check for correct, example: rtsp://user:b@d_password@127.0.0.1/stream.
9055
+ * @event BAD_URI
9056
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9057
+ */
9058
+ BAD_URI: 'Bad URI',
8981
9059
 
8982
- define(streamStatusInfo, 'GOT_EXCEPTION_WHILE_STREAMING_FILE', 'Got exception while streaming file');
8983
- /**
8984
- * Requested stream shutdown.
8985
- * @event REQUESTED_STREAM_SHUTDOWN
8986
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8987
- */
9060
+ /**
9061
+ * General VOD error, indicates that Exception occurred while reading/processing media file.
9062
+ * @event GOT_EXCEPTION_WHILE_STREAMING_FILE
9063
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9064
+ */
9065
+ GOT_EXCEPTION_WHILE_STREAMING_FILE: 'Got exception while streaming file',
8988
9066
 
8989
- define(streamStatusInfo, 'REQUESTED_STREAM_SHUTDOWN', 'Requested stream shutdown');
8990
- /**
8991
- * Failed to create movie, file can not be read.
8992
- * @event FAILED_TO_READ_FILE
8993
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
8994
- */
9067
+ /**
9068
+ * Requested stream shutdown.
9069
+ * @event REQUESTED_STREAM_SHUTDOWN
9070
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9071
+ */
9072
+ REQUESTED_STREAM_SHUTDOWN: 'Requested stream shutdown',
8995
9073
 
8996
- define(streamStatusInfo, 'FAILED_TO_READ_FILE', 'Failed to read file');
8997
- /**
8998
- * File does not exist, check filename.
8999
- * @event FILE_NOT_FOUND
9000
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9001
- */
9074
+ /**
9075
+ * Failed to create movie, file can not be read.
9076
+ * @event FAILED_TO_READ_FILE
9077
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9078
+ */
9079
+ FAILED_TO_READ_FILE: 'Failed to read file',
9002
9080
 
9003
- define(streamStatusInfo, 'FILE_NOT_FOUND', 'File not found');
9004
- /**
9005
- * Server failed to establish websocket connection with origin server.
9006
- * @event FAILED_TO_CONNECT_TO_ORIGIN_STREAM
9007
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9008
- */
9081
+ /**
9082
+ * File does not exist, check filename.
9083
+ * @event FILE_NOT_FOUND
9084
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9085
+ */
9086
+ FILE_NOT_FOUND: 'File not found',
9009
9087
 
9010
- define(streamStatusInfo, 'FAILED_TO_CONNECT_TO_ORIGIN_STREAM', 'Failed to connect to origin stream');
9011
- /**
9012
- * CDN stream not found.
9013
- * @event CDN_STREAM_NOT_FOUND
9014
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9015
- */
9088
+ /**
9089
+ * Server failed to establish websocket connection with origin server.
9090
+ * @event FAILED_TO_CONNECT_TO_ORIGIN_STREAM
9091
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9092
+ */
9093
+ FAILED_TO_CONNECT_TO_ORIGIN_STREAM: 'Failed to connect to origin stream',
9016
9094
 
9017
- define(streamStatusInfo, 'CDN_STREAM_NOT_FOUND', 'CDN stream not found');
9018
- /**
9019
- * Indicates that provided URL protocol in stream name is invalid.
9020
- * Valid: vod://file.mp4
9021
- * Invalid: dov://file.mp4
9022
- * @event FAILED_TO_GET_AGENT_STORAGE
9023
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9024
- */
9095
+ /**
9096
+ * CDN stream not found.
9097
+ * @event CDN_STREAM_NOT_FOUND
9098
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9099
+ */
9100
+ CDN_STREAM_NOT_FOUND: 'CDN stream not found',
9025
9101
 
9026
- define(streamStatusInfo, 'FAILED_TO_GET_AGENT_STORAGE', 'Failed to get agent storage');
9027
- /**
9028
- * Shutdown agent servicing origin stream.
9029
- * @event AGENT_SERVICING_ORIGIN_STREAM_IS_SHUTTING_DOWN
9030
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9031
- */
9102
+ /**
9103
+ * Indicates that provided URL protocol in stream name is invalid.
9104
+ * Valid: vod://file.mp4
9105
+ * Invalid: dov://file.mp4
9106
+ * @event FAILED_TO_GET_AGENT_STORAGE
9107
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9108
+ */
9109
+ FAILED_TO_GET_AGENT_STORAGE: 'Failed to get agent storage',
9032
9110
 
9033
- define(streamStatusInfo, 'AGENT_SERVICING_ORIGIN_STREAM_IS_SHUTTING_DOWN', 'Agent servicing origin stream is shutting down');
9034
- /**
9035
- * Terminated by keep-alive on walk through subscribers.
9036
- * @event TERMINATED_BY_KEEP_ALIVE
9037
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9038
- */
9111
+ /**
9112
+ * Shutdown agent servicing origin stream.
9113
+ * @event AGENT_SERVICING_ORIGIN_STREAM_IS_SHUTTING_DOWN
9114
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9115
+ */
9116
+ AGENT_SERVICING_ORIGIN_STREAM_IS_SHUTTING_DOWN: 'Agent servicing origin stream is shutting down',
9039
9117
 
9040
- define(streamStatusInfo, 'TERMINATED_BY_KEEP_ALIVE', 'Terminated by keep-alive');
9041
- /**
9042
- * Transcoding required, but disabled in settings
9043
- * @event TRANSCODING_REQUIRED_BUT_DISABLED
9044
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9045
- */
9118
+ /**
9119
+ * Terminated by keep-alive on walk through subscribers.
9120
+ * @event TERMINATED_BY_KEEP_ALIVE
9121
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9122
+ */
9123
+ TERMINATED_BY_KEEP_ALIVE: 'Terminated by keep-alive',
9046
9124
 
9047
- define(streamStatusInfo, 'TRANSCODING_REQUIRED_BUT_DISABLED', 'Transcoding required, but disabled');
9048
- /**
9049
- * Access restricted by access list
9050
- * @event RESTRICTED_ACCESS
9051
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9052
- */
9125
+ /**
9126
+ * Transcoding required, but disabled in server settings
9127
+ * @event TRANSCODING_REQUIRED_BUT_DISABLED
9128
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9129
+ */
9130
+ TRANSCODING_REQUIRED_BUT_DISABLED: 'Transcoding required, but disabled',
9053
9131
 
9054
- define(streamStatusInfo, 'RESTRICTED_ACCESS', 'Restricted access');
9055
- /**
9056
- * No available transcoders for stream
9057
- * @event RESTRICTED_ACCESS
9058
- * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9059
- */
9132
+ /**
9133
+ * Access restricted by access list
9134
+ * @event RESTRICTED_ACCESS
9135
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9136
+ */
9137
+ RESTRICTED_ACCESS: 'Restricted access',
9060
9138
 
9061
- define(streamStatusInfo, 'NO_AVAILABLE_TRANSCODERS', 'No available transcoders');
9139
+ /**
9140
+ * No available transcoders for stream
9141
+ * @event NO_AVAILABLE_TRANSCODERS
9142
+ * @memberof Flashphoner.constants.STREAM_STATUS_INFO
9143
+ */
9144
+ NO_AVAILABLE_TRANSCODERS: 'No available transcoders'
9145
+ });
9062
9146
  /**
9063
9147
  * @namespace Flashphoner.constants.CALL_STATUS_INFO
9064
9148
  * @see Call
9065
9149
  */
9066
9150
 
9067
- var callStatusInfo = {};
9068
- /**
9069
- * Normal call hangup.
9070
- * @event NORMAL_CALL_CLEARING
9071
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9072
- */
9073
-
9074
- define(callStatusInfo, 'NORMAL_CALL_CLEARING', 'Normal call clearing');
9075
- /**
9076
- * Error occurred on session creation.
9077
- * @event FAILED_BY_SESSION_CREATION
9078
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9079
- */
9151
+ var CALL_STATUS_INFO = Object.freeze({
9152
+ /**
9153
+ * Normal call hangup.
9154
+ * @event NORMAL_CALL_CLEARING
9155
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9156
+ */
9157
+ NORMAL_CALL_CLEARING: 'Normal call clearing',
9080
9158
 
9081
- define(callStatusInfo, 'FAILED_BY_SESSION_CREATION', 'Failed by session creation');
9082
- /**
9083
- * Failed by error during ICE establishment.
9084
- * @event FAILED_BY_ICE_ERROR
9085
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9086
- */
9159
+ /**
9160
+ * Error occurred while creating a session
9161
+ * @event FAILED_BY_SESSION_CREATION
9162
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9163
+ */
9164
+ FAILED_BY_SESSION_CREATION: 'Failed by session creation',
9087
9165
 
9088
- define(callStatusInfo, 'FAILED_BY_ICE_ERROR', 'Failed by ICE error');
9089
- /**
9090
- * RTP session failed by RTP activity timer.
9091
- * @event FAILED_BY_RTP_ACTIVITY
9092
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9093
- */
9166
+ /**
9167
+ * Failed by error during ICE establishment.
9168
+ * @event FAILED_BY_ICE_ERROR
9169
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9170
+ */
9171
+ FAILED_BY_ICE_ERROR: 'Failed by ICE error',
9094
9172
 
9095
- define(callStatusInfo, 'FAILED_BY_RTP_ACTIVITY', 'Failed by RTP activity');
9096
- /**
9097
- * FF writer was failed on RTMP.
9098
- * @event FAILED_BY_RTMP_WRITER_ERROR
9099
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9100
- */
9173
+ /**
9174
+ * RTP session failed by RTP activity timer.
9175
+ * @event FAILED_BY_RTP_ACTIVITY
9176
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9177
+ */
9178
+ FAILED_BY_RTP_ACTIVITY: 'Failed by RTP activity',
9101
9179
 
9102
- define(callStatusInfo, 'FAILED_BY_RTMP_WRITER_ERROR', 'Failed by RTMP writer error');
9103
- /**
9104
- * DTLS wrong fingerprint.
9105
- * @event FAILED_BY_DTLS_FINGERPRINT_ERROR
9106
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9107
- */
9180
+ /**
9181
+ * FF writer was failed on RTMP.
9182
+ * @event FAILED_BY_RTMP_WRITER_ERROR
9183
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9184
+ */
9185
+ FAILED_BY_RTMP_WRITER_ERROR: 'Failed by RTMP writer error',
9108
9186
 
9109
- define(callStatusInfo, 'FAILED_BY_DTLS_FINGERPRINT_ERROR', 'Failed by DTLS fingerprint error');
9110
- /**
9111
- * No common codecs in sdp
9112
- * @event NO_COMMON_CODECS
9113
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9114
- */
9187
+ /**
9188
+ * DTLS wrong fingerprint.
9189
+ * @event FAILED_BY_DTLS_FINGERPRINT_ERROR
9190
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9191
+ */
9192
+ FAILED_BY_DTLS_FINGERPRINT_ERROR: 'Failed by DTLS fingerprint error',
9115
9193
 
9116
- define(callStatusInfo, 'NO_COMMON_CODECS', 'No common codecs');
9117
- /**
9118
- * Client did not send DTLS packets or packets were lost/corrupted during transmission.
9119
- * @event FAILED_BY_DTLS_ERROR
9120
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9121
- */
9194
+ /**
9195
+ * No common codecs in sdp
9196
+ * @event NO_COMMON_CODECS
9197
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9198
+ */
9199
+ NO_COMMON_CODECS: 'No common codecs',
9122
9200
 
9123
- define(callStatusInfo, 'FAILED_BY_DTLS_ERROR', 'Failed by DTLS error');
9124
- /**
9125
- * Error occurred during call
9126
- * @event FAILED_BY_ERROR
9127
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9128
- */
9201
+ /**
9202
+ * Client did not send DTLS packets or packets were lost/corrupted during transmission.
9203
+ * @event FAILED_BY_DTLS_ERROR
9204
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9205
+ */
9206
+ FAILED_BY_DTLS_ERROR: 'Failed by DTLS error',
9129
9207
 
9130
- define(callStatusInfo, 'FAILED_BY_ERROR', 'Failed by error');
9131
- /**
9132
- * Call failed by request timeout
9133
- * @event FAILED_BY_REQUEST_TIMEOUT
9134
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9135
- */
9208
+ /**
9209
+ * Error occurred during the call
9210
+ * @event FAILED_BY_ERROR
9211
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9212
+ */
9213
+ FAILED_BY_ERROR: 'Failed by error',
9136
9214
 
9137
- define(callStatusInfo, 'FAILED_BY_REQUEST_TIMEOUT', 'Failed by request timeout');
9138
- /**
9139
- * Transcoding required, but disabled in settings
9140
- * @event TRANSCODING_REQUIRED_BUT_DISABLED
9141
- * @memberof Flashphoner.constants.CALL_STATUS_INFO
9142
- */
9215
+ /**
9216
+ * Call failed by request timeout
9217
+ * @event FAILED_BY_REQUEST_TIMEOUT
9218
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9219
+ */
9220
+ FAILED_BY_REQUEST_TIMEOUT: 'Failed by request timeout',
9143
9221
 
9144
- define(callStatusInfo, 'TRANSCODING_REQUIRED_BUT_DISABLED', 'Transcoding required, but disabled');
9222
+ /**
9223
+ * Transcoding required, but disabled in settings
9224
+ * @event TRANSCODING_REQUIRED_BUT_DISABLED
9225
+ * @memberof Flashphoner.constants.CALL_STATUS_INFO
9226
+ */
9227
+ TRANSCODING_REQUIRED_BUT_DISABLED: 'Transcoding required, but disabled'
9228
+ });
9145
9229
  /**
9146
9230
  * @namespace Flashphoner.constants.ERROR_INFO
9147
9231
  */
9148
9232
 
9149
- var errorInfo = {};
9150
- /**
9151
- * Error if none of MediaProviders available
9152
- * @event NONE_OF_MEDIAPROVIDERS_AVAILABLE
9153
- * @memberof Flashphoner.constants.ERROR_INFO
9154
- */
9233
+ var ERROR_INFO = Object.freeze({
9234
+ /**
9235
+ * Error if none of MediaProviders available
9236
+ * @event NONE_OF_MEDIAPROVIDERS_AVAILABLE
9237
+ * @memberof Flashphoner.constants.ERROR_INFO
9238
+ */
9239
+ NONE_OF_MEDIAPROVIDERS_AVAILABLE: 'None of MediaProviders available',
9155
9240
 
9156
- define(errorInfo, 'NONE_OF_MEDIAPROVIDERS_AVAILABLE', 'None of MediaProviders available');
9157
- /**
9158
- * Error if none of preferred MediaProviders available
9159
- * @event NONE_OF_PREFERRED_MEDIAPROVIDERS_AVAILABLE
9160
- * @memberof Flashphoner.constants.ERROR_INFO
9161
- */
9241
+ /**
9242
+ * Error if none of preferred MediaProviders available
9243
+ * @event NONE_OF_PREFERRED_MEDIAPROVIDERS_AVAILABLE
9244
+ * @memberof Flashphoner.constants.ERROR_INFO
9245
+ */
9246
+ NONE_OF_PREFERRED_MEDIAPROVIDERS_AVAILABLE: 'None of preferred MediaProviders available',
9162
9247
 
9163
- define(errorInfo, 'NONE_OF_PREFERRED_MEDIAPROVIDERS_AVAILABLE', 'None of preferred MediaProviders available');
9164
- /**
9165
- * Error if API is not initialized
9166
- * @event FLASHPHONER_API_NOT_INITIALIZED
9167
- * @memberof Flashphoner.constants.ERROR_INFO
9168
- */
9248
+ /**
9249
+ * Error if API is not initialized
9250
+ * @event FLASHPHONER_API_NOT_INITIALIZED
9251
+ * @memberof Flashphoner.constants.ERROR_INFO
9252
+ */
9253
+ FLASHPHONER_API_NOT_INITIALIZED: 'Flashphoner API is not initialized',
9169
9254
 
9170
- define(errorInfo, 'FLASHPHONER_API_NOT_INITIALIZED', 'Flashphoner API is not initialized');
9171
- /**
9172
- * Error if options.urlServer is not specified
9173
- * @event OPTIONS_URLSERVER_MUST_BE_PROVIDED
9174
- * @memberof Flashphoner.constants.ERROR_INFO
9175
- */
9255
+ /**
9256
+ * Error if options.urlServer is not specified
9257
+ * @event OPTIONS_URLSERVER_MUST_BE_PROVIDED
9258
+ * @memberof Flashphoner.constants.ERROR_INFO
9259
+ */
9260
+ OPTIONS_URLSERVER_MUST_BE_PROVIDED: 'options.urlServer must be provided',
9176
9261
 
9177
- define(errorInfo, 'OPTIONS_URLSERVER_MUST_BE_PROVIDED', 'options.urlServer must be provided');
9178
- /**
9179
- * Error if session state is not REGISTERED
9180
- * @event INVALID_SESSION_STATE
9181
- * @memberof Flashphoner.constants.ERROR_INFO
9182
- */
9262
+ /**
9263
+ * Error if session state is not valid
9264
+ * @event INVALID_SESSION_STATE
9265
+ * @memberof Flashphoner.constants.ERROR_INFO
9266
+ */
9267
+ INVALID_SESSION_STATE: 'Invalid session state',
9183
9268
 
9184
- define(errorInfo, 'INVALID_SESSION_STATE', 'Invalid session state');
9185
- /**
9186
- * Error if no options provided
9187
- * @event OPTIONS_MUST_BE_PROVIDED
9188
- * @memberof Flashphoner.constants.ERROR_INFO
9189
- */
9269
+ /**
9270
+ * Error if no options provided
9271
+ * @event OPTIONS_MUST_BE_PROVIDED
9272
+ * @memberof Flashphoner.constants.ERROR_INFO
9273
+ */
9274
+ OPTIONS_MUST_BE_PROVIDED: 'options must be provided',
9190
9275
 
9191
- define(errorInfo, 'OPTIONS_MUST_BE_PROVIDED', 'options must be provided');
9192
- /**
9193
- * Error if call status is not {@link Flashphoner.constants.CALL_STATUS.NEW}
9194
- * @event INVALID_CALL_STATE
9195
- * @memberof Flashphoner.constants.ERROR_INFO
9196
- */
9276
+ /**
9277
+ * Error if call status is not {@link Flashphoner.constants.CALL_STATUS.NEW}
9278
+ * @event INVALID_CALL_STATE
9279
+ * @memberof Flashphoner.constants.ERROR_INFO
9280
+ */
9281
+ INVALID_CALL_STATE: 'Invalid call state',
9197
9282
 
9198
- define(errorInfo, 'INVALID_CALL_STATE', 'Invalid call state');
9199
- /**
9200
- * Error if event is not specified
9201
- * @event EVENT_CANT_BE_NULL
9202
- * @memberof Flashphoner.constants.ERROR_INFO
9203
- */
9283
+ /**
9284
+ * Error if event is not specified
9285
+ * @event EVENT_CANT_BE_NULL
9286
+ * @memberof Flashphoner.constants.ERROR_INFO
9287
+ */
9288
+ EVENT_CANT_BE_NULL: 'Event can\'t be null',
9289
+
9290
+ /**
9291
+ * Error if callback is not a valid function
9292
+ * @event CALLBACK_NEEDS_TO_BE_A_VALID_FUNCTION
9293
+ * @memberof Flashphoner.constants.ERROR_INFO
9294
+ */
9295
+ CALLBACK_NEEDS_TO_BE_A_VALID_FUNCTION: 'Callback needs to be a valid function',
9204
9296
 
9205
- define(errorInfo, 'EVENT_CANT_BE_NULL', 'Event can\'t be null');
9297
+ /**
9298
+ * Error if options.name is not specified
9299
+ * @event OPTIONS_NAME_MUST_BE_PROVIDED
9300
+ * @memberof Flashphoner.constants.ERROR_INFO
9301
+ */
9302
+ OPTIONS_NAME_MUST_BE_PROVIDED: 'options.name must be provided',
9303
+
9304
+ /**
9305
+ * Error if number of cams is less than 2 or camera is already used by other application
9306
+ * @event CAN_NOT_SWITCH_CAM
9307
+ * @memberOf Flashphoner.constants.ERROR_INFO
9308
+ */
9309
+ CAN_NOT_SWITCH_CAM: 'Number of cams is less than 2 or camera is already used by other application',
9310
+
9311
+ /**
9312
+ * Error if number of mics is less than 2 or microphone is already used by other application
9313
+ * @event CAN_NOT_SWITCH_MIC
9314
+ * @memberOf Flashphoner.constants.ERROR_INFO
9315
+ */
9316
+ CAN_NOT_SWITCH_MIC: 'Number of mics is less than 2 or microphone is already used by other application',
9317
+
9318
+ /**
9319
+ * Local browser error detected
9320
+ * @event LOCAL_ERROR
9321
+ * @memberOf Flashphoner.constants.ERROR_INFO
9322
+ */
9323
+ LOCAL_ERROR: 'Local error'
9324
+ });
9206
9325
  /**
9207
- * Error if callback is not a valid function
9208
- * @event CALLBACK_NEEDS_TO_BE_A_VALID_FUNCTION
9209
- * @memberof Flashphoner.constants.ERROR_INFO
9326
+ * Local media devices type
9327
+ * @namespace Flashphoner.constants.MEDIA_DEVICE_KIND
9210
9328
  */
9211
9329
 
9212
- define(errorInfo, 'CALLBACK_NEEDS_TO_BE_A_VALID_FUNCTION', 'Callback needs to be a valid function');
9330
+ var MEDIA_DEVICE_KIND = Object.freeze({
9331
+ /**
9332
+ * List local media output devices
9333
+ * @see Flashphoner.getMediaDevices
9334
+ * @memberOf Flashphoner.constants.MEDIA_DEVICE_KIND
9335
+ */
9336
+ OUTPUT: 'output',
9337
+
9338
+ /**
9339
+ * List local media input devices
9340
+ * @see Flashphoner.getMediaDevices
9341
+ * @memberOf Flashphoner.constants.MEDIA_DEVICE_KIND
9342
+ */
9343
+ INPUT: 'input',
9344
+
9345
+ /**
9346
+ * List local media devices
9347
+ * @see Flashphoner.getMediaDevices
9348
+ * @memberOf Flashphoner.constants.MEDIA_DEVICE_KIND
9349
+ */
9350
+ ALL: 'all'
9351
+ });
9213
9352
  /**
9214
- * Error if session state is not ESTABLISHED
9215
- * @event INVALID_SESSION_STATE
9216
- * @memberof Flashphoner.constants.ERROR_INFO
9353
+ * WebRTC transport type
9354
+ * @namespace Flashphoner.constants.TRANSPORT_TYPE
9217
9355
  */
9218
9356
 
9219
- define(errorInfo, 'INVALID_SESSION_STATE', 'Invalid session state');
9357
+ var TRANSPORT_TYPE = Object.freeze({
9358
+ /**
9359
+ * WebRTC RTP traffic goes over UDP (default)
9360
+ * @see Stream
9361
+ * @memberOf Flashphoner.constants.TRANSPORT_TYPE
9362
+ */
9363
+ UDP: 'UDP',
9364
+
9365
+ /**
9366
+ * WebRTC RTP traffic goes over TCP
9367
+ * @see Stream
9368
+ * @memberOf Flashphoner.constants.TRANSPORT_TYPE
9369
+ */
9370
+ TCP: 'TCP'
9371
+ });
9220
9372
  /**
9221
- * Error if options.name is not specified
9222
- * @event OPTIONS_NAME_MUST_BE_PROVIDED
9223
- * @memberof Flashphoner.constants.ERROR_INFO
9373
+ * WebRTC connection quality type
9374
+ * @namespace Flashphoner.constants.CONNECTION_QUALITY
9224
9375
  */
9225
9376
 
9226
- define(errorInfo, 'OPTIONS_NAME_MUST_BE_PROVIDED', 'options.name must be provided');
9377
+ var CONNECTION_QUALITY = Object.freeze({
9378
+ /**
9379
+ * Channel bandwidth is perfect
9380
+ * @see Stream
9381
+ * @memberOf Flashphoner.constants.CONNECTION_QUALITY
9382
+ */
9383
+ PERFECT: 'PERFECT',
9384
+
9385
+ /**
9386
+ * Channel bandwidth is good
9387
+ * @see Stream
9388
+ * @memberOf Flashphoner.constants.CONNECTION_QUALITY
9389
+ */
9390
+ GOOD: 'GOOD',
9391
+
9392
+ /**
9393
+ * Channel bandwidth is bad
9394
+ * @see Stream
9395
+ * @memberOf Flashphoner.constants.CONNECTION_QUALITY
9396
+ */
9397
+ BAD: 'BAD',
9398
+
9399
+ /**
9400
+ * Channel bandwidth is unknown (initial state)
9401
+ * @see Stream
9402
+ * @memberOf Flashphoner.constants.CONNECTION_QUALITY
9403
+ */
9404
+ UNKNOWN: 'UNKNOWN',
9405
+
9406
+ /**
9407
+ * Channel bandwidth is updating
9408
+ * @see Stream
9409
+ * @memberOf Flashphoner.constants.CONNECTION_QUALITY
9410
+ */
9411
+ UPDATE: 'UPDATE'
9412
+ });
9227
9413
  /**
9228
- * Error if number of cams is less than 2 or already used custom stream
9229
- * @event CAN_NOT_SWITCH_CAM
9230
- * @memberOf Flashphoner.constants.ERROR_INFO
9414
+ * Websocket signaling stream event
9415
+ * @see Stream
9416
+ * @memberOf Flashphoner.constants
9231
9417
  */
9232
9418
 
9233
- define(errorInfo, 'CAN_NOT_SWITCH_CAM', 'Number of cams is less than 2 or already used custom stream');
9419
+ var STREAM_EVENT = 'STREAM_EVENT';
9234
9420
  /**
9235
- * Error if number of mics is less than 2 or already used custom stream
9236
- * @event CAN_NOT_SWITCH_MIC
9237
- * @memberOf Flashphoner.constants.ERROR_INFO
9421
+ * Websocket signaling stream event type
9422
+ * @namespace Flashphoner.constants.STREAM_EVENT_TYPE
9238
9423
  */
9239
9424
 
9240
- define(errorInfo, 'CAN_NOT_SWITCH_MIC', 'Number of mics is less than 2 or already used custom stream');
9425
+ var STREAM_EVENT_TYPE = Object.freeze({
9426
+ /**
9427
+ * Stream audio is muted
9428
+ * @see Stream
9429
+ * @memberOf Flashphoner.constants.STREAM_EVENT_TYPE
9430
+ */
9431
+ AUDIO_MUTED: 'audioMuted',
9432
+
9433
+ /**
9434
+ * Stream audio is unmuted
9435
+ * @see Stream
9436
+ * @memberOf Flashphoner.constants.STREAM_EVENT_TYPE
9437
+ */
9438
+ AUDIO_UNMUTED: 'audioUnmuted',
9439
+
9440
+ /**
9441
+ * Stream video is muted
9442
+ * @see Stream
9443
+ * @memberOf Flashphoner.constants.STREAM_EVENT_TYPE
9444
+ */
9445
+ VIDEO_MUTED: 'videoMuted',
9446
+
9447
+ /**
9448
+ * Stream videoo is unmuted
9449
+ * @see Stream
9450
+ * @memberOf Flashphoner.constants.STREAM_EVENT_TYPE
9451
+ */
9452
+ VIDEO_UNMUTED: 'videoUnmuted',
9453
+
9454
+ /**
9455
+ * Data bound to the stream are received
9456
+ * @see Stream
9457
+ * @memberOf Flashphoner.constants.STREAM_EVENT_TYPE
9458
+ */
9459
+ DATA: 'data'
9460
+ });
9241
9461
  /**
9242
- * Error if recived local error
9243
- * @event CAN_NOT_SWITCH_MIC
9244
- * @memberOf Flashphoner.constants.ERROR_INFO
9462
+ * WebRTC video content hint type
9463
+ * @namespace Flashphoner.constants.CONTENT_HINT_TYPE
9245
9464
  */
9246
9465
 
9247
- define(errorInfo, 'LOCAL_ERROR', 'Local error');
9248
- var mediaDeviceKind = {};
9249
- define(mediaDeviceKind, 'OUTPUT', 'output');
9250
- define(mediaDeviceKind, 'INPUT', 'input');
9251
- define(mediaDeviceKind, 'ALL', 'all');
9252
- var transportType = {};
9253
- define(transportType, 'UDP', 'UDP');
9254
- define(transportType, 'TCP', 'TCP');
9255
- var connectionQuality = {};
9256
- define(connectionQuality, 'PERFECT', 'PERFECT');
9257
- define(connectionQuality, 'GOOD', 'GOOD');
9258
- define(connectionQuality, 'BAD', 'BAD');
9259
- define(connectionQuality, 'UNKNOWN', 'UNKNOWN');
9260
- define(connectionQuality, 'UPDATE', 'UPDATE');
9261
- var streamEventType = {};
9262
- define(streamEventType, 'AUDIO_MUTED', 'audioMuted');
9263
- define(streamEventType, 'AUDIO_UNMUTED', 'audioUnmuted');
9264
- define(streamEventType, 'VIDEO_MUTED', 'videoMuted');
9265
- define(streamEventType, 'VIDEO_UNMUTED', 'videoUnmuted');
9266
- define(streamEventType, 'DATA', 'data');
9267
- var contentHintType = {};
9268
- define(contentHintType, 'MOTION', 'motion');
9269
- define(contentHintType, 'DETAIL', 'detail');
9270
- define(contentHintType, 'TEXT', 'text');
9271
- var constants = {};
9272
- define(constants, 'SESSION_STATUS', sessionStatus);
9273
- define(constants, 'STREAM_EVENT_TYPE', streamEventType);
9274
- define(constants, 'STREAM_EVENT', 'STREAM_EVENT');
9275
- define(constants, 'STREAM_STATUS', streamStatus);
9276
- define(constants, 'CALL_STATUS', callStatus);
9277
- define(constants, 'STREAM_STATUS_INFO', streamStatusInfo);
9278
- define(constants, 'CALL_STATUS_INFO', callStatusInfo);
9279
- define(constants, 'ERROR_INFO', errorInfo);
9280
- define(constants, 'MEDIA_DEVICE_KIND', mediaDeviceKind);
9281
- define(constants, 'TRANSPORT_TYPE', transportType);
9282
- define(constants, 'CONNECTION_QUALITY', connectionQuality);
9283
- define(constants, 'CONTENT_HINT_TYPE', contentHintType); //define helper
9284
-
9285
- function define(obj, name, value) {
9286
- Object.defineProperty(obj, name, {
9287
- value: value,
9288
- enumerable: true
9289
- });
9290
- }
9466
+ var CONTENT_HINT_TYPE = Object.freeze({
9467
+ /**
9468
+ * Video content is motion (webcam case): keep FPS, resolution and bitrate may change
9469
+ * @see Stream
9470
+ * @memberOf Flashphoner.constants.CONTENT_HINT_TYPE
9471
+ */
9472
+ MOTION: 'motion',
9473
+
9474
+ /**
9475
+ * Video content is detail (sreen sharing case): keep resolution, bitrate may change, FPS may drop
9476
+ * @see Stream
9477
+ * @memberOf Flashphoner.constants.CONTENT_HINT_TYPE
9478
+ */
9479
+ DETAIL: 'detail',
9291
9480
 
9292
- module.exports = constants;
9481
+ /**
9482
+ * Video content is text (sreen sharing case): keep resolution and bitrate, FPS may drop
9483
+ * @see Stream
9484
+ * @memberOf Flashphoner.constants.CONTENT_HINT_TYPE
9485
+ */
9486
+ TEXT: 'text'
9487
+ });
9488
+ module.exports = {
9489
+ SESSION_STATUS: SESSION_STATUS,
9490
+ STREAM_STATUS: STREAM_STATUS,
9491
+ CALL_STATUS: CALL_STATUS,
9492
+ STREAM_STATUS_INFO: STREAM_STATUS_INFO,
9493
+ CALL_STATUS_INFO: CALL_STATUS_INFO,
9494
+ ERROR_INFO: ERROR_INFO,
9495
+ MEDIA_DEVICE_KIND: MEDIA_DEVICE_KIND,
9496
+ TRANSPORT_TYPE: TRANSPORT_TYPE,
9497
+ CONNECTION_QUALITY: CONNECTION_QUALITY,
9498
+ STREAM_EVENT: STREAM_EVENT,
9499
+ STREAM_EVENT_TYPE: STREAM_EVENT_TYPE,
9500
+ CONTENT_HINT_TYPE: CONTENT_HINT_TYPE
9501
+ };
9293
9502
 
9294
9503
  },{}],40:[function(require,module,exports){
9295
9504
  'use strict';
@@ -10562,7 +10771,7 @@ var createSession = function createSession(options) {
10562
10771
  mediaProviders: Object.keys(MediaProvider),
10563
10772
  keepAlive: keepAlive,
10564
10773
  authToken: authToken,
10565
- clientVersion: "2.0.216",
10774
+ clientVersion: "2.0.217",
10566
10775
  clientOSVersion: window.navigator.appVersion,
10567
10776
  clientBrowserVersion: window.navigator.userAgent,
10568
10777
  msePacketizationVersion: 2,