Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Video help

 
Alex Vandusen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to add YouTube videos to my app but I'm not sure how to go about this. What are some ways I can I add YouTube videos to my app. Should I download them all or just use links.

Also if I were to add photos and large text files would I have to use a database if so how would I go about that
 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Webview.
Youtube provide link to embed it in your web application. And Webview supports all html tag.
 
Alex Vandusen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not a web app it's an android app or is webview for android apps
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alex Vandusen wrote:It's not a web app it's an android app or is webview for android apps


Yes, a WebView is just a widget in your Android UI. Unfortuntately, you cannot download videos from YouTube, and the URL links to the videos on YouTube actually call a PHP script which is private.

So you have to use the WebView widget in your Android UI and set the WebView's html to link to the video and have it play on the screen.

Mark
 
Alex Vandusen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the webview widget but I can't figure out how to use it. And also would have to add a webview widget for each link??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic