Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Switch VideoView between Preview and Fullscreen mode
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Roman Ilin  
View profile  
 More options Nov 7 2012, 7:35 am
From: Roman Ilin <roman.i...@gmail.com>
Date: Wed, 7 Nov 2012 04:35:42 -0800 (PST)
Local: Wed, Nov 7 2012 7:35 am
Subject: Switch VideoView between Preview and Fullscreen mode

Hi *,

I develop tv player with Android SDK 4.0.3
I have TVChannelActivity and TVPlayerActivity.
TVChannelActivity contains 3 Fragments.
1st column ChannelsListFragment
2nd column TVPlayerFragment and EPGGuideFragment.

TVPlayerFragment uses VideoView.
TVPlayerActivity contains TVPlayerFragment only and has those 2 lines in
onCreate(...)

requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

to work in full screen mode.
Wenn I select one channel in ChannelsListFragment then after 2-3 seconds
buffering of video stream I can see preview of the tv.
If I click on the same channel again then I switch to TVPlayerActivity.

And here is my problem:
If I transfer tv channels stream url to TVPlayerActivity and set this url
to TVPlayerFragment's VideoView then buffering happens again and user waits
2-3 seconds until video starts.
If I stay in TVChannelActivity and simply try to hide ChannelsListFragment
and EPGGuideFragment then:
1) my TVPlayerFragment doesn't resize
2) I can not call requestWindowFeature(Window.FEATURE_NO_TITLE); because
GUI has been drawn.

What should I do?
Can I use the same instance of TVPlayerFragment in TVChannelsActivity and
TVPlayerActivity?
Or should I create some art of MediaPlayer singleton that I can share
between all TVPlayerFragments?

Best regards
Roman


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roman Ilin  
View profile  
 More options Nov 9 2012, 5:28 am
From: Roman Ilin <roman.i...@gmail.com>
Date: Fri, 9 Nov 2012 02:28:35 -0800 (PST)
Local: Fri, Nov 9 2012 5:28 am
Subject: Re: Switch VideoView between Preview and Fullscreen mode

No one knows?
I thought this sort of problem is common for video player in android and
somebody solved it...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »