Embed Player redirecting to login Page

appsgenii

New Member
I am tring to embed player in iframe but it redirecting to Login screen. Kindly help this.

Example Embed URL:

https://HOST_URL/embed_player?urlServer=wss://tv2.gamezapi.com:8443&mediaProviders=WebRTC,Flash,MSE,WSPlayer&streamName=RTSP_URL
 

Max

Administrator
Staff member
We checked your setup.
You completely removed demo user. In this case, all the examples including Embed Player cannot be opened by direct link. So you should restore demo user for your embedding code sample to work.
Please add the following string to database.yml file to users section
Code:
users:
  admin: {username: admin, password: ********, active: true}
  demo: {username: demo, password: fe01ce2a7fbac8fafaed7c982a04e229, active: true} # <<< this string
  restAdmin: {username: restAdmin, password: ********, active: true}
and restart server.
If you do not want to use WCS web admin inteface, please disable it with the following parameter in flashphoner.properties
Code:
http_enable_paths=rest,action,shared,embed_player,empty
In this case, login page and web admin interface will be unavailabe, but Embed Player, REST API and statistics page will work.
 
Top