NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) nDroid v
« Previous 1 2 3 4 5 … 7 Next »
video playback on android

 
  • 0 Vote(s) - 0 Average
video playback on android
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2014-01-19, 10:39 PM
hi, just wondering how ndroid managed to get recording/live tv playback working on android?

i tried using a m3u8 in a html5 video tag without success. and ive tried using the VideoView, but the ts files recorded arent supported.

do you use the transcode option? if so what transcoding settings do you use?

only thing i managed to get to play was a simple mp4 file i had laying around, that was using the stream?f= option.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#2
2014-01-20, 12:50 AM
It relies on external / 3rd-party player apps. I just put together an Intent with ACTION_VIEW and set the URL and mime type to "video/*" and throw it out to the system which then finds a player (or list of players presented via a chooser).

As for transcoding, yes I use the /transcode option but it's a bit of a personal bugbear as it's causing a lot of problems depending on TV standards in different countries - some options work for some people and not for others. I'm hopefully going to move to using VLC via the new JSON API in NEWA.

Currently playback of recordings / videos (if transcoding isn't requested) is handled at the nDroid Service end by just reading chunks of the file and writing it out to the OutputStream of an HTTP response but, again, the Android end depends on 3rd-party players. I also intend moving to VLC and the JSON API for recordings.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2014-01-20, 01:03 AM
bugger, i was hoping you discovered a way to use the videoview or a 3rd party component that you could embed.

currently experimenting with just using handbrakecli to convert recordings to "Android Tablet" profile and play those directly in videoview. not ideal, but should allow for playback inside the app. just no live tv that way obviously.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#4
2014-01-20, 01:18 AM
Yeah I know - it's a PITA due to limited media types supported by Android.

To be honest I only vaguely looked at doing it in-app a couple of years back and it was obviously going to be a complicated job and haven't really looked since. I have spotted there are a number of pre-compiled libraries for the Android ffmpeg port - not sure how you'd use it though.

Cheers,
Brian
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,181
Threads: 958
Joined: May 2006
#5
2014-01-20, 01:27 AM
Several XBMC devs have spent the better part of the Gotham cycle going from calling an external player to first libstagefright and now MediaCodec frameworks with Android. It's working pretty well now with most formats but it is not a plugin.

Martin
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#6
2014-01-22, 03:06 AM
@reven - I've got a simple Android video player working with VideoView using VLC as the streaming engine via the JSON API that UJB has put into NEWA. It took a lot of fiddling with the VLC streaming options and I still haven't found the right combination but it sort of works.

If you've got something working with VideoView I can't imagine your code is much different to mine - the key things were getting the VLCService params right and using the OnPreparedListener in VideoView before starting playback.

It should be possible to adapt for live tv but I need to discuss things with UJB on that subject.

Cheers,
Brian
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#7
2014-01-22, 03:42 AM
i did some more research, and I believe it might be the google tv device I have. some people at plex stated they couldnt use the plex transcoder on some google tv devices as they didnt support HLS, whereas some other google tvs did support it. plus someone mentioned returning the one i bought and replacing it wth a vizio costar and plex could then playback all media.

so, im going to have to buy a costar and hope that works, but that will have to wait until next pay day (and I get paid monthly Smile)
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#8
2014-01-22, 04:08 AM
What version of Android does your device have? Looking at the docs, HLS wasn't supported before v3.x
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#9
2014-01-22, 04:14 AM
i think i read somewhere they added it to some google tv devices running older firmware versions, seems a bit of a mess (probably why they're replacing it with pure android), think its on 3.2 off the top of my head.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#10
2014-01-22, 06:03 AM (This post was last modified: 2014-01-22, 06:07 AM by bgowland.)
The subject of Android versions on different devices as a whole is a bit of a mess. One side-effect of having open source software - It comes down to the manufacturer as to whether or not they rewrite their own interpretation and roll it out as an upgrade or not.

As much as I'm not an Apple fan I can see the attraction of the ring-fenced approach and relatively small number of devices they produce. I just checked my Android dev console and there are 4870 different device types out there and manufacturers release new ones on a daily basis.

EDIT: BTW, I just watched a 1 hour recording using my video player using mpv2/mp3/mpeg-ts params with the NEWA VLCService - a few glitches but a good start.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Anyone using nDroid TE on devices running Android less than v4? bgowland 4 6,979 2016-11-03, 02:09 AM
Last Post: mrred128
  Transcoding Live TV to Android t^2 21 10,734 2013-12-31, 07:33 PM
Last Post: bgowland
  Cant play video ndroid TE fuzzweed 10 6,130 2013-07-23, 06:42 PM
Last Post: fuzzweed
  This video cannot be played. fuzzweed 3 2,372 2013-02-25, 06:40 AM
Last Post: fuzzweed
  VIdeo Player for NDroid skl111 6 3,947 2012-12-31, 09:15 AM
Last Post: odin

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode