Im working on a roku app using scene graph component. I am facing many issues like...
During video buffering i want to pause video. Im using this code but not working
video.control = "pause"
During video buffering a blank screen is displaying. I want to show last video image instead of blank screen.
I want to show dialog box to check internet connection on splash screen.
Is this possible to use BrightScript component like "roImageCanvas" or "roListScreen" in scene graph component?
Since Im working first time on brightscript so i don't know does roku supports this type of job or not.
Please suggest any ideas to fix the above issues.
Thank you
1) Not sure what's causing it for you, please share the code for better help.
2) I don't think Scene Graph enables you to do that yet! Couldn't find any reference to any such ability.
3) In your main.brs, at the very beginning you can use Dialog node to show a dialog box, to show message or to take input (buttons), and to check for the network you can use the method GetLinkStatus() of the object roDeviceInfo.
4) For all the substtues for Brightscript Components, look up here: https://sdkdocs.roku.com/display/sdkdoc/Transitioning+to+Scene+Graph
Related
I'm writing a POC Android TV app for my company based on our existing mobile OTT product and backend.
I'm modifying the PageAndListRowFragment example from Google's Leanback Showcase code.
When a header option is selected (with OK or right arrow) I want the RowsFragment side to popup an AlertDialog to let me filter the content displayed ('all', 'latest', etc).
My problem is that I have the AlertDialog in the RowsFragment onCreate So, It displays as soon as the HeadersFragment is highlighted. This stops the user from scrolling down the header smoothly and is confusing because you still have to select the header item after the dialog.
Most advice on the web seems to point to overriding the OnItemViewClickedListener function on the HeadersFragment but I can't find a way to do this. (The leanback showcase uses the deprecated BrowseFragement code, Not BrowseSupportFragment and if I try to change up I get into FragmentFactory errors I'm not experienced enough to resolve).
I've also tried implementing isShowingHeaders() in the RowsFragment.
I've tried to find a stage of the fragment lifecycle in either HeadersFragment or RowsFragment that will let me popup the dialog when the RowsFragment is full screen without success.
I'm already using the PageRowFragmentFactory code in the leanback showcase code to send an EventBus message containing the header option chosen and was hoping to send a similar message to trigger the dialog.
I've tried setting up a setOnHeaderViewSelectedListener on the BrowseFragment but can't seem to successfully get it invoked.
I'm new to Android programming so apologies for my ignorance, but I'm determined to make this work somehow.
Any suggestions on the approach would be very much appreciated, thanks.
I've implemented Cast SDK 3 into my application for Android, everything is working as expected when following the guidelines from the Cast SDK website, the only thing that I can't wrap my head around is the button for play_pause_toggle_button, the screen shot from the Cast SDK website shows a proper pause button, but I get stop button instead (in which pauses the video) is there something I'm not doing correctly that may not be obvious?
First post, please go easy :)
If I were to guess, I would say you have set the stream type of your MediaInfo objects to MediaInfo.STREAM_TYPE_LIVE. If so, change them to MediaInfo.STREAM_TYPE_BUFFERED and see if that fixes your problem.
I am new to Android development, I need to show user manual like Flip-kart app on start-up of app.
Please refer the image below, You will get an idea about, What actually I want to achieve....
Is there any standard way to achieve this?
You can do the whole stuff manually.
Or use a prebuilt library called ShowcaseView.
You'll find details, code and guide here http://www.xda-developers.com/android/create-holo-themed-demo-overlays-with-showcaseview/
Here is my suggestion
Get the semi-transparent images of manual pages. Keep the Images in your res/drawable.
Use sharedpreference to maintain the status whether this manual is shown to user on startup or not (Depending on your requirement). Check the status when the app is launched, to decide whether to show this to user or bypass it.
Use a fragment or Activity to display this manual images in sequence one after another.
for this you can use viewpager, swipe animation or simple buttons.
just use one Gallery view and skip button on it.Show that gallery on the first installation.For that you can set flag value in sharedpreference.Also shows a button for virtrual tour in Left drawer,
I'm using the Corona SDK and I'm still fairly new to it. I am using the Storyboard api to navigate scenes. I have a main page with a button on it. The button listener uses gotoScene to open another scene that has a tab bar. When I run the app, the button works, but the new scene is created on top of the first scene. The problem is that both scenes are being displayed simultaneously. I tried implementing destroyScene with a simple print("destroyScene called") to see if it was even being called and it wasn't. Does anyone know what I'm doing wrong? I feel like I'm missing some fundamental functionality of the storyboard api.
you can find all the answers to your questions about Storyboard API in Corona SDK by referring this sample-code
Destroy Scene is only called when you run out of memory.
You need to use exitScene to turn off the visibility of the things instead (also remove inside exitScene any event listener, so you don't trigger it by accident, and add those back on enterScene).
I am developing an application in android. I have an Activity where I have a couple of buttons. Among them when I click on one button, I want to get dropdown like iPhone default picker.
To achieve that, I am using Android wheel concept. I have implemented like this, when I click on the button, it is calling another activity where my required custom layout is shown. Problem is custom layout should come from bottom of the screen in the same activity where the button I am clicking exists.
I have attached a screenshot. I want to achieve as shown in the screenshot (missing).
Please help me providing the required solution. Pardon me if there any mistakes in my question. This is the first time to ask a question.
Since the lack of a screenshot that helps to understand your issue, this is more some kind of guess: Are you known to the concept of Spinners in Android? They provide a dropdown mechanism and are easily implemented.