media-player

Is there anyway that I can put an movie clip on mouse-over to autoplay my movie?

我们两清 提交于 2019-12-11 07:38:01
问题 I want to autoplay my video on mouse over. Can anybody tell me how to make it play via media player or flash player? PS: Can I play WMV/ASF/MP4 in flash player? 回答1: Well I have found that it is easiest to use swf files to show movies in the browser for two reasons: Easy to use javascript to control them and they work in old browsers. (It is easy to convert any movie format to swf). Also there is the simplistic freedom of the swf, I looked into at the time quite intensively and could not find

Android Streaming with MediaPlayer: Error(1, -1004) and 3GPP video

混江龙づ霸主 提交于 2019-12-11 07:26:55
问题 I'm trying to do an app for play video. I've 2 problems: 1) I've a Youtube's link: rtsp:// and i do: "Uri myUri = Uri.parse(link); //link = rtsp://... mMediaPlayer.setDataSource(getApplicationContext(), myUri);" Then, the video doesn't play... however, if i use a "videoview" works. I think the problem is that "mediaplayer" doesn't play the mpeg codec. Any ideas? 2) I've several links to a different quality, and i play them connected to wifi and no problem but with data connection: 05-01 15:58

Failed to play video by vlcj in java

只愿长相守 提交于 2019-12-11 06:33:48
问题 I wants to use vlcj to play video in a JPanel. This JPanel is one of six JPanels in a JFrame. I used the code below to display the video, but failed to make it. The JPanel does not display the video.I would be really appreciated if anyone could give me some suggestions. The code in JPanel is listed below: public class VideoPanel extends JPanel { private EmbeddedMediaPlayerComponent mymediaPlayer; private String vlcPath = "d:/Program Files/VideoLAN/VLC"; private String mediaPath = "d:

using org.mpris.mediaplayer2.player PlaybackStatus property in python

◇◆丶佛笑我妖孽 提交于 2019-12-11 06:17:33
问题 The Specification page for this particular interface says: PlaybackStatus — s (Playback_Status) . . . May be "Playing", "Paused" or "Stopped". But when i read it like this: print "Song %s" % iPlayer.PlaybackStatus or if iPlayer.PlaybackStatus == "Playing": print "Song playing" It shows a very strange output like <dbus.proxies._ProxyMethod instance at 0x255f248> How can I access the String value of this variable? 回答1: You have to call the Get method to get the property. The method returns a

Change the volume of a specif player and get its current volume

女生的网名这么多〃 提交于 2019-12-11 06:11:37
问题 I've this class (my media player class) and I need to create 2 methods on it, one to change the volume and other to get the current volume. (I'll create a seekbar to change the player volume), ok. public class LoopMediaPlayer { private Context ctx = null; private int rawId = 0; private MediaPlayer currentPlayer = null; private MediaPlayer nextPlayer = null; public static LoopMediaPlayer create(Context ctx, int rawId) { return new LoopMediaPlayer(ctx, rawId); } private LoopMediaPlayer(Context

Media Player Control for .NET Compact Framework

烂漫一生 提交于 2019-12-11 06:10:06
问题 Is there any free media player control library that allows us to play videos in a .NET Compact Framework application? We tried the one available at http://www.coppercoins.de/post/2008/11/03/WMP-Part-IIIa-Creating-new-Interop-Assembly-for-Mediaplayer.aspx, but having issues with memory problems and access violation errors. 回答1: Did you look at the MSDN article on ActiveX Hosting? Be aware that it has a bug in it. If you need a player for Windows CE (i.e. not Windows Mobile) there's an open

AudioUnit framework not found

柔情痞子 提交于 2019-12-11 06:04:30
问题 I am implementing an audio based application, in that I need to play both application audio and ipod auido. When I try to run my application I am getting an error like, ld: framework not found AudioUnit collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1 my view controller code is as follows, .h file: #import <UIKit/UIKit.h> #import <MediaPlayer/MediaPlayer.h> #import <AudioToolbox/AudioToolbox.h>

Mediaplayer continues to play

99封情书 提交于 2019-12-11 05:59:12
问题 I have a media player and everytime that this activity is called if there is a media player playing i want it to stop and the new media player start playing ... This is my audio player method private void playAudio(String url) throws Exception{ mediaplayer.release(); mediaplayer.setDataSource(url); mediaplayer.prepare(); mediaplayer.start(); } I initialize the media player at the beginning of the class private MediaPlayer mediaplayer = new MediaPlayer(); private Handler handler = new Handler(

Programmatically detect if Windows Media Player is installed

旧街凉风 提交于 2019-12-11 05:38:38
问题 Anybody have any advice on how to programmatically detect if Windows Media Player is installed? I know about the registry setting look up, but don't trust it since it's more than a little misleading (uninstalled may not remove it). And I've considered just launching a video, but an error could be caused by something other than Media Player not being installed, so it's not conclusive either. Ideally, I'd prefer a solution which could be used from both my C++ application AND my NSIS installer.

onDestroy crash after closing app

岁酱吖の 提交于 2019-12-11 05:33:36
问题 I'm having some problems after making an override of the method onDestroy. My app is a music player, using the instance of mediaplayer I need at some point to force the release of it if no music is playing. This is my code so far, for making the trick I've both overrided the onKeyDown() and onDestroy() method: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_BACK)) { if(mp.isPlaying()) { //Genera la notifica generateNotificationSong(); //Muovi