Can I set the track ids after the video is playing? - chromecast

I'm trying to implement subtitles on a Chromecast Android app but I don't see a way to add the tracks after the media is already playing. Am I missing something or is that not possible? I'm pretty sure I've seen other apps doing it.
Thanks.

You cannot add tracks after a media is loaded; you need to either add the tracks before loading the media or add and then reload the media

Related

Chromecast receiver (CAF) multi audio issue

I create a new receiver for my iOS application.
I have a video (DRM) with a few audios and text tracks
If I change audio track nothing will happen.
IF I change it manually like audioTracksManager.setActiveById(event.activeTrackIds[1]); - audio changed, but the button for changing tracks will be disabled
Can anyone help me?
solved by useLegacyDashSupport: true

How can I play all videos in a play list in turn?

I use Xamarin.Forms VideoPlayer. How can I implement playing all videos in a youtube playlist in turn? It would be also good to be able to display the videos' thumbnails as carousel to let the user switch from video to video.
I tried this:
<video:VideoPlayer x:Name="videoPlayer"
Source="https://www.youtube.com/watch?v=Jwcgm5VYV-
U&list=PLyjPaKJQuCEzqQKdA8FsQdsJ77XbjKkBH" />
But got an error:
Error: Unsupported video type or invalid file path.
I found plugin.youtube on NuGet, but it doesn't seem to work with .Net Standard.
What would be the right approach?
Thank you.
VideoPlayer does not support to play the video with video list address automatically.
The better way is that you need to get all the video source url such as http://littlevideo/TestVideo.mp4 from video list address then pass the video source url to VideoPlayer source property.

Share videos camera roll wp 8

I tired to googling that how share videos form camera roll in windows phone 8 like in Nokia video upload and facebook app. I used to try this
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff967563(v=vs.105).aspx
Only share picture but I want to share only videos for my app e.g. when my app show in list when share a video by camera roll of windows phone in sharing
To quote the link you included in your question:
Note that this extensibility is only available when the photo is a JPG
file.
And from my experience, I can confirm that it is not possible to register your app as a share target for a video file.
In other words, if a user tries to share a video from the camera roll or another app, there is no way to make your app appear as one of the options in that list.
Did you try using the share media task function?
Check this article out from the msdn :
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207027(v=vs.105).aspx
You can use MediaLibrary and there is already an answer for your question in this link. As said, there is no way to select existing sound media and video files through default choosers. Thank you.

Is it possible to grab a snapshot from a previously recorded video on Windows Phone 7?

I'd like to know if it's possible to grab snapshots from previously recorded videos. Those videos are recorded in the app itself.
By the way, I'd like to grab the snapshot from a video file saved in IsolatedStorage without having to play the video.
Is it possible? If so, how can I do it?
Cheers,
Rafael
I am not aware of an official platform feature to do this. However, if the video file is within your app's isolated storage, you might be able to:
Send the video to a server to do the processing
Add codecs/C# code to your app to process the raw MPEG4 frames.
Try using WriteableBitmap to capture a specific frame when using the media element. Since most media is handled in hardware, however, it is possible that the frame will be blank.
I solved the problem by creating the thumbnail while recording the video (captureSource.CaptureImageAsync()). To do that, I used the same instance of the CaptureSource I'm using to record the video.

How to show audio details when played using MediaPlayerLauncher?

In my application i am playing an audio file (let it be .mp3) using MediaPlayerLauncher. File is downloaded from network and stored in IsolatedStorage.
I managed to play the audio but it was a bit disapointing to see that there is absolutly no details about the played track.
Is there a way to show picture and/or track name when launched with MediaPlayerLauncher? Or am i forced to use MediaElement?
Unfortunately, if you're just playing an audio stream using the MediaPlayerLauncher there si no way to specifyu additional (meta) data for the launcher to also display.
If you want additional information displayed then you'll need to create the UI yourself and play the track via a MediaElement (or background audio).

Resources