-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Add video annotation support #5450
Add video annotation support #5450
Conversation
Before we can close #4376 and continue the work on this here, the author of this commit needs to be amended. See https://stackoverflow.com/questions/750172/change-the-author-of-a-commit-in-git/1320317#1320317 on how to do this. @pramodhkp needs to be stated as the author of this commit. |
a548890
to
2290bb4
Compare
Author updated as @pramodhkp |
Thank you. Fixes #2787. |
2290bb4
to
00f5452
Compare
param2.value = 'mini'; | ||
element.appendChild(param2); | ||
} else { | ||
console.error('Cant play video'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use warn
from src/shared/util.js
instead of console.error
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Could we show a link to download the video when the browser cannot play the video? Then the user can download the file and play it with vlc if they wish. UI TBD. |
The video sometimes can be found on the attachment tab |
19ce390
to
ba74b4f
Compare
|
||
function guessContentType(dict) { | ||
var extToMime = { | ||
'avi' : 'video/avi', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: only use space after the colon, and not before it. This line should read:
'avi': 'video/avi',
The same applies on the next two lines as well.
0e29ef9
to
c5c5992
Compare
Tested with this example - http://dante.ctan.org/tex-archive/macros/latex/contrib/movie15/doc/overlay-example.pdf While the plugin and video playing still shows up - if i allow the popups it just crashes chrome on OSX. Will be testing on Linux. |
c5c5992
to
84ae57c
Compare
84ae57c
to
03686e7
Compare
03686e7
to
9961b72
Compare
@timvandermeij What's blocking merging this PR (except rebasing, ping @harshavardhana )? |
Nothing big I think. It needs a rebase and testing (unit tests especially). |
9667462
to
173f9a6
Compare
Can you tell me how would i go about adding those unit tests? |
I was trying your branch, but what's on github doesn't seem to work with that example pdf--the worker dying on Line 276 in 361fa83
AnnotationFactory missing. Do you have something locally that fixes this?
|
} | ||
} | ||
}; | ||
var SUPPORTED_TYPES = ['Link', 'Text', 'Widget', 'Screen', 'Movie']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is incorrect. The AnnotationFactory
should not be removed (causing the effect that the user above describes), but rather it should be adapted to add a case for Screen
and Movie
.
I played with this some more, and with the |
|
I've made all the changes discussed above (the |
4b52236
to
635c061
Compare
I pulled in your changes and pushed here. Thank you |
@@ -14,8 +14,9 @@ | |||
*/ | |||
/* globals PDFJS, Util, isDict, isName, stringToPDFString, warn, Dict, Stream, | |||
stringToBytes, Promise, isArray, ObjectLoader, OperatorList, | |||
isValidUrl, OPS, AnnotationType, stringToUTF8String, | |||
AnnotationBorderStyleType, ColorSpace, AnnotationFlag, isInt */ | |||
isValidUrl, OPS, createPromiseCapability, AnnotationType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes for these three lines should also be reverted.
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/af3f05d4b8ed724/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/af3f05d4b8ed724/output.txt Total script time: 0.83 mins Published |
@@ -45,7 +45,8 @@ var ImageKind = { | |||
var AnnotationType = { | |||
WIDGET: 1, | |||
TEXT: 2, | |||
LINK: 3 | |||
LINK: 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks to PR #6757 the changes in this file are no longer necessary as types MOVIE
and SCREEN
are now already available when you rebase this patch.
@harshavardhana Are you still working on this? May you please address the review comments and rebase the branch? |
Closing as incomplete for the following reasons:
However, we keep the associated issue open and link to this PR from there so that others may use this work as inspiration for a new PR. |
This work is still work in progress, doesn't seem to work for http://acroeng.adobe.com/Test_Files/classic_multimedia//VolvoS40V50-Full.pdf
It does seem like it worked in the beginning, but doesn't seem to work for me.
Rebasing change from pull request #4376 to get some reviews and pitfalls.