简体   繁体   English

我希望我的应用程序的用户使用MyVideoPLayer播放每个视频

[英]I want my application's user to play every video with MyVideoPLayer

I had developed a video player which is working fine. 我已经开发了一个视频播放器,可以正常工作。 Now i want from user to play every song with it. 现在,我希望用户播放每首歌曲。 I mean whenever user clicks a video file, it should play with my video player or how can I add my video player to the alert dialog which appears when a video file is clicked? 我的意思是,每当用户单击视频文件时,它都应与my video player一起my video player或者如何将我的视频播放器添加到单击视频文件时出现的警报对话框中?

Add the following intent-filters to your video player activity: 将以下意图过滤器添加到视频播放器活动中:

    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="rtsp" />
    </intent-filter>
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <data android:mimeType="video/*" />
        <data android:mimeType="application/sdp" />
    </intent-filter>
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="http" />
        <data android:mimeType="video/*" />
    </intent-filter>

This will add your app to the list of apps that can play Videos and RTSP streams from the internet (remove the first filter if you don't want to support streaming). 这会将您的应用程序添加到可以播放来自互联网的视频和RTSP流的应用程序列表中(如果您不想支持流式传输,请删除第一个过滤器)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我想在每个浏览器中关闭浏览器后注销我的应用程序? - I want to log out my application after browser close in every browser? 如何为我的应用程序使用geoserver的用户管理 - How can I use geoserver's user management for my application 我想根据用户从我的应用程序中选择来禁用/隐藏移动设备上的应用程序 - I want to disable/hide applications on mobile, based on user selection from my application 我如何包含一个问题,询问用户是否想再次玩游戏? - How do I include a question asking the user if they want to play again? 为什么我不能从 VideoView 播放我的视频? - Why can't I play my video from VideoView? 在Java桌面应用程序中播放视频 - Play video in a Java Desktop Application 我想在执行if块时向用户(移动应用程序)发出通知。 此代码无效,我的代码有什么问题? - I want to give notification to the user (mobile application) when the if block is execute. this code doesn't work, what is wrong with my code? 我有一些视频列表,我只想在弹出模式下播放一个视频 - I have list of videos I want to play only one video in popup modal 我想在我的JPanel中通过xuggle实现播放的视频窗口? - i want implement played video window by xuggle inside A my JPanel? 我想计算我在测验应用程序中提交的每个正确和错误答案,并希望在 textview 中显示分数 - I want to count my every right and wrong answer submitted in my quiz app and want to display score in textview
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM