• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Video help

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not a web app it's an android app or is webview for android apps
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
reply
    Bookmark Topic Watch Topic
  • New Topic