Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

How to add videos and audio (.mp4 and .mp3)?

More
9 years 2 months ago #11663 by rachnasagar
I am using adobe acrobat
More
9 years 2 months ago #11664 by rachnasagar
check this link ...
I have implemented the video in my pdf

www.dropbox.com/s/iv8wipzwtrf04n3/abcd.pdf?dl=0

want the code to play these 2 videos
More
9 years 2 months ago #11665 by rachnasagar
One this more i want to know in RDpdf reader same code is not working ?
More
9 years 2 months ago - 9 years 2 months ago #11666 by nermeen
We have tested your PDF and the two videos are working, OnPDFOpenMovie is a listener method that is called everytime you select a video.
It's code should be the following:
Code:
public void OnPDFOpenMovie(String path) { Intent intent = new Intent(this, VideoPlayer.class); intent.putExtra("VIDEOPATH", path); startActivity(intent); }
You need to pass to the video player the path, not a fixed video name (if you pass a fixed name it will only open this one).

In RDPDFReader, same code should be added to PDFViewAct.OnPDFOpenMovie

Check the video from own.mobiles.it/index.php/s/8CYrRbkW2ZE4QZJ
Steps to play the videos:
  1. Select the first video
  2. click the play button
  3. click back
  4. go to the second video
  5. Select the second video
  6. click the play button

Note: the video player is a custom one integrated into the demo project as detailed in the second part of the KB article:
www.radaeepdf.com/support/knowledge-base...component&kbartid=68
Last edit: 9 years 2 months ago by nermeen.
More
9 years 2 months ago #11668 by rachnasagar
First of all thanks I worked for PDF reader , Where I will first find the path of the button then i will put condition to play the video for different videos.

But please check this file of RDPDF reader its not working in
public void OnPDFOpenMovie(String path)
{
Intent intent = new Intent(this, VideoPlayer.class);
intent.putExtra("VIDEOPATH", "video.mp4");
startActivity(intent);
}


Attachment AboutActivity.java not found



www.dropbox.com/s/y5c2bqqwzbln0ux/AboutActivity.java?dl=0

this code is not working and where it is .. (PDFViewAct.OnPDFOpenMovie) I am not getting it.

Where I will get this PDFViewAct.OnPDFOpenMovie?
More
9 years 2 months ago #11669 by nermeen
I assure you it's working also with RDPDFReader, the video was made using it.

You cannot use AboutActivity, its purpose is not to implement all the features.

I'm refering to PDFViewAct which exists in ViewLib module (com.radaee.reader)..this is the activity that impelements most of the SDK features (the one that is openned clicking on "Browse And Open File" and then selecting a fie)
Time to create page: 0.396 seconds
Powered by Kunena Forum