FAQ  •  Register  •  Login

Started a mediabrowser on iOS - some troubles

<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Sat Dec 15, 2012 7:58 am

Re: Started a mediabrowser on iOS - some troubles

Really ?
OMG :-(

It seems you'll have to implement this :mrgreen: Do you think it's possible ? Is it on your roadmap ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Dec 15, 2012 1:42 pm

Re: Started a mediabrowser on iOS - some troubles

It is, but not sure when. You can start with audio and images, and send videos to other players (if you can), and implement the native playback when Serviio supports it.
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Sat Dec 15, 2012 3:43 pm

Re: Started a mediabrowser on iOS - some troubles

It sounds good !
Let's do it like this.
See you soon.
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Tue Dec 18, 2012 10:04 pm

Re: Started a mediabrowser on iOS - some troubles

Hi there,

Still some questions about servo :)
I'm experiencing issue with WMA files.

The server seems ok to serve the files. The API doesn't say "Oh wait, it's not a serviio supported format". So response seems ok but in fact, my player never gets datas and buffer remains empty.

Apparently, ServiiGo is managing this case... How do you do ? Do you "hard test" the wma extension ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Dec 18, 2012 11:14 pm

Re: Started a mediabrowser on iOS - some troubles

Can you open the resource URL in a browser? I'm not sure if iOS plays these files natively or if they need to be transcoded to mp3?
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Wed Dec 19, 2012 6:14 am

Re: Started a mediabrowser on iOS - some troubles

Yes, it plays in a browser.

But it didn't play in ServiiGo, neither in my iOS proto :-(
In ServiiGo, application tells "Serviio can not encode this format" (or something like that).
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Wed Dec 19, 2012 8:16 am

Re: Started a mediabrowser on iOS - some troubles

That message doesn't come from ServiiGo, did it say 'Transcoded audio is not supported with Serviio 1.0.X' as with Serviio 1.0/1.0.1, the server doesn't close the connection once you finish downloading a transcoded file so there was no way for me to know when I had actually finished downloading it and therefore had to disable playback. This is fixed in Serviio 1.1
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Wed Dec 19, 2012 11:17 am

Re: Started a mediabrowser on iOS - some troubles

That's interesting.
Yes, it is that message.

So, I understand that if the file is original, you play it. If it's trancoded, you don't (in the current version) because server doesn't close the connection...

Actually, I'm playing files and observe time player. I compare it with duration get from the server and when buffer is empty, I'm comparing duration vs plaer current time. If it's equal (about), I'm considering the item is terminating and I'm lauching next one.

Apparently, you do not proceed like that ? Could you tell me how you manage it ?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Wed Dec 19, 2012 11:33 am

Re: Started a mediabrowser on iOS - some troubles

ServiiGo is different as I download the music myself (unless it is a live stream) as I cache music on the device (and also prefetch the next track). I start writing into a file using a random access stream, once I have ~300KB or so I start playback by passing the partial file to the player. This all works fine if I know the exact content lenght/the server cleanly closes the connection when done as I can then finish and move onto downloading the next track in advance. However, because the connection is never closed and I don't know the content length, the method that reads from the music and writes it to a file will never stop. I guess I could estimate it based on bitrate and reported track length, but decided not to bother with hacky fixes as the server deals with it properly by using chunked encoding and closing the stream at the end in 1.1. I suggest you pm zip for beta access to 1.1, or wait as it should be due out very soon.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Wed Dec 19, 2012 12:42 pm

Re: Started a mediabrowser on iOS - some troubles

Ok thanks.
I'm not doing like that for the moment.
I'm just using streaming.

I see how I can do prefetch and caching but for the first release, I'll remain on simple stuff :-)

Because even simple stuff is already complicated...

So, for my WMA files, I guess I must define a profile that say "WMA for iOS ? Encode it". Am I right ? Where can I create that profile ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Dec 19, 2012 12:44 pm

Re: Started a mediabrowser on iOS - some troubles

we can build a profile, but start with a simple scenario first. try streaming mp3.
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Wed Dec 19, 2012 8:05 pm

Re: Started a mediabrowser on iOS - some troubles

Ok. Streaming MP3 is ok.
I'm currently polishing and managing some stuff around background playback.
See you
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Fri Dec 21, 2012 3:47 pm

Re: Started a mediabrowser on iOS - some troubles

Hi,
Hmmmm, new issue.
My music player is almost finished.
Everything seems ok so I'm using it to deeply test it.
And I've got a pb : when I let the music play, it plays about 2 songs and then stop. As if there was a connexion break with the server.
Does the server has a timeout ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 21, 2012 3:52 pm

Re: Started a mediabrowser on iOS - some troubles

no, it doesn't. Check the serviio detiled log if there are any errors
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Fri Dec 21, 2012 4:11 pm

Re: Started a mediabrowser on iOS - some troubles

No, sorry...
With some album, no problems...
With some others, problems. It seems I have an issue :)
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Mon Dec 24, 2012 1:51 pm

Re: Started a mediabrowser on iOS - some troubles

In fact, the Apple standard object allowing to stream audio is kind of buggy...
When the application is in background and after 10 minutes, as soon as a title is ending, if buferring the next one is too long (more than 3/4 secs), the system consider that the application is not playing audio anymore and suspends the application. So the system can go into deep sleep mode...

I've found a hack to avoid that. But it was tricky to debug because of the about 10 minutes of background playing...

Sometimes, Apple is not so cool :lol:
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Mon Dec 24, 2012 1:52 pm

Re: Started a mediabrowser on iOS - some troubles

And by the way... Merry Christmas ;)
<<

LongChair

Serviio newbie

Posts: 1

Joined: Mon Jan 07, 2013 11:10 am

Post Mon Jan 07, 2013 11:16 am

Re: Started a mediabrowser on iOS - some troubles

Just wanted to say that I am highly interested in Ipad Serviio client application, so I will follow your developments :)

Should you need any beta testing ... I can try to help :)

Just to throw some ideas that could eventually inspire you :)
My dream ipad app would be :
- Be able to browse servio from Ipad.
- Be able eventually to play from Ipad. I found that some dlna browsers use external apps to avoid the stream decoding issue (use of Oplayer or Gplayer for instance).
- Be able to select movie from Ipad and play to a dlna rendered (Samsung Tv for instance).

Good luck & keep up the good work :)
<<

LeChatNoir

Streaming enthusiast

Posts: 23

Joined: Sat Dec 08, 2012 10:42 pm

Post Sun Apr 07, 2013 10:56 am

Re: Started a mediabrowser on iOS - some troubles

Hello,

Back on my iOS dev (sorry, I've been interrupted couple of weeks...). And a new problem :

the serveur is a new version of serviio (1.1) and I've got some troubles : when playing audio, and trying to browse others albums (while audio is playing background), server don't answer. As if it were too busy. All my requests finishes with timeout...

The server is through internet. The client is connected through wifi.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Apr 07, 2013 10:40 pm

Re: Started a mediabrowser on iOS - some troubles

even through a rest client?
PreviousNext

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 37 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.