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 revisionPrevious revision
Next revision
Previous revision
en:tvip_tms_faq_new [2021/10/06 08:19] – [Enabling option of VOD] Виталий Журавлевen:tvip_tms_faq_new [2023/01/10 13:03] (current) – [How to enable logs at TMS] Виталий Журавлев
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 230: Line 287:
 </code> </code>
  
-2. You should get TMDB api key, for function of automatic import+2. Restart service of gateway-tvip-tms-tvip-api 
 +<code> 
 +systemctl restart gateway-tvip-tms-tvip-api.service 
 +</code> 
 +  
 +3. You should get TMDB api key v3, for function of automatic import
  
-3. Paste your key to configure file **/opt/tvip-tms/manager/manager-tvip-tms-vod/application-prod.yml**+4. Paste your key to configure file **/opt/tvip-tms/manager/manager-tvip-tms-vod/application-prod.yml**
 <code> <code>
 tmdb: tmdb:
Line 238: Line 300:
 </code> </code>
  
-Restart service of manager-tvip-tms-vod\\ +5. Restart service of manager-tvip-tms-vod\\ 
-systemctl restrart manager-tvip-tms-vod.service+<code> 
 +systemctl restart manager-tvip-tms-vod.service 
 +</code>
  
-4. Enable tariff option of VOD in admin panel at section Tariffs-->tariff(Name)-->Tariff Settings.+6. Enable tariff option of VOD in admin panel at section Tariffs-->tariff(Name)-->Tariff Settings.
  
  
 +===== 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
 +
 +
 +
 +===== How to Reset password for Administrator in TVIP-TMS =====
 +
 +You could reset password for admin user in TVIP-TMS 
 +
 +  * Connect to your TVIP-TMS server via ssh:
 +<code>
 +$ ssh login@tms.example.com
 +</code>
 +  *  Connect to TMS database:
 +<code>
 +# psql -U tvip-tms tvip-tms
 +</code>
 +  * Replace password for user admin, in example used password is **admin**
 +<code>
 +tvip-tms=> UPDATE admin SET md5pw = '21232f297a57a5a743894a0e4a801fc3' WHERE login = 'admin';
 +</code>
 +  * Leave database console
 +<code>
 +tvip-tms=> \q;
 +</code>
  
 ===== Recommended parameters for icons ===== ===== Recommended parameters for icons =====
en/tvip_tms_faq_new.1633508354.txt.gz · Last modified: by Виталий Журавлев

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki