Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11663

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
I am using adobe acrobat

Please Log in or Create an account to join the conversation.

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11664

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11665

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
One this more i want to know in RDpdf reader same code is not working ?

Please Log in or Create an account to join the conversation.

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11666

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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:
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

Please Log in or Create an account to join the conversation.

Last edit: by nermeen.

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11668

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
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?
Attachments:

Please Log in or Create an account to join the conversation.

How to add videos and audio (.mp4 and .mp3)? 7 years 3 months ago #11669

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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)

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum