VideoJS issues when switching to flash programmatically - video.js

I am switching the video.js player between several different videos in different formats using vjs.src(videoSrc). When I switch to an flv file this way, the flash player seems to load, but the controls are missing in chrome. In firefox the player simply says "no compatible source was found for this video". Does anything special need to be done to switch to a flash source programmatically?

Related

Video embedded into pdf with Latex does not play correctly

I want to embed an mp4 video (with H.264 codec) into a pdf with Latex, using the media9 package. There are no error messages during compilation. Before activating the video in the pdf, there is a still image (as intended), but after activation, there is just a black window, without the video being played properly.
A minimal example to illustrate is given below. It is a shortened version of an Overleaf template for embedding mp4 files into pdf documents with Latex. I have attached the still image penguins.jpg to this question, but I cannot (or don't know how to) attach the video penguinschasingbutterfly.mp4 in stackoverflow.
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{parskip}
\usepackage{graphicx}
\usepackage{media9}
\begin{document}
This is an .mp4 file:
% using a .mp4; downloaded from https://www.youtube.com/watch?v=-9iXD2-hbJM
\includemedia[width=0.6\linewidth,height=0.6\linewidth,activate=pageopen,
passcontext,
transparent,
addresource=penguinschasingbutterfly.mp4,
flashvars={source=penguinschasingbutterfly.mp4}
]{\includegraphics[width=0.6\linewidth]{penguins}}{VPlayer.swf}
\end{document}
Before activation the pdf looks like
.
After activation the pdf looks like
The same happens also with the video files in the media9 documentation and videos embedded in other pdfs. Other multimedia files found in the media9 documentation, such as audio files and 3D objects, do work as intended.
My pdf reader is Adobe Acrobat Reader DC (20.012.20048) and I updated the Shockwave Flash plugin for my internet browser Mozilla Firefox to Shockwave Flash 32.0 r0, as the media9 documentation mentions the Adobe Flash Player plugin for Firefox among its requirements (Chapter 2).
What could be the reason for the black windows showing up and the videos not being displayed?
P.S.: If any other Latex package works well for videos within pdf files (even if outdated, like movie15 or multimedia), this would be an alternative for me.
Adobe stops Flash support by the end of 2020.
Once, somewhere in the (not so far) past, you may have given your OK to stop using Flash anymore in Acrobat Reader. You were asked this in a pop-up window while you wanted to play an embedded video. From that decision on, or from 1/1/2021 the latest, video and audio playback will depend on the media plugin of your OS, which is flaky in most cases. Plus, there won't be any means of player configuration available anymore, such as "loop", "controls", "autoplay" etc.
As Joel Geraci puts it in one of his answers in the Acrobat support forum, now, best-practice is linking videos instead of embedding them.
I am sorry for this regression :(.
Disclaimer: I am the author of the media9 LaTeX package.
This solution works for me (Adobe Acrobat Reader 2021.001.20142):
https://tex.stackexchange.com/questions/516029/media9-is-becoming-obsolete-dec-2020-any-alternatives-for-embedding-video-audio
Go to Windows Settings > Display > Graphic Settings > Under Choose an App/ Browse >
Add Acrobat.exe and edit the default from "Let Windows decide" to Power Saving Intel.
Relaunch Acrobat.
Try to play video.

iPhone: bulk move ALL voice memos + ALL pdfs generated from Safari page prints (pdf-exports using "Books") to pc

voice memos:
I have 100s of voice memos that I recorded using the Apple voice recorder standard app and I want to get them on my pc altogether in one go.
pdfs:
I often save mobile Safari pages as Books which are then automatically saved (very quickly and well-formatted) as pdfs. On a website opened in Safari, you can choose the "send to"- button and then the orange Symbol for books. I have houndreds of self-generated pdfs in ibooks, and I have googled and tested for a longer time how to transfer them to my pc (see the details of these tests in the answer section).
Is there any trick to bulk move ALL voice memos in just one go + ALL pdfs in Books to the pc in just one go? I am happy about ANY way to reach this.
Please mind: I do not want to save every voice memo / pdf, piece by piece, in a cloud or app nor send each of them, piece by piece, by mail. This costs too much time and nerves and is not a bulk move.
I found a working solution in Decipher Backup Browser 14. This program might not be the only one achieving the aim, but it does the thing. Whoever finds other programs, please add an answer.
It simply reads out the data from the iPhone backup that you can create with iTunes. The program offers extracting all voice memos, as well as extracting all PDFs in "All PDFs in Backup". In the full version, you can then save them in one go to your pc. Thanks go to the pragmatic e-mail help including the screenshot.
Another possible solution perhaps is to sync your iBooks with iCloud - perhaps, because there is no working test, neither on Windows nor on macOS.
#### Testing the sync of the Safari pdfs:
(I originally got the info of the possible sync on macOS from the Decipher company, but I assume this is a simple misunderstanding or outdated.)
I sync iBooks with iCloud, iBooks are part of iCloud's "Manage Storage" option in my iPhone Settings, and still I do not see the pdfs there. On Windows, I do not see any iBooks sign at all in iCloud. iBooks is supposed to be hidden in iCloud Drive according to https://apple.stackexchange.com/questions/296462/locating-the-ibooks-folder-in-icloud-drive?newreg=1d6ae7995129403b99e57fe74feae430, but I could not succeed with the help of that link, the answers there are for Apple macOS command line (macOS bash). Then an additional investigation turned out that even if there were a hidden folder on Windows (which does not), it would not help: #ankii was so kind to test this on macOS, the needed pdfs cannot be seen in the macOS hidden iBooks folder either. See https://apple.stackexchange.com/questions/395290/locating-the-ibooks-folder-in-icloud-drive-on-windows, #ankii:
I exported a wikipedia page to iOS iBooks, as pdf. It shows up on iOS
app. but not on Mac app. that is weird.
Please, if anyone has managed this iCloud sync on Windows or macOS, answer here, but it seems as if there is no solution.
####
The simple reason why all of the normal file transfer tools cannot help, but only those which give you the contents of the iTunes backup, is because the needed pdfs ARE only in the backup. :)
When you delete such a "Safari-pdf", it will ask you whether you want to delete this from iCloud or if you only want to delete it from the downloads. That is just the standard question for the real e-books, while the "Safari-pdfs" that this thread is about are not part of iCloud anyway.
And it seems as if this will not change in the future, according to https://discussions.apple.com/thread/251534441 discussion results.
##################### Finally:
After having saved all of the PDFs, deleting them in two alternatives:
Books > Library > Edit > "Select All" on the left (you may also do this inside a specific collection only so that you can filter what you want to delete, you can also multi-select PDFs manually instead of "Select All")
or delete all by going to Settings --> Passwords & Accounts --> iCloud --> iCloud --> Manage Storage --> Apple Books (mind there are 2 of them, take the first one) --> Delete Documents & Data
#
#
#
Additional documentation
##########################################################################
Proof that the bulk move cannot be done without a 3rd party app.
I have tried several 3rd party programs to transfer the pdfs, but none of them find the Safari pdf prints, they only find just the commercial e-books. iTunes does not find them either.
I was asked by a moderator to move the details of what I have already tried to reach a bulk move - and which were at first part of the question - to this answer. This was tested in 04/2020, but the problem will still be the same.
##########################################################################
iPhone 7, iOS 13.4.1 transfer iBooks pdfs to Windows 10
either with 3rd party apps or iTunes v. 12.10.5.12
result: nothing works, only workaround is using Adobe Acrobat or
iCloud Drive going through each single pdf
Unsuccessful try only using iBooks and iTunes:
In iTunes, clicking on your phone symbol, the iTunes pane that appears has a lot of options like overview, music, films... and also third party apps like kindle or acrobat in the last menu point, but there is no iBooks anywhere.
In the main menu, iBooks folder is empty. Right-click on iBooks and "transfer purchases" leads to nothing, of course: I have not bought any pdf, but just printed it from safari. In the settings, in "iTunes and App Store" make sure that "iBooks and audiobooks" are switched on for automatic download.
Third party apps fail to show iBooks' Safari pdf prints:
Tested up to now (few of so many): iMazing, iExplorer, easeus, ApowerManager, Phonepaw, iTools 4.4.5.8
Only those pdfs that you had actually added from the pc to the phone
are also in the books folder in the third party apps.
Those pdfs that are just printed pdfs from safari websites do not appear in the third party apps of iTunes.
iCloud Drive or Adobe Acrobat app: The current workaround which takes too much time and nerves:
Adobe Acrobat v. 20.04.00 app on the iPhone, click on every pdf's 3 dots in the overview in iBooks, save it in Acrobat. Then use iTunes, clicking on your Phone symbol, use the last menu point to get to Acrobat 3rd party app and then mark all pdfs and save them to a folder on your pc.
You can also use iCloud Drive, AirDrop or the like, works the same and does not need iTunes. Make sure that in your iPhone preferences, iBooks --> iCloud Drive is switched on (this is the standard anyway). Still the same issue with any such solution: no bulk move possible.
In Books, use the "Save to Files" option. Afterwards, follow these directions.

Edit texts in a PDF on Chrome using Chrome inspect

Is there any way to modify texts in PDF on Chrome using the Chrome inspect tool? I was stuck because in the Chrome inspect element, differently than any other websites and even PowerPoint presentations opened in Chrome, I'm able to modify texts, while with PDFs I cannot. Does anyone know how to do it?
Edit: Yes I know that the changes made through Chrome DevTools are temporary, but usually I'm able to make those changes, even if they're temporary. But with PDFs I can't.
There are differences in the way some browsers handle PDF data.
Chromium based browsers are more traditional in that the PDF plug-in is based on a Foxit/Skia collaboration, So you need to understand in that case, the downloaded PDF you are viewing is in the binary application/pdf (file already outside of the html wrapper).
Just as you cannot edit the PDF text in Acrobat Reader, the most you can do is incrementally add comments/annotation or field data to the end of the file, before save as a secondary download. The server cannot see your changes unless you submit as an upload.
With Firefox and Google docs there is often a different approach where the PDF is "Repr"oduced as an "Ex"ample (A ReprEx of the PDF) so it is built of a hybrid image and text overlay to emulate that part of the real PDF source. When you previously or later save the underlying downloaded PDF (for viewing) it would not necessarily include any browser based HTML editing, in the saving.
There are other techniques for other cases, but to answer the basic OP question most simply, the answer is NO you cannot change a PDF body, only add notes, etc via extensions. Microsoft variant of Chrome I.E. Edge has some inbuilt annotation ability thus does not need a second extension.
Found this question because I was googling a similar situation--I was wanting to manipulate type sizes and margins on a PDF in inspector via Chrome. I found that FireFox DevTools will allow you to view those styles and even alter the content in the PDF while in browser. I am late to the game but hope this provides answers for someone else in the future.

Is OpenLaszlo supported in custom browsers that are created through adobe air?

Recently i am seeing a number of issues that are happening in our custom based browser but its not happening in the browsers like mozilla or chrome.
One example is mouse cursor i have given a custom cursor to it onmouseover of a window. This is working fine in Mozilla, chrome and in IE but not in the Adobe Air browser we created. I can see the custom cursor but there is lot of flickering between the custom cursor and the normal mouse pointer.
Is this an issue or there is an work around for this to support the adobe air browser? I am using Adobe AIR 3.4.
I haven't heard anything about Laszlo testing Adobe AIR apps, especially with the AIR releases in the past two years. The AIR browser has never been supported officially.
I'm assuming that you are still embedding an SWF into a HTML page for your AIR app. When using AIR with OpenLaszlo, I'd always generate an ActionScript 3 based AIR app (not embedding an app SOLO compiled to an SWF into an HTML container). That way, I can use Flash Builder to debug any problems, which makes things a lot easier than debugging embedded SWFs. If you plan to deploy a DHTML runtime app, there's of course no way around embedding the OpenLaszlo app into an HTML container.
Update: Flash 10.2 and higher support native cursor integration (native here means operating system), which provides MUCH better performance. Here's a general description of the API in an Adobe blog post: http://www.adobe.com/devnet/flashplayer/articles/native-mouse-cursors.html
It's technically possible to use the native cursor with OpenLaszlo, I've created a proof-of-concept - but it only works with a heavily modified version of the LzMouseKernel.as class (from the SWF9 kernel files in the LFC), since the kernel will always reset the cursor for various mouse events. And since native cursors require at least Flash 10.2, this is only possible with the SWF11 branch of OpenLaszlo.
I suspect that the problems you are seeing are connected to the way OpenLaszlo enables custom cursors (which is done by hiding the native mouse cursor and moving an sprite around following the invisible mouse cursor position).

Is that possible to play pdf files in flash player VB? [duplicate]

I try to open PDFs or folders (in finder/explorer) triggered by a mouse click in a swf application running in flash player.
Opening a PDF via urlRequest and navigateToUrl() always opens the browser.
I read about this solution with fscommand and it seems that we have to write shell scripts for mac and PC. Doesn't sound perfect.
The swf is executed on cd ROM. So I think we can't use an air application and the classes of the air framework (File... etc.).
Is there a better way?
As far as I know, you unfortunately cannot open a PDF into flash natively. It sounds like these *PDF*s are static assets on your CD ROM so I would take a look at a PDF -> SWF conversion tool. Maybe something like swftools. All of this in efforts to replace your current *PDF*s with *SWF*s which you can then load via the flash.display.Loader class.
we go now with zinc. it seems to be very powerful. you can create a exe from any swf. zinc let´s you implement many functions in actionscript, that give you access to the system. open pdf or something it the smallest task then :) cheers, florian