Dec 28 | 9:55 AM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Dec 28 | 10:05 AM |
Sean | has entered the room |
Mark M. |
howdy, Sean!
|
Mark M. |
how can I help you today?
|
Sean |
Hello
|
Sean |
if
(getSupportFragmentManager().findFragmentByTag(MODEL) == null)
{getSupportFragmentManager().beginTransaction().add(new ModelFragment(),
MODEL).commit();
|
Sean |
Ooopss...sorry
|
Dec 28 | 10:10 AM |
Mark M. |
um, do you have a question?
|
Sean |
Yes, I do. if
(getSupportFragmentManager().findFragmentByTag(MODEL) == null)
{getSupportFragmentManager().beginTransaction().add(new ModelFragment(),
MODEL).commit();
|
Sean |
Oopss...
|
Sean |
Ok, when do we use fragment by tag and when do we use fragment by id?
|
Mark M. |
well, to some extent, that is up to you
|
jwandroid33 | has entered the room |
Mark M. |
if you put the fragment into a container with an ID, you can use findFragmentById()
|
Mark M. |
if you put the fragment into the manager with a tag, you can use findFragmentByTag()
|
Mark M. |
in this case, this is a model fragment -- one with no UI -- and so therefore it has no ID
|
Mark M. |
hence, I use a tag
|
Mark M. |
(BTW, jwandroid33 -- I will be with you shortly!)
|
jwandroid33 |
ok
|
Dec 28 | 10:15 AM |
Mark M. |
Sean: let me take a question from jwandroid33, and I will come back to you in a bit if you have more questions
|
Mark M. |
jwandroid33: do you have a question?
|
Sean |
Ok
|
jwandroid33 |
Yes a quick one
|
jwandroid33 |
I wanted to ask you about page 1175 of the 4.4 book
|
jwandroid33 |
The statement related to Android not supporting streaming MP3 in RTSP
|
Mark M. |
OK
|
jwandroid33 |
The question is:
|
jwandroid33 |
Does that mean streaming a/v like MPEG4 video or
something is supported but MP3 streams aren't? I was seeking clarity on
that. Sorry if I am a bit confused
|
Mark M. |
I seem to recall that RTSP supports MPEG-4
|
jwandroid33 |
Ok
|
jwandroid33 |
So you can stream MP4 but not MP3 audio using RTSP
|
Dec 28 | 10:20 AM |
Mark M. |
well, that's complicated
|
Mark M. |
RTSP is a specification
|
jwandroid33 |
:-)
|
Mark M. |
the specification does not cover streaming MP3 -- it only covers certain audio and video codecs and containers
|
jwandroid33 |
got it
|
Mark M. |
Android's implementation of streaming media playback always used to stick pretty close to the specifications
|
Mark M. |
hence, Android could not stream MP3 over RTSP
|
Mark M. |
because RTSP did not support streaming MP3
|
jwandroid33 |
I see
|
Mark M. |
however, various makers of RTSP servers and
clients have worked out an agreement for how to stream RTSP over MP3,
going beyond the specification
|
Mark M. |
early on, Android did not support those
|
Mark M. |
and I have no idea whether it supports this beyond-the-spec MP3 support now
|
jwandroid33 |
That answers my question
|
jwandroid33 |
Thanks again Mark.
|
Mark M. |
sure, happy to help
|
Mark M. |
(and, frankly, I am surprised that what I wrote actually helped, but, I am not going to complain...)
|
Mark M. |
Sean: do you have another question?
|
Sean |
No question.. thanks for the help.
|
jwandroid33 |
Helped a lot because it cleared things up in my mind!
|
Mark M. |
OK
|
Mark M. |
jwandroid33: do you have another question?
|
jwandroid33 |
I am good for now. If I don't talk to you before next year have a safe and happy holiday
|
Mark M. |
you too!
|
Mark M. |
if either of you come up with another question, before anyone else arrives, just chime in
|
Dec 28 | 10:25 AM |
jwandroid33 |
ok
|
Sean | has left the room |
Dec 28 | 10:55 AM |
Mark M. |
any final questions?
|
jwandroid33 |
No I am good. Happy holiday again!
|
Mark M. |
you too!
|
Mark M. |
that wraps today's chat
|
Mark M. |
the next office hours chat will be Thursday at 4pm Eastern
|
jwandroid33 | has left the room |
Mark M. | turned off guest access |