TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Underground Playground > Developers Corner
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 05-18-2011, 04:23 AM   #1
koopa_troopas
Registered User
 
Join Date: May 2011
Posts: 10
Problem launching a SteamResource

Hi, I'm getting this problem:

172.25.12.166 I/O Exception handling HTTP GET prueba.mp3: Connection reset by peer: socket write error

when I try to execute a mp3 I have stored in the package root. The piece of code I try tu execute is one taken from the tivo programming book, this one:

StreamResource mp3;
String furl = getApp().getContext().getBaseURI().toString();
try {
furl += URLEncoder.encode("prueba.mp3", "UTF-8");
} catch (UnsupportedEncodingException e) {
}
mp3 = createStream(furl, null, true);
mp3.play();


Does anyone knows how could I reproduce this audio?? thank you.
koopa_troopas is offline   Reply With Quote
Old 05-20-2011, 04:03 AM   #2
koopa_troopas
Registered User
 
Join Date: May 2011
Posts: 10
Well, finally I've found out that the problem only occurs when I try to run mpeg2 layer III files. When I use mpeg1 layer III files, I have no problem at all.
Does that mean that I can't reproduce any mpeg2 audio files??

Does anyone know how could I hadle them???
koopa_troopas is offline   Reply With Quote
Old 05-20-2011, 04:25 PM   #3
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,113
MPEG-1, Layer 3 is what we commonly know as "MP3". Where are you getting these other files?

AFAIK, MP3 is the only kind of bare audio stream the TiVo will handle, although it will play other types of audio (AC3, AAC, MP2) as part of video/audio streams.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 05-23-2011, 02:32 AM   #4
koopa_troopas
Registered User
 
Join Date: May 2011
Posts: 10
I may look like an idiot now, but how can I exactly play those other types??
"video/audio" is not a valid content type for the createStream method, isn't it?

Should I use another method? I'm sorry, I'm a little lost here.

By the way, my final goal is to program an audio podcast application, and some audios I get from some podcast are in that format :S
koopa_troopas is offline   Reply With Quote
Old 05-23-2011, 03:49 AM   #5
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,113
"video/audio" was not meant to be a MIME type. I was just saying "video files with audio tracks", or as they're colloquially known, "video files". That's what I get for trying to be exact.

Your best bet is simply to transcode the files to standard MP3.

I still find it odd that these files are supposedly in a format that nobody else uses. I have to wonder if that's really the issue.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 06-01-2011, 07:49 AM   #6
koopa_troopas
Registered User
 
Join Date: May 2011
Posts: 10
I used mpgtx in order to obtain the info. They're mpeg2 layer III for sure.

Anyway, the problem must be with the simulator, because when I try running the code on tivo, it runs perfectly.

Sorry if I've brought confusion, I'm a newbie in all this tivo programming stuff.
koopa_troopas is offline   Reply With Quote
Old 06-01-2011, 02:38 PM   #7
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,113
Yeah, the simulator is kinda buggy.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media

(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 01:12 PM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |