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 #11646

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
I don't want to open video in video-view or video player. I just want to play video in pdf reader only
I want to play video and it start play in reader only..

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 #11647

  • adminjugaad
  • adminjugaad's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 12
  • Thank you received: 1
I suggest you to better look at www.radaeepdf.com/support/knowledge-base...component&kbartid=68 my colleagues already suggested you.

The second part of the KB article is about including in your reader the proper multimedia player.
It will be integrated within your application.

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 #11649

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
In your project pdf reader it works but I have several problem like it only work for single video because
public void OnOpenMovie(String path)
{
Intent intent = new Intent(this, VideoPlayer.class);
intent.putExtra("VIDEOPATH", "video.mp4");
startActivity(intent);

}

Because whenever i Click on DO button it play the same video , if I add more than 1 then it only play same video.

Second it didn't work in RDPDF reader sample. I have checked but it didn't play video.
only toast came todo:play movie.

Also i want to play multiple video how I will play it. .

One Video easily run and i write the code

public void OnOpenMovie(String path)
{
Intent intent = new Intent(this, VideoPlayer.class);
intent.putExtra("VIDEOPATH", "video.mp4");
startActivity(intent);


}

For another video how could and where i write the code?

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 #11651

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
i cannot understand well your request, Can you please send us the pdf your are using for test?

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 #11655

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
The property "path" should contain the name of the video embedded in the annotation of your PDF file.
You might substitute the const "video.mp4" with the variable "path".
That way you will maintain each extracted file in the storage and will be able to play them.

By the way, even maintaining the same "video,mp4" file name, every time you touch the "do button" from our project, the application should overwrite the video file called "video.mp4" then execute it through system intent or thought application intent as per our KB.

If I'm misunderstanding your needs, as my colleague was asking, send us one of your pdf files: we will record a movie explaining what we understood and send it back to you.

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 #11656

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 69
  • Thank you received: 0
See For the first video I used the code
public void OnOpenMovie(String path)
{
Intent intent = new Intent(this, VideoPlayer.class);
intent.putExtra("VIDEOPATH", "video.mp4");
startActivity(intent);

}

What code should I put for second video Suppose its name is Video1.mp4?
and Where I put the code ?
In OnOpenMovie(String path) i had just put for video.mp4 .

Can you please send me codes for 2 videos in Pdf reader( OnOpenMovie(String path)) method?

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

Powered by Kunena Forum