Repository navigation
Conversation
|
Fixes #2787. |
|
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 |
|
For http://dante.ctan.org/tex-archive/macros/latex/contrib/movie15/doc/overlay-example.pdf, I get 'A plugin is needed to display this content' for both videos. How come? |
|
I have added some review comments. It's definitely heading in the right direction though! :) |
|
@timvandermeij The videos in the http://dante.ctan.org/tex-archive/macros/latex/contrib/movie15/doc/overlay-example.pdf are Screen attachments with mpeg files. I add them to the "object" tag. Hence, it says plugin is required. |
|
It shall play if quicktime is installed (for this example the movie clip is too short, animation is finished within a second, can we loop it?) Sadly Adobe Reader cannot play to check how it must be |
There was a problem hiding this comment.
Can we remove FileAttachment support in favor of #4329
|
Do we have other PDF files with attached videos in them? It would be interesting to try out different file types. |
There was a problem hiding this comment.
Don't use 'Contents' for mime types, A->R->C->CT has this information. Also, reject annotation if contentType is not present or does not match /^(video|audio)//
There was a problem hiding this comment.
Create video element first and check if it can play mime type using canPlayType method before falling back to object. See https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement#Methods .
|
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @yurydelendik received. Current queue size: 0 |
|
@count0 here is some support for video tags, is it what you are looking for? |
|
This looks good, but I cannot test it at the moment... If the examples given above by @pramodhkp work with this, then I am satisfied! |
|
@pramodhkp Could you squash the commits? See https://github.com/mozilla/pdf.js/wiki/Squashing-Commits on how to do this easily. |
|
@timvandermeij Will do it once the latest commit is reviewed. |
|
Have these commits been merged? It seems they can solve #2787 |
|
What is the status for this PR? |
|
Under review, I guess. @yurydelendik? |
|
Any update? |
|
This would have to be rebased, squashed and reviewed, but since I'm also writing a new annotation layer framework (see #5065 (comment)), it might be best to wait until/if that lands. It would require changes in this code also. |
|
@timvandermeij has the refactors finished? I've recently based off this code and have a mergeable version with the split of annotations to |
|
Rebased @pramodhkp changes on top of the newest master from pdf.js - but i am not able to get this working - has anyone of you have any success? This is seems like a valid file to test for providing embedded video support. |
|
@pramodhkp Can you rebase this PR? |
|
Closing. The rebased version of this PR is tracked at #5450. |
No description provided.