nchutchind / cordova-plugin-streaming-media Goto Github PK
View Code? Open in Web Editor NEWSimple plugin for loading full screen streaming video or audio.
License: MIT License
Simple plugin for loading full screen streaming video or audio.
License: MIT License
Hi Nicholas,
Thank you for your previous assistance!
For bookmark purposes such as to record what was the last position an end-user watch stream till.
Is it possible to raise an even every X ms with current position of the stream?
I am using Streaming-Meda-Cordova-Plugin version 0.1.4 for playing videos.
My Cordova version is 6.0.0
It is not playing in iPad which has an IOS 9.2 version. but it works well in my iPhone which has an IOS 7.0 version.
I am passing on my video path just by one simple line of code.
window.plugins.streamingMedia.playVideo(path);
It works pretty well in Android device and IOS mobile phones.
But not in iPad.
Even i tried to check the console for the path. so that there should not be path issue but it display the correct path in iPad console after debugging. When i click on play button there is no response it is not even showing the default video player.
Even i want to know why the sound is not coming while the hardware mute button is enable in IOS devices?
Can you help me to figure out what exactly the issue is and how to resolve it?
Is it possible to disable the onscreen menu?
What i mean that nothing happens if the screen gets touched?
I need some kind of kiosk mode.
Hello,
Is it possible this plugin works in background on my application. What that I want is: The user continue browsing in the App when he listen the songs in background.
Sorry about my English and thank you for listening.
Hugs,
Guilherme Couto
hello, thanks for your work, and when i use the plugin with inappbrowser it play in background why?
i can hear the audio but the player is hidden no visible , and when i use it without inappbrowser it works
fine (ios 8.3)
please help!
thank you
how can i use this plugin to play 10 mp3 files in play list
thanks
Hello,
I build my application on my iPhone 5 with iOS 9.2. It works only using earphones. If I try to listen the audio stream on speaker, not works, but the streaming remains downloading.
Thank you for any help.
Hugs,
Guilherme Couto
Hi when i pass the url to the plugin the media player opens but doesnt play anything on ios
Regards
Ezaz
Hello, I have a weird issue in iOS 8. I'm open an rtsp:// link and, while in Android I have no problems, in iOS I only get a black screen with media controls (volume, play, next, previous) and an endless "Loading..." with a spinner.
Am I doing someting wrong? Maybe rtsp is not supported in iOS8?
Hi is there a way to enable airplay support with this plugin ?
When I select the airplay icon in the bottom right corner on the device and try to enable streaming to the TV, a loading icon appears on TV but the video is not being played.
thanks
I am using Streaming-Meda-Cordova-Plugin version 0.1.4 for playing videos.
My Cordova version is 6.0.0
It is not playing in iPad which has an IOS 9.2 version. but it works well in my iPhone which has an IOS 7.0 version.
I am passing on my video path just by one simple line of code.
window.plugins.streamingMedia.playVideo(path);
It works pretty well in Android device and IOS mobile phones.
But not in iPad.
Even i tried to check the console for the path. so that there should not be path issue but it display the correct path in iPad console after debugging. When i click on play button there is no response it is not even showing the default video player.
Can you help me to figure out what exactly the issue is and how to resolve it?
Hi, I loaded your script into my html file and there are syntax errors. Can you provide a clearer example of how your script is written so that I can just copy and paste? I would really appreciate it.
What version of Streaming-Meda-Cordova-Plugin are you using?
version 0.1.4
What version of Cordova are you using?
5.4.1
What devices are affected?
Galaxy View (1920x1080)
Please describe the issue in detail, with relevant code samples
I tried to play a video on the fullscreen. But It displays very small at the center of screen and no player control. Not full screen like others Android Device
What did you expect to happen?
Must be show video at fullscreen mode
What actually happened?
But It displays very small at the center of screen and no player control.
I am looking forward for your suggestion about How to fix it?
It only happens on Galaxy View (1920x1080)
Awesome work on plugin.
We are using this plugin for our app, but on WIFI its working fine, while 3G or LTE network without any error it silently close itself.
Could you please let us, what could be wrong here, if you can guide me I can look myself and can send you pull request.
I was wondering how easy it would be to implement a text overlay on the video being streamed. Kinda like snap chat. but way less fancier.
I am facing a weird issue using the plugin for playing back m3u8 stream.
The native player launches and starts playing, audio is heard, but video is not showing.
Tilting device from horizontal to vertical or the other way around shows the video.
I am using vanilla hello cordova application to reconstruct the issue with the following javascript code in the body of index.html:
...
onDeviceReady: function () {
app.receivedEvent('deviceready');
var videoUrl = 'http://zeefamily.nextv.ca/u/zeecinema/index.m3u8';
console.log(videoUrl);
window.plugins.streamingMedia.playVideo(videoUrl);
},
...
Any suggestions and/or advice?
Hello I am struggling to make it work, I'm using XDK, and imported the repository and added the script:
function video(){
var videoUrl = "rtsp://streaming.xxxxxx.com.br:1935/xxxx/xxxxx";
// Just play a video
window.plugins.streamingMedia.playVideo(videoUrl);
// Play a video with callbacks
var options = {
successCallback: function() {
alert("Video was closed without error.");
},
errorCallback: function(errMsg) {
alert("Error! " + errMsg);
}
};
window.plugins.streamingMedia.playVideo(videoUrl, options);
}
but nothing happens .. Anyone know what else left to do?
mp4 not work in ios, it all in black,the video not play
Hello,
Is it possible to make this plugin for Phonegap Build ?
https://build.phonegap.com/plugins
Hello there.
using latest version of the plugin and also latest versions of cordova (6.0 and 6.1 at least) i've found that when playing video history of the activity was not cleared on each 'streamingMedia.playVideo()' call.
I tested on an android device 4.x (not tested on IOS); don't know if it's a common or a default (and desired) behaviour on previous versions of Cordova but i don't think so or should not be a default one.
So i solve this but adding android:noHistory="true" to plugin.xml file on lines 56 and 55 (not tested with audio but supposed to act the same way).
Maybe it worths and update and a PR.
Anyway, thanks and congrat for the plugin. Hope it will remain alive.
In SimpleVideoStream.java, lines 42 and 43 you have these lines:
mShouldAutoClose = b.getBoolean("shouldAutoClose");
mShouldAutoClose = mShouldAutoClose == null ? true : mShouldAutoClose;
'getBoolean' returns 'false' if the key isn't set so the default is always 'false'. Replacing it with this should fix the issue:
mShouldAutoClose = b.getBoolean("shouldAutoClose", true);
Is there a way to autoPlay the video on IOS?
I checked the code and did not find specific options for videos.
Hi guys,
I'm able to build my app for Android with the plugin and it works beautifully. Building for iOS, however, fails with the below message.
I have the latest plugin (0.1.4), latest cordova-ios (4.0.1), latest PhoneGap cli (5.3.9), latest OSX (El Capitan 10.11.3) and latest Xcode (7.2).
Any idea what I might be doing wrong?
Thanks,
Joseph
/Users/joseph/Desktop/myproject/platforms/ios/myproject/Plugins/com.hutchind.cordova.plugins.streamingmedia/StreamingMedia.m:31:33: error: no visible @interface for 'CDVPlugin' declares the selector 'initWithWebView:'
self = (StreamingMedia*)[super initWithWebView:theWebView];
~~~~~ ^~~~~~~~~~~~~~~
/Users/joseph/Desktop/myproject/platforms/ios/myproject/Plugins/com.hutchind.cordova.plugins.streamingmedia/StreamingMedia.m:49:24: warning: incompatible integer to pointer conversion assigning to 'BOOL *' (aka 'signed char *') from 'signed char _Nullable' [-Wint-conversion]
initFullscreen = [[options objectForKey:@"initFullscreen"] boolValue];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/joseph/Desktop/myproject/platforms/ios/myproject/Plugins/com.hutchind.cordova.plugins.streamingmedia/StreamingMedia.m:51:24: warning: incompatible integer to pointer conversion assigning to 'BOOL *' (aka 'signed char *') from 'int' [-Wint-conversion]
initFullscreen = true;
^ ~~~~
2 warnings and 1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC build/myproject.build/Debug-iphonesimulator/myproject.build/Objects-normal/i386/StreamingMedia.o myproject/Plugins/com.hutchind.cordova.plugins.streamingmedia/StreamingMedia.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/joseph/Desktop/myproject/platforms/ios/cordova/build-debug.xcconfig,-project,myproject.xcodeproj,ARCHS=i386,-target,myproject,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/joseph/Desktop/myproject/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/joseph/Desktop/myproject/platforms/ios/build/sharedpch
You may not have the required environment or OS to build this project
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/joseph/Desktop/myproject/platforms/ios/cordova/build-debug.xcconfig,-project,myproject.xcodeproj,ARCHS=i386,-target,myproject,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/joseph/Desktop/myproject/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/joseph/Desktop/myproject/platforms/ios/build/sharedpch
Should this work with an RTSP url within iOS? It loads up the video player but nothing seems to stream. The url works fine embedded in web page and in VLC player.
Thanks
in IOS 6 when I tapped on video and ran it through streaming media plugin it doesnt gets back to app after video is played and hangs the app.
Hey,
I am using version 0.1.4 of the plugin with cordova 6.1.1.
I am trying to stream video from a URL in my mobile app and while small video files 5-6mb are successfully played, larger ones 8mb+ keep failing with error message:
MediaPlayer Error: Unknown (1) -2147479543
Is the plugin try to download the all movie before playing it? or is it indeed streaming as name suggest?
Anyone experience this issue and found a solution/workaround?
Thanks
When iPhone hardware mute button is toggled - the video will play silent.
Is there a way enable sound for the playback in the plugin or, ideally, let JavaScript to control the behaviour of hardware mute button?
Great job on the plug-in by the way, it's working great in iOS 7.
Hi. How about to use exoplayer instead of mediaplayer in Android?
Great job in every way.
Hello i have install plugin using cli.
But when i use yotube url then it open player but not playing video its loading nothing Ahed
Please help me.
I was tried to implement rtmp based streaming app with cordova , but the plugin it didn't work on my android (Kitkat) , Please describe the proper way to implement the plugin feature into my app.
Thanks
bgImage: "<SWEET_BACKGROUND_IMAGE>" - option no longer displays images when built with latest version of PhoneGap Build.
Tested in iOS 6, 7 and 8. No video only audio. Controls do nothing and I have to force close app. Need this fixed ASAP or else I have to find another plugin
I am using this but it give error please help me.
Adobe's Phonegap Build service doesn't like the latest version:
"plugin unsupported: com.hutchind.cordova.plugins.streamingmedia @ 0.1.4"
Not specifying a version provides 0.1.3 with no error.
works well on ios, But stops playing when screen gets locked. Is there any plan in future to support this as well as support for windows phone.
I'm looking for a way to pause the current audio not stop it entirely.
I looked through the IOS source and I saw this:
-(void)stopAudio:(CDVInvokedUrlCommand *) command { [self stop:command type:[NSString stringWithString:TYPE_AUDIO]]; }
I've never done any Objective C, and I'm pretty sure it's totally naive to imagine there could just be a
-(void)pauseAudio:(CDVInvokedUrlCommand *) command { [self pause:command type:[NSString stringWithString:TYPE_AUDIO]]; }
The StreamingMedia.h
file doesn't list the stopAudio method, so I'm not sure if this new method (prototype) would need to go in there too.
Streaming-Meda-Cordova-Plugin = 1.0.2
devices affected = Micromax A190 Android 4.4.2
I have using this plug-in for HLSV3 .m3u8 videos. Plug-in is working well with my url but issue is if I get disconnected to internet and if I haven’t fast forwarded video player get close automatically but after fast forwarding video player is not get close automatically and it is resetting time to 00.00.
Expect to happen:
Video player get close after disconnected to internet when doing fast forward.
What actually happened?
Video player not get close after disconnected to internet when doing fast forward.
I'm using Adobe's PhoneGap build service and getting the following error:
The following build commands failed:
CompileC build/PCNSelect.build/Release-iphoneos/PCNSelect.build/Objects-normal/armv7/AppVersion.o PCNSelect/Plugins/uk.co.whiteoctober.cordova.appversion/AppVersion.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
This is referenced in my config.xml file as:
gap:plugin name="com.hutchind.cordova.plugins.streamingmedia"
I guess it looking by default at the old version in source="pgb"
Is it possible for someone to bundle it correctly and add it to npm, where all the other Cordova plugins have migrated to?
I fixed this by commenting out:
stop()
inOncomplete
Is this the desired functionality?
Can this plugin be used with a normal youtube url?
Is someone using this player with device orientation plugin? The player is playing well for me, thanks a lot; my app use portrait orientation. How can I force to play items in fullscreen lanscape? is there a hidden player option?
Hi,
Your plugin is awesome, works flawlessly on iOS. I would like to ask for an enhancement to be able to get the duration (the elapsed time since the start of streaming) of the currently streaming audio.
Thank you and all the best
This issue is so that watchers will receive a notification.
I developed this plugin while working at a job on a project that needed streaming media. A year ago, I left that job and have not had a need (or the time) to revisit this plugin, which is why there have been no updates. I would love to see someone fork this repo and build it up into something that the community can continue to use, but I just do not have the ability to do that myself now.
If I play a video with a remote URL on Android 4.4.1, this happens:
App is being put in the background.
Error! MediaPlayer Error: Unknown (1) -2147483648
App is being restored to the foreground.
The first and third lines are my debug lines when the app is suspended and resumed respectively.
Since my app has all kinds of functionality attached to suspend/resume, I cannot use this plug-in.
Maybe I am doing it wrong? I have to hit Back button twice otherwise it just restarts the video.
// Just play a video
window.plugins.streamingMedia.playVideo(videoUrl);
video.addEventListener('playing', function() {
var so = cordova.plugins.screenorientation;
so.setOrientation(so.Orientation.LANDSCAPE);
}, false);
Someone has used the XDK? Can you give me a step by step? I installed and used the demo code and nothing happens ..
for iOS it works as expected, trying to redirect to the index page. Not firing for Android
// Just play a video
var options = {
successCallback: function() {
$.mobile.changePage('index.html');
},
errorCallback: function(errMsg) {
console.log("Error! " + errMsg);
}
};
window.plugins.streamingMedia.playVideo(videoUrl, options);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.