Skip to content

Added video annotation - #4376

Closed
pramodhkp wants to merge 5 commits into
mozilla:masterfrom
pramodhkp:videosupport
Closed

pramodhkp wants to merge 5 commits into
mozilla:masterfrom
pramodhkp:videosupport

Conversation

@pramodhkp

Copy link
Copy Markdown
Contributor

No description provided.

@timvandermeij

Copy link
Copy Markdown
Collaborator

Fixes #2787.

@timvandermeij

Copy link
Copy Markdown
Collaborator

/botio-linux preview

@pdfjsbot

pdfjsbot commented Mar 3, 2014

Copy link
Copy Markdown

@timvandermeij

Copy link
Copy Markdown
Collaborator

@timvandermeij

Copy link
Copy Markdown
Collaborator

I have added some review comments. It's definitely heading in the right direction though! :)

@pramodhkp

Copy link
Copy Markdown
Contributor Author

@yurydelendik

Copy link
Copy Markdown
Contributor

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

Comment thread src/shared/annotation.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we remove FileAttachment support in favor of #4329

@timvandermeij

Copy link
Copy Markdown
Collaborator

Do we have other PDF files with attached videos in them? It would be interesting to try out different file types.

Comment thread src/shared/annotation.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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)//

Comment thread src/shared/annotation.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 .

Comment thread src/shared/annotation.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove these two line

@yurydelendik

Copy link
Copy Markdown
Contributor

/botio-linux preview

@pdfjsbot

pdfjsbot commented Mar 5, 2014

Copy link
Copy Markdown

@yurydelendik

Copy link
Copy Markdown
Contributor

@count0 here is some support for video tags, is it what you are looking for?

@count0

count0 commented Mar 5, 2014

Copy link
Copy Markdown

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 pramodhkp closed this Mar 5, 2014
@pramodhkp pramodhkp reopened this Mar 5, 2014
@timvandermeij

Copy link
Copy Markdown
Collaborator

@pramodhkp

Copy link
Copy Markdown
Contributor Author

@timvandermeij Will do it once the latest commit is reviewed.

@pablofiumara

Copy link
Copy Markdown

Have these commits been merged? It seems they can solve #2787

@timvandermeij

Copy link
Copy Markdown
Collaborator

What is the status for this PR?

@pramodhkp

Copy link
Copy Markdown
Contributor Author

Under review, I guess. @yurydelendik?

@jpcid

jpcid commented Jul 21, 2014

Copy link
Copy Markdown

Any update?

@timvandermeij

Copy link
Copy Markdown
Collaborator

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.

@Hengjie

Hengjie commented Aug 22, 2014

Copy link
Copy Markdown
Contributor

@timvandermeij has the refactors finished? I've recently based off this code and have a mergeable version with the split of annotations to /core and annotation_helper.js. I'd be more than happy to share the code if we make the decision to merge it now as opposed to waiting. In fact, @pramodhkp if you're interested in the code, I'd be more than happy to share it with you as well irrespective of whether this gets merged or not (since you may have made this PR for something else).

@timvandermeij

Copy link
Copy Markdown
Collaborator

@Hengjie There is currently #5218 for the complete refactoring I talked about earlier.

@harshavardhana

Copy link
Copy Markdown

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?

http://acroeng.adobe.com/Test_Files/classic_multimedia//VolvoS40V50-Full.pdf

This is seems like a valid file to test for providing embedded video support.

@brendandahl

Copy link
Copy Markdown
Contributor

@pramodhkp Can you rebase this PR?

@timvandermeij

Copy link
Copy Markdown
Collaborator

Closing. The rebased version of this PR is tracked at #5450.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants