Skip to content

Fix: add duration to status for audio files - #13

Open
Technici4n wants to merge 3 commits into
noodny:masterfrom
Technici4n:master
Open

Fix: add duration to status for audio files#13
Technici4n wants to merge 3 commits into
noodny:masterfrom
Technici4n:master

Conversation

@Technici4n

Copy link
Copy Markdown

Without this, the duration in the status object is 0 for audio files. Now the correct duration is displayed. For video files, it shouldn't matter anyways.

Comment thread lib/player.js
fullscreen: (parseInt(data.match(/ANS_VO_FULLSCREEN=([01])/)[1]) === 1),
subtitles: (parseInt(data.match(/ANS_SUB_VISIBILITY=([01])/)[1]) === 1)
});
if(data.indexOf('ANS_LENGTH') !== -1 || data.indexOf('ANS_VO_FULLSCREEN') !== -1 || data.indexOf('ANS_SUB_VISIBILITY') !== -1) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This or check seems completly unnesesary because the checks are repeated for each item below

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Do you want me to remove it ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove it but there still needs to be a check for calling the setStatus so it isn't called when nothing is changed

Riesi and others added 2 commits October 5, 2017 14:45
Varpars as maps dont have a length value, but you can get the keys and
work with them.
Fixed Maps for setOption
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

Successfully merging this pull request may close these issues.

2 participants