shaka configure to choose the Representation and Adaptationset you want to play - shaka

I am trying to configure shaka-player to play the UHD representation from my manifest instead of the SD. My question is:
How does it decide which Representation to play?
How can you define which representation to play?

I finally used Dashjs instead of shaka-player which starts with highest bitrate instead of lowest one.

If you are using shaka UI, the UI will include playback selection.
https://shaka-player-demo.appspot.com/docs/api/shaka.ui.PlaybackRateSelection.html
https://shaka-player-demo.appspot.com/docs/api/tutorial-ui.html
https://shaka-player-demo.appspot.com/docs/api/shaka.Player.html
selectVariantsByLabel(label)
selectVariantTrack(track, clearBufferopt, safeMarginopt)

Related

Dynamic formatting of phone number in cn1

Are there any classes in cn1 similar to Android's PhoneNumberFormattingTextWatcher ?
I have a textfield for a phone number input. While user types in the phone number, I want it dynamically modify to "(123)456-7890" format. In general, this code will work https://stackoverflow.com/a/5114914/8921111 . But I need a real-time modifying.
Thank you.
No. You can use a DataChangeListener and dynamically edit the input to force a specific mask but that isn't ideal...
A simpler solution would be to use separate text fields for each editable portion and move the input between those entries. You can automatically move the cursor between the fields when one is filled up. See the developer guide section that covers masking here: https://www.codenameone.com/developer-guide.html#_masking

Changing Maps In Game

I want to change the map in Rainbow Six Siege like when i start any map in custom game and load any other map.
Please Help 🥺
Example: I select House Map in custom game And Change something from cheat engine or change some hex codes then start i get bank map.
Go to options and select matchmaking preferences then you can disable all the ones you don't want to play and leave on the ones you do. Effectively you can just do one map and one mode if you desire. This works for Lone Wolf and PVE. Video below shows how.
https://youtu.be/KUn-zdRob8M
hope u r satisfied with the answer

scandit not scanning 2D-codes

I've been trying use Scandit in Codename One through their library. I can display the camera screen on my phone and also scan barcodes, but not 2D codes. I'm using version 5.5.2 for both Android and IOS.
I've read on their site that you have to enable the scanning of 2D codes so I went to check if I could change anything in the Native Interface or maybe use an implemented function to enable the correct Symbologies.
My question is, is it possible to enable these symbologies in their library. Should this be enabled automatically? How can I fix this issue?
Thank you in advance.
The Scandit docs example for 2d bar codes uses the SYMBOLOGY_EAN13 and SYMBOLOGY_CODE128 symbologies.
In the Codename One API, that translates to something like:
Collection<Integer> symbologies = CodeScanner.createSymbologySet(
CodeScanner.SYMBOLOGY_EAN13,
CodeScanner.SYMBOLOGY_CODE128
);
CodeScanner.getInstance().scan(symbologies, new ScanResult() {
...
});
Check out the CodeScanner source for some more details on available symbology constants.

Beacon UUID vs BeaconLayout

I am currently interested on how Beacons are working but I have some questions about it.
For iOS, I only see source code about Beacon UUID. But for Android, I only see "beacon layouts".
Are they the same? Can they be converted from one format to another?
Let's say I have this Beacon UUID:
636f3f8f-6491-4bee-95f7-d8cc64a863b5
Is this possible to get the beacon layout? But more specifically, what's a beacon layout exactly?
Thank you!
A beacon "layout" refers to the beacon format, specifically how the different fields are encoded into bytes needed to transmit the information inside Bluetooth LE advertising packets.
Some companies like Apple maintain their beacon formats as trade secrets, so they don't allow them to be published. Open source modules like the Android Beacon Library can't include ways to decode these beacons without publishing them. So they use a layout string, which is a way for a user to quickly and easily tell the library to decode that beacon.
Here's an example for the open-source AltBeacon format, which doesn't mind folks publishing it:
m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25
This means that a bluetooth LE beacon transmission matching this layout can be encoded/decoded like this:
Uses a manufacturer advertisement packet (m) with a two byte type code of 0xbeac in byte positions 2 and 3.
Has its first identifier (ID1 equivalent to iBeacon UUID) in bytes 4-19.
Has its second identifier (ID2 equivalent to iBeacon major) in bytes 20-21.
Has its third identifier (ID3 equivalent to iBeacon minor) in bytes 22-23.
The "p" and "d" parts of the layout refer to a "power" calibration value for distance estimates and a "data" field to store battery level and other manufacturer-specific information.
There are several other popular beacon formats like iBeacon and Eddystone. They have their own layout strings, which are both very similar to the one shown above.
While you can't use different beacon formats interchangeably, you can use all these beacon formats on both iOS and Android. Using a proprietary format on Android is just a matter of doing a Google search to find the right layout string for the beacon format, then configuring it like this:
BeaconManager.getBeaconParsers().add(
new BeaconParser().setBeaconLayout("<paste layout string here>"));

How do I add an "enviroment" to my scene in 3ds MAX?

I'm Currently working on a scene and i cant seem to find infomation as to how to make a setting for my scen. Its basically a street with buildings on either sides. about 500m long.
I want to put it into a city "enviroment" for animation. Also there will be camera movements so i dont think simply adding an image as a background will work. what i want to know is, Is there a a way to achieve what i want without actually building a small city?
any help or a pointer in the right direction would be great.
thanks in advance
A cubemap might work. http://wiki.polycount.com/CubeMap
There are applications which will generate a city for you, based on criteria you enter. You can enter the building types, sizes etc. I've used one called City Engine - I used the built in wizards to create this but you can create one from scratch even specifying the road layouts: Youtube Video
3ds max has predefined models within it's system,
For example a tree:
This tutorial is great:
http://www.youtube.com/watch?v=G-cfF2ep2DI
look into "AEC Extended"

Resources