-
Notifications
You must be signed in to change notification settings - Fork 31
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
Resolve images source while generating ISD #241
Comments
The ISD includes the |
That means that you have to go through the returned ISD tree and resolve the sources. |
The assumption is that one can compare the value |
Yes but the |
Assuming the same image has two different |
No, agree this is not awesome, but for live low latency and chunked transfer encoding, you may have no other solution. |
How complex is the In the meantime, I will look to see if there were specific reasons not to resolve images at ISD creation time. Breaking the API is not great in any case. |
This is not an issue of images caching, but rather an issue of comparing contigous subtitles in order to create a single cue instead of creating one cue per chunk. |
Ah. What is the drawback of creating one cue per ISD? |
Sorry, I believed I already described this. |
😭 |
Does the blinking effect persist when the |
Since we have different cues, the renderHTML will create new HTML elements and the player will display these new elements in the dedicated subtitles rendering div, right after having hidden the previous one. |
Thanks for the detailed explanation. I suggest we explore the pain involved in moving the image resolver to ISD construction. |
OK thanks. |
I'd suggest a mechanism for doing this would be to construct a data url from the dereferenced image resource, since the text of the data url can be compared directly, and that data url can be passed into the HTML also, avoiding a second fetch. |
That sounds good. Let me know if you update the code so that I can try on my side. |
Sorry to raise hopes - I will not be implementing it for the foreseeable future. |
Question: is there any reason for resolving images source while rendering HTML and not while generating ISD?
Resolving images at ISD generation step would ease the comparison of image subtitles before rendering the cues, by comparing the ISD contents.
And comparing subtitles may be useful to handle contigous subtitles with same content (same image).
The text was updated successfully, but these errors were encountered: