I'm using dashjs and videojs, when I drag the progress bar to initial time (0:00:00) the video freezes.
Any ideas?
Related
I am using video.js to display video and the subtitles. I have an added functionality where user can go back and forth by 10 secs on click of button. The issue I am facing is if a subtitle is displaying on the screen and I click on +10 or -10 secs player changes its current position whereas the activecues are not updating, it still shows the old subtitle. How can I update the active cue? Do I need to reload the subtitle track or is there any way to seek for cues?
I want to know if, once you create a timing Animation in React-Native and start it, can you can update its duration dynamically, without having to stop/recreate the animation? This is the use case that motivated this question:
I am developing a music player in React-Native. I have a simple Player component with a progress bar (slider) like this:
Basically, an Animated.Value is used as the slider's value. When pressing play, a timing animation starts, its duration being the duration of the song. Simultaneously, I control the timers with setInterval(). Every 1000 milliseconds, I add +1 to the timer displayed.
This works fine. Here I have a simple Expo snackbar showing how this works.
The problem is, I want to add a slider that controls the playback speed:
let's ignore the real audio playback and focus only on the slider and timers behavior. If the playback is paused, then when sliding the "Speed factor" slider, it's a very easy change because I only need to update the timers. The progress bar stays the same. But when we're currently playing the song, how do I handle the updates of the timers and the progress bar?
The speed factor slider will adjust the real duration of the song with this formula:
real_duration = normal_duration / speed_factor where speed_factor can be a number between 0.5 and 1.5, for example.
And due to this change duration, I ask whether it is possible to update on the fly an animation's duration, once it has started.
I would like to implement the progress with floating from 0% to 100 % and the estimation of upload time.
I have tried with the menu bar controller example. But it doesn't help to implement the floating progress bar in the panel view controller.
Please check the below image for my implementation. When i click on (W) icon in menu bar, table is loading and show the upload progress bar. When the uploading is moving to next step. How to reload the table for every 1 sec or 2 sec without the event click.. ? When user click on the icon the progress should move continuously.
Looking forward for ideas or the sample code.
The below link helps to fix the issue :
Force Reload Table View
To reload the table view, used NSTimer frequently to update the progress bar.
I have seen the same question but not have the right solution, so I decided to post my own problem.
I'm using an MPMoviePlayerController for playing video in iOS app. I can make it to play in background within my app or even when user tap on Home button (play in background).
The problem is when MPMoviePlayerController is playing, press home button on iPhone, make the app enter
background. Then tap the app's icon to make the app enter foreground, the MPMoviePlayerController's view will be black screen, audio still continue, only video screen cannot see anything.
This is NOT happen if in background, MPMoviePlayerController play the next video, when come foreground from background it works perfectly. And it also not happen in iOS6 or before.
So in inclusion the problem occurred when play the itself video in iOS7
How to make the MPMoviePlayerController's video shows immediately when app came to foreground?
Many thanks for any help!
I'm using the video.js video player. After going to fullscreen, the control bar does not fade out. How do I get the control to fade out in fullscreen mode. When not in fullsreen mode, the control bar fades away after a few seconds.
The control bar hiding issue has been fixed and will be released with version 4.2.
There's a writeup on the changes.
http://blog.videojs.com/post/57828375480/hiding-and-showing-video-player-controls