After updating to the version 5.2.791 the WebRTC publish and play events on iPhone stopped working if we enable rest hook validation. Flashphoner creates the session but throws STREAM_STATUS.FAILED. Our rest validation is returning http 200. Same rest validation is working on Android and Desktop. Same rest validation is working on version 5.2.479. If we disable the rest validation (disable_rest_requests=true) iPhone publish and play events works. There is no error in the log, it shows as the session was normally terminated.
We have experienced same results in your test application. If we disable_rest_requests=true works, if we enable rest, it does not works.
Sample code:
Any idea?
We have experienced same results in your test application. If we disable_rest_requests=true works, if we enable rest, it does not works.
Sample code:
Code:
var custom_data = {ourhash: "abcdefghijklmnopqrstuvxz"};
var url = 'wss://ourdomain.com:8443';
var stream_name = 'test';
var container = document.getElementById('player');
var PRELOADER_URL = "../../dependencies/media/preloader.mp4";
Flashphoner.playFirstVideo(container, true, PRELOADER_URL).then(function () {
var connect_options = {
urlServer: url,
custom: custom_data,
appKey: 'myApp'
};
session = Flashphoner.createSession(connect_options).on(SESSION_STATUS.ESTABLISHED, function(session){
alert("Session created");
var stream_options = {
name: stream_name,
display: container,
cacheLocalResources: true,
custom: custom_data,
transport: "TCP"
};
session.createStream(stream_options).on(STREAM_STATUS.PUBLISHING, function(publishStream){
alert("Publish started");
}).on(STREAM_STATUS.UNPUBLISHED, function(){
alert("Publish stoped");
}).on(STREAM_STATUS.FAILED, function(stream){
alert("Publish failed");
}).publish();
}).on(SESSION_STATUS.DISCONNECTED, function(){
alert("Session disconnected");
}).on(SESSION_STATUS.FAILED, function(){
alert("Session failed");
});
});