Code Monkey home page Code Monkey logo

cordova-plugin-streaming-media's Introduction

GitHub NPM StackOverflow

Twitter LinkedIn

cordova-plugin-streaming-media's People

Contributors

bardiakh avatar cesarak avatar faceleg avatar ihadeed avatar mauricioprado00 avatar nchutchind avatar nimatrueway avatar noman115pk avatar paully21 avatar shamilovtim avatar steffenmllr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-streaming-media's Issues

Is it possible to fire an event with current position

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?

Video not able to play in iPad ios 9.2?

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?

Disable touchscreen?

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.

Works In Background

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

it play in background!!

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

play list

how can i use this plugin to play 10 mp3 files in play list
thanks

Works Only With Earphones

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

Video not playing on iOS

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?

AirPlay support

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

Video not able to play in iPad ios 9.2?

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?

Newbie to Programming

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.

The video get smaller on Samsung Galaxy View (1920x1080)

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.
img_1937

I am looking forward for your suggestion about How to fix it?
It only happens on Galaxy View (1920x1080)

Unable to play video on 3G or LTE service

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.

[FEATURE] Add Simple Caption

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.

m3u8 playback: no video just audio until device is tilted around

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?

initial setting

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?

problem in ios

mp4 not work in ios, it all in black,the video not play

Fresh activity history

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.

ShouldAutoClose is 'false' by default on Android, 'true' on iOS

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);

http://developer.android.com/reference/android/os/Bundle.html#getBoolean%28java.lang.String,%20boolean%29

ios build failed when plugin added

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

RTSP stream on iOS

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

Can't play files over 8mb

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

iPhone hardware mute silences the palyback

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?

Not working in iOS

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.

Not working with RTMP

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

No video in iOS

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

pauseAudio() in addition to stopAudio()

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.

Issue after fast forwarding video

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.

PhoneGap Build Issue

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?

force play in landscape

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?

Support duration/elapsed time

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

Repository Status is now "Unmaintained"

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.

Unknown error on Android 4.1.1

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.

Back button on Android restarts movie

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);

XDK

Someone has used the XDK? Can you give me a step by step? I installed and used the demo code and nothing happens ..

Success Callback not firing on android

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);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.