Surendra Sharma

Surendra Sharma

Search This Blog

Sunday, June 18, 2017

How to replace Brightcove Adobe Flash player with HTML5 player in Sitecore


Use HTL5 player of Brightcove in Sitecore
Use HTL5 player of Brightcove in Sitecore

One of our site is using Brightcove Adobe Flash player which we have to replace with new Brightcove player which support HTML5. 
 
Follow below steps to configure Brightcove Video Cloud running as an HTML5 player

  • Step 1: Please navigate to section "Brightcove.StorageService" and change the "baseUrl" param value with your website URL and also set the "ContentDatabaseName" and "PublishDatabaseName" param values from Sitecore.MediaFramework.Services.Brightcove.Extended.config.disabled config file.
  • Step 2: Enable the config file named as "Sitecore.MediaFramework.Services.Brightcove.Extended.config.disabled".
  • Step 3: We need to add mimetype "text/vtt" with extension (.vtt) in IIS.
  • Add new player at “/sitecore/media library/Media Framework/Accounts/Default/Players” with unique player id.
  • Update “Default Video Player” field and “Default Playlist Player” to new player at “/sitecore/media library/Media Framework/Accounts/Default/Settings
  • Include “<script src="//players.brightcove.net/<licence id>/<Player_Id>_default/index.min.js"></script>” on all pages where you want to show Brightcove videos.
  • Publish all the Brightcove items
  • Test the page on which Brightcove videos are rendering.
I hope you like this Sitecore article. Stay tuned for more Sitecore related articles.

Till that happy Sitecoring :)

Please leave your comments or share this article if it’s useful for you.



Sunday, June 4, 2017

Solved : Unable to see [shared] and [unversioned] labels for fields in item


We have upgraded our solution from Sitecore 6.5 version to 8.1. Everything is working fine except one content editor reported issue that he is unable to see [shared] and [unversioned] label in front of fields in item as

Missing shared and unversioned label
Missing shared and unversioned label

However admin user can see it.

Solution:-

Sitecore provides config setting for showing [shared] and [unversioned] label in front of fields for content editor.

Make config entry as true in below key as

<!--  CONTENT EDITOR SHOW FIELD SHARING LABELS
      Determines whether or not the Content Editor displays field sharing labels ([shared] and [unversioned]) to users that are not Sitecore administrators.
      Default value: false
-->
<setting name="ContentEditor.ShowFieldSharingLabels" value="true"/>

Now content editor can also able to see the labels as 

Shared and unversioned label
Shared and unversioned label


Please leave your comments or share this tip if it’s useful for you.

Thursday, June 1, 2017

Solved : The content type of the response message does not match the content type of the binding


If you are adding any SOAP web service as just "Add Service Reference..." in Visual Studio and receiving below error at runtime in your code
 
System.ServiceModel.ProtocolException was unhandled
  HResult=-2146233087
  Message=The content type text/xml; charset=utf-8,text/xml; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<?xml version="1.0" encoding="UTF-8"?>

Follow below steps to fix this


  • Right click on VS project
  • Click on "Add Service Reference..."
  • Click on "Advanced..."
  • Click on "Add Web Reference..."
  • Enter service URL and click on Go arrow button
  • Enter Web Reference name and click on Add Reference
In short add SOAP service as a "Web Service" and don’t by just Service Reference in Visual Studio.

Please leave your comments or share this tip if it’s useful for you.