{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As newer Huawei smart phones have HMS core only, they do not have support for Google related services directly. YouTube is also one of them and this will cause problem in some applications which uses embedded YouTube videos. Today I will mention about solution for this problem.
First of all let me explain the problem. New Huawei smart phones do not have GMS so google related services do not work with these phones. Official YouTube library (SDK) is also dependent for GMS. When an application have embedded YouTube videos, it mostly crashes when we try to run it on pure HMS phones. I was having same issue on an application which is planned to be released on Huawei AppGallery. So I tried to find a solution and found a third-party library.
GitHub - PierfrancescoSoffritti/android-youtube-player: YouTube Player library for Android and Chromecast, stable and customizable.
YouTube Player library for Android and Chromecast, stable and customizable. - GitHub - PierfrancescoSoffritti/android-youtube-player: YouTube Player library for Android and Chromecast, stable and c...
github.com
This third-party library offers nearly every capability that official YouTube library have. It is easy to use. We can use this library as an alternative for pure HMS phones without having any problem. Also, we can use this library and official library together by checking GMS/HMS availability.
Java:
public boolean isHMS() {
return HuaweiApiAvailability.getInstance().isHuaweiMobileServicesAvailable(this)
== com.huawei.hms.api.ConnectionResult.SUCCESS;
}
public boolean isGMS(){
return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this)
== ConnectionResult.SUCCESS;
}
With these functions we can learn which service user has and decide which library (3rd party or Official) application should use. For the UI part when we decide the library we can use View visibility functions.
XML:
<com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView
android:id="@+id/youtubeVideo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.youtube.player.YouTubePlayerView
android:id="@+id/youtubeVideoGMS"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
Java:
private void decideYoutubeView(){
YouTubePlayerView youTubePlayerView = findViewById(R.id.youtubeVideo);
com.google.android.youtube.player.YouTubePlayerView youTubePlayerViewGms = findViewById(R.id.youtubeVideoGMS);
if(isHMS()){
youTubePlayerViewGms.setVisibility(View.GONE);
}else {
youTubePlayerView.setVisibility(View.GONE);
}
}
With this writing I tried to find a solution for YouTube video problem on Pure HMS phones. I hope this writing will help you.
Thank you.
how many api have you integrated from youtube?
ProManojKumar said:
how many api have you integrated from youtube?
Click to expand...
Click to collapse
I couldn't totally understand what you mean can you please explain more?
Related
Hello! We've launched Mobiscope Cloud Beta, cool video surveillance service and wonder if you’d like to join us ?
We are looking for enthusiastic beta testers and are willing to hear expert reviews/critiques as well.
The service is currently available on Android devices to owners of wired and wireless IP cameras.
Please search for Mobiscope Cloud app in the Google Play Market
While the service is in beta, you can connect up to two network cameras.
The app is available at Google Play Market. Android OS 2.3 or newer is required.
If you have any questions, we’ll be happy to talk: [email protected]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
More details for inquisitive fans:
Mobiscope Cloud is an intelligent digital video recorder in the cloud with live video streaming, activity detection alerts and video recordings archive.
- Automatic configuration of hundreds of popular network cameras in Android app.
Any camera that supports RTSP protocol and H.264 video codec as well as older FTP upload-based cameras are supported in Mobiscope;
- Live video viewing in Android app and in any web browser;
- Motion detection with push notifications (it doesn’t matter whether your camera is capable of motion detection, it’s done by our service);
- Cloud video storage limited to 72 hours while the service is in beta;
- Digital Video Recorder (DVR) in the app: start / pause / position seek;
- Fullscreen viewing;
- Graphical timeline with color-coded camera events;
- Simultaneous access from several Android devices;
- Demo cameras to see how Mobiscope works without adding own camera.
Looking forward for your comments and wishes!
Mobiscope Team
my first impression:
a very good app, with intuitive user interface. a must have for pet owners.
however needs some improvements in stability - hope it gets improved in stable release
sainctetoweba
Mobiscope has launched Mobiscope Cloud, digital video recorder (DVR)
in the cloud service for wide range of IP cameras, inlcluding models
from manufacturers like Axis, D-Link, Foscam, Panasonic and many
others.
If you own an IP cam, we invite you to give Mobiscope Cloud a try.
Happy Coding! How can we make boring coding work interesting?
Today we're going to teach you how to change the coding from boring to awesome! The answer is activate-power-mode.
Atom is a cross-platform text editor developed by Github for programmers. It has a simple and intuitive graphical user interface and has many interesting features: supporting web programming languages such as CSS, HTML, and JavaScript. Speaking of which, do you think I'm going to introduce this editor? NoNoNo, the reason it's mentioned is that the Atom Editor has a cool special effect activate-power-mode, like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As you can see, when we enter content, the plug-in will show the page jitter, with a colorful bubble effect, which is so cool. So can this Atom-derived plug-in support other editors? The answer is, yes...
Firstly, visit Deactivate-power-modegithubswirlshttps://github.com/ViceFantasyPlace/activate-power-mode
This is an extension address set about activate-power-mode. We can see that the plug-in can be moved to many editors or platforms. Among the editors for Python, Visual Studio Code and Pycharm are highly used. I recommend Pycharm. Jet Brains is a Czech software development company based in Prague, a very smart software company.
How to Download a Plug-in
First, access the plug-in based on the plug-in address.https://github.com/ViceFantasyPlace/activate-power-mode:
Click to download the plug-in in Release and select the latest version V0.1.8.
Plug-in installation
To add a plug-in to the IDEA or PyCharm, choose File > settings > Plugins > Install plugin from disk > select the plug-in address to install.
Due to the difference between the pycharm versions, the pycharmInstall plugin from disk button is in the lower right corner of Plugins, and the 2019 version shrinks inside the gear. After the installation is complete, the pycharm would prompt you to restart. Click OK to restart the pycharm. Then you can start your journey to a brand new coding experience.
Plug-in Settings
You can view the activation-power-mode options in the window on the top layer of pycharm.
You can only choose combo effects or example effects.
They cannot be chosen at the same time.
For details about Huawei developers and HMS, visit the website.
HUAWEI Developer Forum | HUAWEI Developer
forums.developer.huawei.com
Huawei’s App Linking allows for cross platform deep linking. How does this work on Non Huawei phones that don’t have HMS core installed? Lets take a look!
Lets start by testing App Linking on non-Huawei phones according to the information presented in the App Linking codelab.
I integrated App Linking into a demo app by following the instructions in the codelab, and set the link opening mode to AppGallery and the local app store respectively.
Setting the link opening mode to AppGallery:
Java:
AppLinking.Builder builder = new AppLinking.Builder()
.setUriPrefix(DOMAIN_URI_PREFIX)
.setDeepLink(Uri.parse(DEEP_LINK))
.setAndroidLinkInfo(new AppLinking.AndroidLinkInfo
.Builder()
.setOpenType(AppGallery)
.build())
Setting the link opening mode to the local app store:
Java:
AppLinking.Builder builder = new AppLinking.Builder()
.setUriPrefix(DOMAIN_URI_PREFIX)
.setDeepLink(Uri.parse(DEEP_LINK))
.setAndroidLinkInfo(new AppLinking.AndroidLinkInfo
.Builder()
.setOpenType(LocalMarket)
.build())
I then installed the demo app on two non-Huawei phones to test App Linking between Huawei phones and non-Huawei phones.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As shown using the second code snippet we can see that App Linking is fully supported without the need of HMS Core. If the app has been installed on the non-Huawei phone, the in-app page can be directly opened without any problems.
If the app has not been installed on the non-Huawei phone and the link opening mode is AppGallery, the link will redirect the user to AppGallery. If AppGallery has not been installed, it will redirect the user to the AppGallery website.
If the app has not been installed on the non-Huawei phone and the link opening mode is set to local app store, the link will redirect the user to the local app store selected by the user. (Some mobile phone manufacturers will forcibly redirect the user to their own app store.)
Very useful sharing, thanks
Does it support a short link?
HMS Core 6.0, which was released globally on July 15, offers SmartCoder as part of HMS Toolkit, an intelligent programming assistant that's designed to make HMS Core integration seamlessly efficient, for developing innovative apps easier than ever.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
With SmartCoder, you'll be able to find official HMS Core resources (currently includes Account Kit, Ads Kit, Analytics Kit, IAP, and Push Kit) in Android Studio with incredible ease, without ever needing to switch between Android Studio and other interfaces – a document-free programming experience. This alone can boost development efficiency by more than 30%.
SmartCoder comes equipped with two functions: code auto-completion and smart search. Activating code auto-completion only requires you to enter hms in the editing area. The function enables you to complete coding quickly, thanks to the following advantages: completes single API or API call chains; provides floating windows to describe APIs in rich text, and quick documentation in pop-ups, listing code details as well as a short descriptions; allows you to edit auto-completed code snippets. Smart search provides instant access to a wealth of resources, including Kit (for kit-related documentation), Template (for integration steps), Snippet (for sample code snippets), and API (for official API references).
HMS Toolkit is an IDE plug-in that provides all the tools required for developing and releasing HMS Core-integrated apps in Android Studio. You can use it to create, code, convert, test, and release your apps, for a more productive and cost-effective development process.
ungoogled-chromium is an Open-source browser.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Visually, there is not much difference between "Ungoogled Chromium" and Chromium or Chrome. The changes can be found under the hood: All features that contact Google's servers have been deactivated. These are functions like the Google Host Detector or the Google URL Tracker. The default search engine is not Google, but DuckDuckGo. And in general, all Google binaries have been removed from the source code of "Ungoogle Chromium".
Without signing in to a Google Account, Chromium does pretty well in terms of security and privacy. However, Chromium still has some dependency on Google web services and binaries. In addition, Google designed Chromium to be easy and intuitive for users, which means they compromise on transparency and control of internal operations.
ungoogled-chromium addresses these issues in the following ways:
Remove all remaining background requests to any web services while building and running the browser
Remove all code specific to Google web services
Remove all uses of pre-made binaries from the source code, and replace them with user-provided alternatives when possible.
Disable features that inhibit control and transparency, and add or modify features that promote them (these changes will almost always require manual activation or enabling).
ungoogled-chromium
is Google Chromium, sans dependency on Google web services.
retains the default Chromium experience as closely as possible. Unlike other Chromium forks that have their own visions of a web browser, ungoogled-chromium is essentially a drop-in replacement for Chromium.
features tweaks to enhance privacy, control, and transparency. However, almost all of these features must be manually activated or enabled. For more details, see Feature Overview.
Download:
Directory Listing
Just use Edge. You can choose DuckDuckGo as your search.
gernerttl said:
Just use Edge. You can choose DuckDuckGo as your search.
Click to expand...
Click to collapse