Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get available AudioTracks & Subtitles #52

Open
naja7host opened this issue Feb 2, 2019 · 3 comments
Open

get available AudioTracks & Subtitles #52

naja7host opened this issue Feb 2, 2019 · 3 comments

Comments

@naja7host
Copy link

wich command we can get by them the available audiotracks and & subtitles .

in Player exist a function to set the audioTrack( index ), but i don't find any function to get the available audiotracks, the same for subtitles .

@naja7host
Copy link
Author

for audio issue i have resolved it by calling the Player.el.Execute('GetTotalNumOfStreamID', 1) so we get the number of tracks available, but the subtitle is not returned with the command Player.el.Execute('GetTotalNumOfStreamID', 5) even if the movie has subtitle . and when i force to set the subtitle with Player.el.Execute('SetStreamID', 5, 2); is not retunrning the subtitle in the screen.

any help is appreciated .

@vip12
Copy link

vip12 commented May 20, 2021

Player.el.Execute('GetTotalNumOfStreamID', 5)

subtitle data returns Player.el.Execute('GetTotalNumOfStreamID', 4), but cannot be displayed

@vip12
Copy link

vip12 commented Nov 7, 2022

для проблемы со звуком я решил ее, вызвав Player.el.Execute('GetTotalNumOfStreamID', 1), поэтому мы получаем количество доступных дорожек, но субтитры не возвращаются с помощью команды Player.el.Execute('GetTotalNumOfStreamID', 5) даже если у фильма есть субтитры. и когда я заставляю установить субтитры с помощью Player.el.Execute('SetStreamID', 5, 2); не возвращает субтитры на экран.

любая помощь приветствуется.

for audio issue i have resolved it by calling the Player.el.Execute('GetTotalNumOfStreamID', 1) so we get the number of tracks available, but the subtitle is not returned with the command Player.el.Execute('GetTotalNumOfStreamID', 5) even if the movie has subtitle . and when i force to set the subtitle with Player.el.Execute('SetStreamID', 5, 2); is not retunrning the subtitle in the screen.

any help is appreciated .

I figured out how to get them using avplay

var _initSubtitle = function () {
                _AVPlay.startSubtitle({ path: "/dtv/temp/", streamID: 999, sync: 999, callback: function () { } });
            }
var amount = _AVPlay.getTotalNumOfStreamID(4);
_AVPlay.setStreamID(4, idSubtitle)

try

Player.el.Execute('startSubtitle', { path: "/dtv/temp/", streamID: 999, sync: 999, callback: function () { } })
Player.el.Execute('GetTotalNumOfStreamID', 4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants