lrtlt / mobile

LRT.lt mobile application
BSD 3-Clause "New" or "Revised" License
22 stars 2 forks source link

SUBTITRAI - kalbos kodas #65

Open KestasVenslauskas opened 2 months ago

KestasVenslauskas commented 2 months ago

THEO player'iui reikia nurodyti subtitrų kalbos kodą src_lang.

https://www.lrt.lt/servisai/stream_url/vod/media_info/?url=/mediateka/irasas/2000351411/zinios

Response:

...
  "playlist_item": {
    "file": "https://stream-vod.lrt.lt/VIDEO/2024-07/ZIN42910_W_bdb811ac-9454-49e5-b27f-7c27840bfed9.mp4/playlist.m3u8",
    "title": "Žinios",
    "image": "/img/2024/07/19/1820627-585316-1287x836.jpg",
    "mediaid": 2000351411,
    "tracks": [
      {
        "src": "/media/VIDEO/2024-07/ZIN42910_W_bdb811ac-9454-49e5-b27f-7c27840bfed9.txt",
        "kind": "subtitles",
        "label": "Subtitrai",
        "default": true
      }
    ]
  }
...

Reikia kad tracks subtitru objecktai turetu ir srclang parametra prie kiekvieno elemento kur "kind": "subtitles". Siuo atveju srclang: 'lt' lietuviu kalbai

KestasVenslauskas commented 2 months ago

@gincius Surasiau tai ko man reikia

zivile-gruzdiene commented 2 months ago

@KestasVenslauskas Gintaras subtitrų kalbos kodo neduoda, nes jo neturi