Enigma2 plugin to to play various online streams (mostly Latvian).

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. var TDIPlayerOptions = {
  2. language: 'default',
  3. // override default CDN url (failing on IE10 sometimes - HEAD request)
  4. flash: {
  5. swf: 'https://viaplay.lv/assets/lib/common/javascripts/balt/player/video-js.swf'
  6. },
  7. preferredLang: ['en'],
  8. plugins: {
  9. autoplayNext: {
  10. url: 'https://viaplay.lv/prehravac/next?productId=t7588',
  11. offset: 0, // Not implemented yet
  12. countDown: 8
  13. },
  14. playedTicks: {},
  15. measuring: {
  16. streamInfo: {
  17. name: 'Sērija 1',
  18. id: 't7588',
  19. length: -1 // Value is in seconds. When no value found -1 must be set
  20. },
  21. services: {
  22. googleTGM: true
  23. }
  24. },
  25. settings: {
  26. qualities: {},
  27. subtitles: [
  28. ],
  29. languages: {
  30. HLS: [
  31. {
  32. srclang: 'en',
  33. label: 'Angļu'
  34. }
  35. ],
  36. DASH: [
  37. {
  38. srclang: 'en',
  39. label: 'Angļu'
  40. }
  41. ],
  42. }
  43. ,
  44. persistSettings: {
  45. id: '70ee6479c24b828953b9c913eef69775',
  46. subtitlesEnabled: true,
  47. audioEnabled: true,
  48. cookieExpiration: 30
  49. }
  50. },
  51. heartBeats: {
  52. productId: 't7588',
  53. startBeatUrl: 'https://viaplay.lv/prehravac/start-beat',
  54. viewBeatUrl: 'https://viaplay.lv/prehravac/view-beat',
  55. heartBeatUrl: 'https://viaplay.lv/prehravac/heart-beat',
  56. viewBeatInterval: 60,
  57. heartBeatInterval: 30,
  58. from: undefined
  59. }
  60. ,
  61. seekHints: [
  62. ]
  63. ,
  64. thumbnails: {
  65. url: 'https://vod.viaplay.cdn.cra.cz/vod/0023/2816/thumb.$Num$.jpg',
  66. markers: [
  67. ]
  68. }
  69. ,
  70. sharingScreen: {}
  71. },
  72. preferredTech: [],
  73. tracks: {
  74. HLS: [
  75. {
  76. lang: 'en',
  77. src: 'https://vod-prep-sec.viaplay.cdn.cra.cz/vod_Balt/_definst_/0023/2816/eng-ao-sd1-sd2-sd3-sd4-ESFZVT6c.smil/playlist.m3u8?etime=1477824920&qs=1&ttl=10800&token=0d71b8ddf7284414e32f5',
  78. type: 'application/x-mpegURL','profiles': ['ao', 'sd1', 'sd2', 'sd3', 'sd4'],
  79. withCredentials: true
  80. },
  81. ],
  82. DASH: [
  83. {
  84. lang: 'en',
  85. src: 'https://vod-prep-sec.viaplay.cdn.cra.cz/vod_Balt/_definst_/0023/2816/eng-ao-sd1-sd2-sd3-sd4-ESFZVT6c.smil/manifest.mpd?etime=1477824920&qs=1&ttl=10800&token=039add13724fae1ac02e8',
  86. type: 'application/dash+xml',
  87. }
  88. ]
  89. }
  90. };