Chrome-cast: seek bar position issue while streaming live video - android

I am playing live (DVR-enabled) video on Chromecast and facing issue with seekbar.
Problem
The problem is that while chrome-casting/steaming live video, current time is changing but seek bar is showing pointer in (left most) beginning as it should be in the right most so that user can go backward as shown in the screen shot below, also the final time is 00:00 where it should be the time as much as it has been played.
But playing on device is working fine and showing seek bar to the right most
Receiver app is build using CastReferencePlayer library
Sender android app is build using CastVideos-android
Source: https://developers.google.com/cast/docs/downloads

Related

Play video sound in Background (in Notification Bar) when App Closes Just Like VLC Player

I have developed a video player application. Now I want to implement Background play functionality. I have checked many video player apps but none of them supports this. However, VLC does support this and when the activity goes in the background or stops then the video continue to play in the background as notification bar i.e. the sound continues to play with a video thumbnail shown in the Notification bar. When tapping on the notification bar it goes to the video page. This is what VLC does.
I am unable to find any tutorial or guide to implementing this. Is it possible to implement something like this?
Show some code what you have tried - that's almost mandatory for questions on SO...
If VLC has this feature then it is possible obviously :) Also YT, if you pay subscription
Also you may check source code of VLC in HERE. For sure it is Service-based implementation, if your app is just simple player then you have probably Activity-based arch and you should migrate to Service

MiniControllerFragment for MediaPlayer application as like Cast SDK

I'm developing a MediaPlayer application which plays videos and want to show mini controller at the bottom of every screen while something is playing.
Question
I want to show mini controller at the bottom of every screen while something is playing, you can refer application like Spotify, google play, and other music applications.app
MiniController that appear when the user navigates away from the current content page. The mini controller provides instant access and a visible reminder for the current mediaplayer is playing or not.
I just checked cast sdk codelabb and found this. It has MiniControllerFragment which manages everything for cast session. Is there any MiniControllerFragment for mediaplayer application so I can show MiniController at bottom of every page when my application does play any video.
Please provide your valuable inputs on this.

Pause button does not fade out after video starts playing in youtube video player fragment

I am using android-youtube api in my android project. I am using youtube fragment to play a youtube video.
Along with that video, I am playing other media (eg imageview) side-by-side. (I am aware that the youtube fragment should be always on top, so the problem is not related to this constraint).
I am able to play the video successfully, but the problem is, after video starts playing, the pause button does not fade out. It keeps showing that button. It seems like it fades out, but immediately after it disappears, it reappears.
I am not getting any logs related to this (not even in system log). However, when I play video fragment in full layout, there is no such problem.
In short, the problem occurs only when I play video along with some other media side-by-side. I didn't find any work around for this particular problem, so I don't have any code related to this problem.
How do I get rid of this issue?
Thanks in advance for help.

Create "sound bars" similar to the bars in windows mediaplayer

I have no idea what these bars represent, but still I want to make them in my app on Android platform.
I want that the bars to change on a sound or in my case a recorded sample play.
For http://www.teamliquid.net/blogs/viewblog.php?topic_id=90197&docid=Cw1ObF4XGZQD4M&imgurl=http://i658.photobucket.com/albums/uu307/StimedFirebat/bars.jpg&w=1024&h=819&ei=0-6jT76WOc_U8QO-psyDCQ&zoom=1&iact=hc&vpx=812&vpy=156&dur=1559&hovh=201&hovw=251&tx=157&ty=133&sig=110361762640680792178&page=1&tbnh=154&tbnw=186&start=0&ndsp=28&ved=1t:429,r:2,s:0,i:72&biw=1680&bih=864">example the bars that windows media player displays while playing music.
take a look at this: https://github.com/felixpalmer/android-visualizer/tree/4054f8b6e2153b07c5af275372b9609d1019727a. this is a project with line, circle, and bar visualizers
and btw google beforehand.
The moving bars are called a graphical equaliser. I think this media API sample uses one.
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/AudioFxDemo.html

Surface View Appears Black while the associated audio is playing in the background(android)

I am basically running a set of video tracks using a custom media player. Every thing works fine until I press home button or go to any other screen, then on after returning to the video play screen I can only hear the audio track as the videos play and screen appears black.
I would also like to highlight another issue for which i have got a stop gap arrangement, which is when i switch videos in the playlist, the surface view retains the last frame or image of the video that was previously played. I have tried to invalidate(), force the layout and all possible ways to refresh screen that i could think of, yet I couldn't find an appropriate solution for both of the issues mentioned.

Categories

Resources