Software Archive
Read-only legacy content

intent play video in external players

Alex_S_2
Beginner
927 Views

Hello, can I standard intent-filters in build parameters for android set external process video-link?

Now I simply call new location for curent window in javascript:

function playVideo(sUrl){
   location.href = sUrl;

}

But some links .m3u8 automatically start play video, however some .mp4 links just only download without asking for using external players

I hope get final result from using intent-filter as this:

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(newVideoPath));
intent.setDataAndType(Uri.parse(newVideoPath), "video/*");
startActivity(intent);
0 Kudos
5 Replies
PaulF_IntelCorp
Employee
927 Views

This is outside the scope of the support we can provide. I recommend you search for solutions based on this search query: "using intent links cordova android", for example > https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=using+intent+links+cordova+android&* < there are many solutions out there.

The Intel XDK creates a standard Cordova CLI project. Solutions you locate for Cordova will work with your XDK project.

0 Kudos
Alex_S_2
Beginner
927 Views

Ok, I use external plugin with player and now all ok.

But I have next question - how include in intel XDK support android TV?

In google market I found this information (https://developer.android.com/training/tv/start/start.html)

<intent-filter>
      <action android:name="android.intent.action.MAIN" />
      <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
    </intent-filter>

But where add this code I don't understand/ Please, help me.

0 Kudos
PaulF_IntelCorp
Employee
927 Views

Those are AndroidManifest.xml file changes being recommended. Making such changes with our build system is difficult. I recommend you use Cordova CLI to make an app that requires such changes. You can also use a general plugin for that purpose (which is not compatible with PhoneGap Build or with the XDK) or you can use a specialized plugin for this specific purpose (which is no longer maintained). There are many other plugins and articles that will help. Search for something like "cordova plugin intent" to find them.

0 Kudos
Alex_S_2
Beginner
927 Views

Hello again.

I solve my problem with this plugins:

com.hughisaacs2.cordova.plugins.androidtvplugin 

com.qdev.webintent 

But now, when i try publish my app in google market, i recieve message from google team:

Your app does not contain a full-size app banner.

http://developer.android.com/training/tv/start/start.html#banner
http://developer.android.com/design/tv/patterns.html#banner

And now i have same problem with change  AndroidManifest.xml

Can you help me?

0 Kudos
PaulF_IntelCorp
Employee
927 Views

Since the Intel XDK build system is going to be retired at the end of June, I recommend you try using PhoneGap Build and their technique for modifying the AndroidManifest.xml file > http://docs.phonegap.com/phonegap-build/configuring/config-file-element/ < or you do this directly using Cordova CLI (where you can modify the AndroidManifest.xml file directly in the Cordova CLI platform folder).

You should be able to add the PhoneGap Build changes to your project's intelxdk.config.additions.xml file to have it included in the exported config.xml file.

0 Kudos
Reply