User Tools

Site Tools


en:tvip_tms_faq_new

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:tvip_tms_faq_new [2021/10/27 15:55]
Виталий Журавлев [Enabling option of VOD]
en:tvip_tms_faq_new [2022/12/19 12:04]
Виталий Журавлев [Channel selection priority]
Line 6: Line 6:
 Set account login and password and save changes: Set account login and password and save changes:
  
-{{:en:private:​screenshot_from_2020-04-03_12-03-40.png?400|}}+{{:en:screenshot_from_2022-09-30_17-21-02.png?​400|}} ​ 
  
-STB without [[provisioning| provision]],​ may be configure by this way:+STB without [[provisioning| provision]],​ may be configure by this way:  
  
-From the Launcher screen go to TV settings+From the Launcher screen go to TV settings ​ 
  
-{{::stb_login_step_01.jpg?400|}}+{{:en:main1.png?400|}}
  
 Choose Middleware API protocol (same as jsonapi in provision) Choose Middleware API protocol (same as jsonapi in provision)
  
- +{{:en:main2.png?400|}}
-{{::stb_login_step_02.jpg?400|}}+
  
 Setup protocol: Setup protocol:
  
-{{::stb_login_step_04.jpg?400|}}+{{:en:main5.png?400|}}
  
 As server you must setup address of your server, example has http://​tvip.media as server address: As server you must setup address of your server, example has http://​tvip.media as server address:
Line 27: Line 26:
 After applying server you must see "​Register"​ button, click button and enter account credentials. After applying server you must see "​Register"​ button, click button and enter account credentials.
  
-{{::stb_login_step_05.jpg?400|}}+{{:en:main4.png?400|}}
  
 After successful registration you can go to TV interface and check channel availability. After successful registration you can go to TV interface and check channel availability.
  
-{{::stb_login_step_08.jpg?400|}}+{{:en:screenshot_from_2022-10-03_11-01-31.png?400|}}
  
  
Line 113: Line 112:
 From **4.0.11** version icon changed to cinema film in the EPG screen: From **4.0.11** version icon changed to cinema film in the EPG screen:
  
-{{:dvr_4.0.13.jpg?​400|}} ​+{{:en:​screenshot_from_2022-10-03_11-02-50.png?​400|}} ​  
 STB used "deep value" from TMS, if archive unavailable STB return to live stream. STB used "deep value" from TMS, if archive unavailable STB return to live stream.
  
Line 175: Line 175:
 systemctl restart gateway-tvip-cas-api systemctl restart gateway-tvip-cas-api
 </​code>​ </​code>​
 +
 +==== Authorization of access to the stream by token on the streamer ====
 +
 +=== How it works ===
 +
 +  * TMS sends an access token to the device along with a link to the stream
 +  * the device calls the streamer for the stream and passes the token
 +  * the streamer checks the token using a known algorithm and allows/​denies access to the stream depending on the token
 +
 +=== Token Generation Format ===
 +<​code>​
 +
 +<​expires><​path><​key><​ip>​
 +
 +</​code>​
 +  * key - secret row
 +  * ip - ip address of client
 +
 +=== TVIP TMS Settings ===
 +
 +  * Enable token settings for provider
 +
 +Provider section -> Your Provider, specify Secure link algoritm **WOWZA_TOKEN**
 +
 +  * Secret row settings and Time to live of token.
 +In config file on TMS add next: **/​opt/​tvip-tms/​gateway/​gateway-tvip-tms-tvip-api/​application-prod.yml**
 +<​code>​
 +wowza:
 +    app:
 +       ​secret:​
 +          key: yourverysecretkey
 +          ttl: 87000
 +</​code>​
 +  * restart service for applying settings
 +<​code>​
 +systemctl restart gateway-tvip-tms-tvip-api
 +</​code>​
 +
 +
 +=== Setting up a token check on the example of a web server Nginx ===
 +
 +<​code>​
 +location / {
 +  set $secret "​yourverysecretkey1";​
 +  secure_link $arg_secure,​$arg_expires;​
 +  secure_link_md5 "​$arg_expires$uri$secret$remote_addr";​
 +
 +  if ($secure_link = ""​) {
 +    return 403;
 +  }
 +
 +  if ($secure_link = "​0"​) {
 +    return 410;
 +  }
 +}
 +</​code>​
 +
  
 ===== Regions in TVIP TMS  ===== ===== Regions in TVIP TMS  =====
Line 251: Line 308:
  
  
 +===== Channel selection priority =====
 +
 +
 +For a specific channel, you can set a priority - this allows you to show a specific channel after the set-top box goes into standby mode or reboots.\\
 +This is configurable via TMS: create a new channel and in the "​Extra"​ section in the "​Channel Selection Priority"​ field, set the value.\\
 +You could to possible to assign different priorities for channels, the highest priority is selected by default, the use of different priority values ​​allows you to make tariffs with different priority channels.\\
 +
 +{{:​en:​channelprorityen.png?​600|}}
 +===== How to enable logs at TMS =====
 +
 +
 +You should enable logging for each micro-service.\\
 +All log files located in /​var/​log/​tvip-tms folder
 +
 +    * application.log - general log file of application
 +    * framework.log - service log file
 +    * access.log - information of external operation
 +    * audit.log - extended information of external operation
 +
 +Enabling logs to configure file: **/​opt/​tvip-tms/​*/​manager-tvip-tms-//​*name///​application-prod.yml**
 +<​code>​
 +logging:
 +    config: log4j2-example.yml
 +</​code>​
 +
 +
 +Then you should restart micro-service .
 +<​code>​
 +systemctl restart manager-tvip-*name.service
 +</​code>​
 +
 +
 +:!: Where  //*name// - the micro-service name
  
 ===== Recommended parameters for icons ===== ===== Recommended parameters for icons =====
en/tvip_tms_faq_new.txt · Last modified: 2023/01/10 16:03 by Виталий Журавлев